RayObject instances order [SOLVED]



  • On 17/06/2015 at 14:53, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   15+ 
    Platform:   Windows  ;   
    Language(s) :     C++  ;

    ---------
    I was testing instance objects with RayObject, instance with option "render instance"
    I see that they come at the end of the RayObject(s) list, is this always happening?? "so I can depend on this behavior".

    so when I loop over all RayObject(s), I get real objects first, then instances.



  • On 18/06/2015 at 06:40, xxxxxxxx wrote:

    Hi Mohamed,

    currently it is correct, render instances come at the end. But why is this relevant? And you surely should not rely on such an implementation detail, as it may change in future versions of Cinema 4D.
    Rather use the instance member of the RayObject and check, if it is a nullptr or not. If it's unequal nullptr, it is a render instance.



  • On 18/06/2015 at 07:15, xxxxxxxx wrote:

    thanks Andreas, consider this solved.


Log in to reply