Shader on child objects
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 07/07/2004 at 04:48, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.207
Platform: Windows ;
Language(s) : C++ ;---------
If I take for example a null object, put a plane as a child object to the null object and attach a material to the null object, then the plane is also rendered with that material.
The same I try to do, but with my own shader, own objects, and also not with the null object but with an own one. But CalcSurface of the shader is never called if I attach it to the parent object. The problem seems to be in the shader itself, because also if I use the null object as parent it doesnt work. Is there something I have to do in the shader? -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/07/2004 at 00:55, xxxxxxxx wrote:
It does seem to be possible to get the material inheritance to work, because the SDK example Simple Material worked when I tried it. I don't see anything tricky that it does to achieve this, so the question would have to be what's different in your material from SimpleMaterial.cpp? (I didn't involve a custom object, since you said that wasn't necessary to reproduce the error.)
If you can't find out what causes the error, feel free to post simplified code or send a simplified project to [email protected]. (Make sure that the simplification doesn't cause the error to go away.)