Inside the MAT file
(Don't miss Part I: Creating MAT Files, or Part III: MAT Transparencies.)
Yeah, verily. We have a MAT file template. What do we do with it?
Well, instead of constantly saving characters, hacking up the .cr2 files, and resaving as .pz2 files in another directory, we can directly play with the MAT files.
Here are Vicki's lips. Don't they look so kissable?
{
version
{
number 4
}figure {
Do not touch this part. Violators will have their .pz2 files made useless. You have been warned! material Lips This is the name of the body part. KdColor This is the object color.1 KaColor This is the ambient color.1 KsColor This is the highlight color.1 TextureColor Haven't figured this one out yet. Keep the value as is, and all should be well. NsExponent Highlight Size. tMin Transparency Minimum.2 tMax Transparency Maximum.2 tExpo Transparency Fall-off.2 bumpStrength Bumpmap Strength.2 ksIgnoreTexture Apply Texture to Highlight.3 reflectThruLights Multiply Through Lights. reflectThruKd Multiply Through Object Color. textureMap Which Texture Map is being used.4 bumpMap Which Bump Map is being used.4 reflectionMap Which Reflection Map is being used.4 transparencyMap Which Transparency Map is being used.4 ReflectionColor What color is the Reflective Color.1 reflectionStrength How strong is the Reflection Map.2 }
}
}Leave these alone. They let Poser know the file is done.
- This uses the MAT color values in the following format:
[Red] [Green] [Blue] 1
Pure Red = 1 0 0 1
Pure Green = 0 1 0 1
Pure Blue = 0 0 1 1
Purple = 1 0 1 1, etc.
A quick and easy cheat to figure out the color values is located here. - This is a percentage. 50.234 = 50.234%.
- 0 = No. 1 = Yes.
- The format to specify the location of the map is:
:folder:filename
The file assumes you are saving from \runtime\textures.
To reference a texture called gothic.jpg in
c:\program files\poser\runtime\textures\my-mat-textures\lips\gothic.jpg,
 Your textureMap line would read
textureMap ":my-mat-textures:lips:gothic.jpg"
If there is no texture map, use NO_MAP instead.
Here's a sample .pz2 file to dissect. It will turn Vicki or Mike's fingernails black. (They both have their fingernails named the same. Posette and Dork use slightly different names so you'd have to make a different .pz2 file for them.)
Creating MAT Files
MAT file transparencies