getting opacity depth info a la raylevel

   4319   3   0
User Avatar
Member
641 posts
Joined: July 2005
Offline
Hey!

Can anyone remember how to do this little trick?

I'd like to find some way to limit the opacity depending on how many surfaces a primary camera ray has passed through in Mantra.

I'd like to say “if this is the second or third transparant surface let the opacity be 1”. The Ray Bounce Level Vop getraylevel() can tell me this when I raytrace but I can't figure out/remember how to do this with straight opacity.

Cheers
Louis
User Avatar
Member
1002 posts
Joined: July 2005
Offline
I'm not sure how you would limit the number of transparent surfaces, but you can set the global opacity limit - see the specific tab of the mantra ROP, “Opacity Limit” parameter. Once this opacity value is reached, any further surfaces will be discarded without shading or compositing them.

Andrew
User Avatar
Member
641 posts
Joined: July 2005
Offline
Hey that's better than a poke in the eye! Thank you!

I would be curious to know if you can get this info in VEX..

Cheers
Louis
User Avatar
Member
12532 posts
Joined: July 2005
Offline
The getraylevel() equivalent for non-raytraced transparent surfaces is an existing RFE - hopefully it'll get in there sometime!
Jason Iversen, Technology Supervisor & FX Pipeline/R+D Lead @ Weta FX
also, http://www.odforce.net [www.odforce.net]
  • Quick Links