MatCreator opened this issue on Jun 29, 2012 · 4 posts
MatCreator posted Fri, 29 June 2012 at 9:22 AM
Hey gang, hope all is good and gravy for you at the moment =D
I uploaded some skins to my freestuff section, and am "just now" noticing that the MATPose .pz2's are not applying the materials as expected...
The material .mc6's work just fine, I changed the top line to "actor $CURRENT", so I guess I'm rustier than I thought...
Here is the text of the .pz2 file:
{
version
{
number 5
}
actor $CURRENT
{
material 2_SkinHead
{
KdColor 1 1 1 1
KaColor 0 0 0 0
KsColor 1 1 1 0.5
TextureColor 1 1 1 1
NsExponent 50
tMin 0
tMax 0
tExpo 0
bumpStrength 1
ksIgnoreTexture 0
reflectThruLights 0
reflectThruKd 0
textureMap ":Runtime:textures:MatCreator:MonsterFlesh:MC-MF-001:m4-gross-skin-001a_body_color.jpg"
0 0
bumpMap ":Runtime:textures:MatCreator:MonsterFlesh:MC-MF-001:m4-gross-skin-001a_body_color.jpg"
0 0
reflectionMap NO_MAP
transparencyMap NO_MAP
ReflectionColor 1 1 1 1
reflectionStrength 1
shaderTree
{
node "poser" "PoserSurface"
{
name "PoserSurface"
pos 10 10
showPreview 1
nodeInput "Diffuse_Color"
{
name "Diffuse_Color"
value 1 1 1
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node "Image_Map"
file NO_MAP
}
nodeInput "Diffuse_Value"
{
name "Diffuse_Value"
value 0.8 0 10
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node "Math_Functions"
file NO_MAP
}
nodeInput "Highlight_Color"
{
name "Specular_Color"
value 1 1 1
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node "Image_Map"
file NO_MAP
}
nodeInput "Highlight_Value"
{
name "Specular_Value"
value 0.5 0 10
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Roughness"
{
name "Highlight_Size"
value 0.02 0 10
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Ambient_Color"
{
name "Ambient_Color"
value 0 0 0
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Ambient_Value"
{
name "Ambient_Value"
value 0 0 10
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Transparency_Max"
{
name "Transparency"
value 0 0 1
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Transparency_Min"
{
name "Transparency_Edge"
value 0 0 1
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Transparency_Falloff"
{
name "Transparency_Falloff"
value 0 0 100
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Translucence_Color"
{
name "Translucence_Color"
value 0 0 0
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Translucence_Value"
{
name "Translucence_Value"
value 0 0 10
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Reflection_Color"
{
name "Reflection_Color"
value 1 1 1
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Reflection_Value"
{
name "Reflection_Value"
value 1 0 10
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Refraction_Color"
{
name "Refraction_Color"
value 1 1 1
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Refraction_Value"
{
name "Refraction_Value"
value 1 0 10
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Bump"
{
name "Bump"
value 0.2 -10 10
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node "Math_Functions_2"
file NO_MAP
}
nodeInput "Displacement"
{
name "Displacement"
value 0 -10 10
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "AlternateDiffuse"
{
name "Alternate_Diffuse"
value 1 1 1
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node "Color_Math"
file NO_MAP
}
nodeInput "AlternateSpecular"
{
name "Alternate_Specular"
value 1 1 1
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "ReflectionLiteMult"
{
name "Reflection_Lite_Mult"
value 0 0 1
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "ReflectionKdMult"
{
name "Reflection_Kd_Mult"
value 0 0 1
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Gradient_Bump"
{
name "Gradient_Bump"
value 1 -1 1
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node "Color_Math_4"
file NO_MAP
}
nodeInput "ShadowCatchOnly"
{
name "Shadow_Catch_Only"
value 0 0 1
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "ToonID"
{
name "ToonID"
value 1773 0 32768
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Normals_Forward"
{
name "Normals_Forward"
value 0 0 1
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Gradient_Mode"
{
name "Gradient_Mode"
value 2 0 0
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Custom_output_1"
{
name "Custom_output_1"
value 1 1 1
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Custom_output_2"
{
name "Custom_output_2"
value 1 1 1
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Custom_output_3"
{
name "Custom_output_3"
value 1 1 1
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
}
node "image_map" "Image_Map"
{
name "Color Map"
pos 872 24
nodeInput "Image_Source"
{
name "Image_Source"
value 2 2 2
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file ":Runtime:textures:MatCreator:MonsterFlesh:MC-MF-001:m4-gross-skin-001a_body_color.jpg"
}
nodeInput "Auto_Fit"
{
name "Auto_Fit"
value 0 0 0
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "U_Scale"
{
name "U_Scale"
value 1 -1 1
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "V_Scale"
{
name "V_Scale"
value 1 -1 1
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "U_Offset"
{
name "U_Offset"
value 0 0 1
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "V_Offset"
{
name "V_Offset"
value 0 0 1
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Texture_Coords"
{
name "Texture_Coords"
value 1 0 0
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Image_Mapped"
{
name "Image_Mapped"
value 4 0 0
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Background"
{
name "Background"
value 1 1 1
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Global_Coordinates"
{
name "Global_Coordinates"
value 0 0 1
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Mirror_U"
{
name "Mirror_U"
value 0 0 0
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Mirror_V"
{
name "Mirror_V"
value 0 0 0
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Texture_Strength"
{
name "Texture_Strength"
value 1 0 1
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Filtering"
{
name "Filtering"
value 1 0 0
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
gamma 1.000000
}
node "math_functions" "Math_Functions"
{
name "Math_Functions"
pos 249 11
inputsCollapsed 1
nodeInput "Math_Argument"
{
name "Math_Argument"
value 1 0 0
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Value_1"
{
name "Value_1"
value 0 0 100
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Value_2"
{
name "Value_2"
value 0 0 100
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
}
node "math_functions" "Math_Functions_2"
{
name "Math_Functions_7"
pos 246 628
nodeInput "Math_Argument"
{
name "Math_Argument"
value 2 0 0
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "Value_1"
{
name "Value_1"
value 1 0 100
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node "hsv"
file NO_MAP
}
nodeInput "Value_2"
{
name "Value_2"
value 0.5 0 100
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
}
node "image_map" "Image_Map_2"
{
name "Bump Map"
pos 863 309
nodeInput "Image_Source"
{
name "Image_Source"
value 2 2 2
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file ":Runtime:textures:MatCreator:MonsterFlesh:MC-MF-001:m4-gross-skin-001a_body_color.jpg"
}
nodeInput "Auto_Fit"
{
name "Auto_Fit"
value 0 0 0
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "U_Scale"
{
name "U_Scale"
value 1 -1 1
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "V_Scale"
{
name "V_Scale"
value 1 -1 1
parmR NO_PARM
parmG NO_PARM
parmB NO_PARM
node NO_NODE
file NO_MAP
}
nodeInput "U_Offset"
{
name "U_Offset"
value 0 0 1
parmR NO_PARM
parmG NO_PARM
&
There are 3 kinds of people in the
world. Those that can count, and those that can't..
MatCreator posted Fri, 29 June 2012 at 9:24 AM
The only difference from the working material .mc6 is that I changed mtlcollection to actor $CURRENT and then changed the extension to .pz2...
There are 3 kinds of people in the
world. Those that can count, and those that can't..
fivecat posted Fri, 29 June 2012 at 2:45 PM
If the MATpose files are for a figure, I'm pretty sure "actor $CURRENT" should be "figure" instead. I think "actor $CURRENT" is for props.
MatCreator posted Fri, 29 June 2012 at 9:59 PM