MAya2015 VP2 surface shader override xml files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm creating a surface shader override and try to implement the surface shader for VP2 with xml files... and it's driving me nuts!
I attached three files: afSurface.xml, afSurfaceDiffuse.xml and afSurfaceCombiner.xml. If I connect my nodes this way in afSurface's connections section:
<connections> <connect from="afSurfaceDiffuse.outColor" to="afSurfaceCombiner.diffuseColor" /> <connect from="afSurfaceCombiner.mayaSurfaceShaderOutput" to="mayaSurfaceShaderOutput.mayaSurfaceShaderOutput" /> </connections>
I get the expected result in my viewport2. Now I'd like to use lighting information. If I'm not completely mistaken, I need the help of the maya16LightAccum to use lights. So I connect it this way:
<connections> <connect from="afSurfaceDiffuse.outColor" to="maya16LightAccum.scaledDiffuse" /> <connect from="maya16LightAccum.scaledDiffuse" to="afSurfaceCombiner.diffuseColor" /> <connect from="afSurfaceCombiner.mayaSurfaceShaderOutput" to="mayaSurfaceShaderOutput.mayaSurfaceShaderOutput" /> </connections>
But now I get a compile error which looks like this:
// Error: The compile returned an error. // // Error: // // cgfxShaderNode::cgErrorCallBack
What is not really helpful. Even obvious syntax errors are reported this way. So if anyone could have a look at my code and tell me why it refuses to compile, I'd really appreciate it. And it would be extremely useful to have a possibility to get more detailed compile informations.