Announcement

Collapse
No announcement yet.

Basic VraySDK Question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Basic VraySDK Question

    Hi,

    I want to play around with the VRaySDK a little bit. I want to cast a ray from the shaded surface in the direction of the normal and then I want to get the distance to the first intersection. The basic approach of occlusion shaders i think. Without having started yet I already have some questions. If I use the traceDir() or traceRay() functions I get a color value back, don't I? How do I get the distance to the first intersection?

    the wpointCoeff from RayResult seems to give the distance from the shaded point to the camera.

    Thanks in advance

    Dieter
    --------
    visit my developer blog
Working...
X