9

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

Daniel
  • 3,624
  • 4
  • 31
  • 59
Chebhou
  • 19,533
  • 51
  • 98

1 Answers1

1

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.

Matt
  • 11,126
  • 3
  • 32
  • 67