Length of a ray path



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 10/05/2006 at 15:38, xxxxxxxx wrote:

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

    ---------
    Hi,
    Is there any way to retrieve or calculate how long distance is travelad by a ray until it hits an opaque surface? Something like Z depth stored in VPFragment but not limited to the first encountered surface. It would be perfect to have it inside the videopost.

    Regards,
    Piotr



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 16/05/2006 at 13:35, xxxxxxxx wrote:

    I can't find this information anywhere within BaseVolumeData. However, it should be easy to calculate using TraceGeometry(), accumulating the distance along the way, possibly checking for opaqueness using GetSurfaceData().


Log in to reply