Propschick opened this issue on Dec 02, 2007 · 30 posts
lesbentley posted Sun, 02 December 2007 at 2:08 PM
The link for kuroyume's site does not work for me at the moment, perhaps it's down with a server problem, in the mean time here is what I remember, there may be some errors.
This is the old P4 type code, I'm not sure how it interacts with the new P5 and up material nodes. Below is what it translates to in the P4 interface. In P5 and up some things have diffrent names in the interface, eg Object Color = Difuse_Color, and Highlight Color = Specular_Color, there are probably some others.
KdColor in P4 is the Object Color. The first three numbers represent the values for R, G B, respectivly, I'm not sure what the last number is, but it always seems to be set at one in my experience. I think the values accepted range from "0" to "1". So:
"KdColor 1 1 1 1" is white
"0 0 0 1" is black,
"0.5 0.5 0.5 1" is mid grey
"1 0 0 1" is red,
"0 1 0 1" is green
"0 0 1 1" is blue
"1 1 0 1" is yellow (red + green = yellow)
"1 0 0.3 1" is cold red (red with a touch of blue added)
etc, etc.
The same applies to the ka and ks colours, and probably the TextureColor, though I'm not sure what that is.
material Preview
{
KdColor 1 0 0.299992 1 [Object Color (Difuse_Color)]
KaColor 0 0 0 1 [Ambient Color]
KsColor 0 0 0 1 [Highlihht Color (Specular_Color)]
TextureColor 1 1 1 1 [don't know]
NsExponent 1 [Highlight Size, inverse value, 100=smallest, 1=largest]
tMin 0 [Transparency Min]
tMax 0 [Transparency Max]
tExpo 0.6 [Transparency Falloff]
bumpStrength 1 [bumpStrength, decimal value -1 to 1 with 0 being effectivly "off"]
ksIgnoreTexture 0 [Apply texture to highlights, value 1 or 0]
reflectThruLights 1 [Multiply through lights, value 1 or 0]
reflectThruKd 1 [Multiply through object color, value 1 or 0]
textureMap NO_MAP [path to texture map]
bumpMap NO_MAP [path to bump map]
reflectionMap NO_MAP [path to texture map]
transparencyMap NO_MAP [path to transparency map]
ReflectionColor 0.211765 0.254902 0.78822 1 [same color system as KdColor]
reflectionStrength 0.492063 [Reflection Map Strength]
}