Navigation

 ·   Wiki Home
 ·   Category List
 ·   Title List
 ·   Uncategorized Pages

 ·   File Upload
 ·   Uploaded Files
 ·   Recent Changes
 ·   What Links Here

 ·   RSS
 ·   Atom
 ·   Wiki Help

Categories

Active Members:

Search:

 

Create or Find Page:

 

Article - Talk modding skin tint

Category:Moviestorm Modding

From information provided by Ben Sanders here:

Someone was sugesting that we have tintable skin colours on heads. We dont, yet, but in the mean time, an explantion as to how things do work.

In Moviestorm, the heads and bodies are separate. Heads have a skinTint parameter which determines what colour the body is tinted to.

In the bodypart file for the head, this appears as a section as follows:
Code:

       
        <entry>
          <string>skinTint</string>
          <Color4f>1.0578 0.9347 0.9076 1.0</Color4f>
        </entry>
        </parameters>
We try to make the heads textures have a prety much constant colour all around the base of the neck.
The skinTint colours are then a set of RGBA (Red Green Blue Alpha) modifiers, for which are used as a multiplier for the body colours.

If you were retexturing a head, you would be able to determine the RGB value for the neck area from your art program. (The Alpha should be 1 all across, ie no alpha).
To calculate the suitable tint value, you would need to know the RGA value for the bodies neck.
For males this is R=225, G=199, B=184, and for females it is R=231, G=207, B=173.

One can then calculate the tint value as being (for each of red, green and blue):
skinTint= Head Colour / Body Colour

Once you have the three RGB numbers they can be inserted into the head bodypart. Note that updates to bodyparts require the addon to be re-published, otherwise they don’t work.