I need to get the current step number while rendering a volume object

the step used for sampling the volume :

enter image description here

something like in light path node " transparent depth , ray depth "

enter image description here

  • $\begingroup$ could be something like Ray depth x step size $\endgroup$ – Bithur Feb 13 '15 at 19:35
  • $\begingroup$ @Bithur it seems not, i think ray depth is not increasing inside the volume $\endgroup$ – Chebhou Feb 13 '15 at 20:23
  • $\begingroup$ yep, wasn't sure about that but didn't find anything else :( $\endgroup$ – Bithur Feb 13 '15 at 20:24

In short, no. This isn't currently exposed to the user.

The Transparent Depth value is a count of each transparent object, not distance traveled within it.

There is a Ray Depth output, but it's unclear what that does.

There is a Ray Length output, but it doesn't increase inside a volume. It's measured after the sample is taken.

| improve this answer | |
  • 2
    $\begingroup$ ray depth is the number of bounces $\endgroup$ – Chebhou May 13 '16 at 14:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.