Cloudstriff
02-10-2006, 02:15 AM
Hello!
I have a question regarding the JS_Normalmapper, more specificaly how to assign it to a material. I read the documentation but couldn't quite understand it, as I am extremly new to shaders.
I can create the normal map shader fine, and I double click on it in Hypershade and click the box next to Normal Map and I use my normal map file. After that I am lost. Do you drop the JS_Normalmapper onto the shader and select other, then under outputs click normal map and under inputs select normal camera?
I have done that and when I try to render with Mental Ray and it works fine with one object using the JS shader. If I try to render more than 1 object with the JS shader I get the follow error :
"API 0.0 warn 302018: type conflict: "vector" is type vector, "maya_file" returns type color
API 0.0 error 301041: incorrect member "normalMap", "JS_NormalMapper" does not return a struct
API 0.0 warn 302018: type conflict: "color" is type color, "JS_NormalMapper" returns type vector
API 0.0 warn 302018: type conflict: "vector" is type vector, "maya_file" returns type color
API 0.0 error 301041: incorrect member "normalMap", "JS_NormalMapper" does not return a struct
API 0.0 warn 302018: type conflict: "color" is type color, "JS_NormalMapper" returns type vector
"
What am I doing wrong? Any help would be appriciated, and thanks for you time!
I have a question regarding the JS_Normalmapper, more specificaly how to assign it to a material. I read the documentation but couldn't quite understand it, as I am extremly new to shaders.
I can create the normal map shader fine, and I double click on it in Hypershade and click the box next to Normal Map and I use my normal map file. After that I am lost. Do you drop the JS_Normalmapper onto the shader and select other, then under outputs click normal map and under inputs select normal camera?
I have done that and when I try to render with Mental Ray and it works fine with one object using the JS shader. If I try to render more than 1 object with the JS shader I get the follow error :
"API 0.0 warn 302018: type conflict: "vector" is type vector, "maya_file" returns type color
API 0.0 error 301041: incorrect member "normalMap", "JS_NormalMapper" does not return a struct
API 0.0 warn 302018: type conflict: "color" is type color, "JS_NormalMapper" returns type vector
API 0.0 warn 302018: type conflict: "vector" is type vector, "maya_file" returns type color
API 0.0 error 301041: incorrect member "normalMap", "JS_NormalMapper" does not return a struct
API 0.0 warn 302018: type conflict: "color" is type color, "JS_NormalMapper" returns type vector
"
What am I doing wrong? Any help would be appriciated, and thanks for you time!
