THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/05/2006 at 08:10, xxxxxxxx wrote:
Cinema 4D Version: 9
Platform: Windows ;
Language(s) : C++ ;
Well, I' m writing a volumetric shader which needs to make some raytracing calls (basically for computing reflections).
I first tried the TraceColor() method of VolumeData. I can successfully get the color returned by the reflection ray, but there is no recursion:
I'll see the entire scene in the reflection but reflective objects will appear black in the reflection.
I think I only get the first recursion color (if there is a half red, half transparent object in the scene, I'll see the red parts normally whereas the transparent parts will appear black).
I then tried the TraceColorDirect(), which seems to be more complex than the TraceColor() one, but the result is the same.
I of course setted the SHADER_RAYTRACING flag, check the max recursion depth in C4D render setting, etc.
Thanks for your help!!!