Jump to content
Sign in to follow this  
blue_riviera

(noob) labeling child rays

Recommended Posts

Hi,

(Noob question again -- I read about this in the forums, but of course now I need it I can't find it...)

What I'd need is to be able to attach "labels" to child rays somehow in mantra. (To pass on more detailed information to my own shader(s) that deal with those child rays). Any idea on how to do this?

Thanks

imre

Share this post


Link to post
Share on other sites
Hi,

(Noob question again -- I read about this in the forums, but of course now I need it I can't find it...)

What I'd need is to be able to attach "labels" to child rays somehow in mantra. (To pass on more detailed information to my own shader(s) that deal with those child rays).

An example: I'd like to attach a label or tag (let's say, a string) called "occlusion" for rays that calculate occlusion, or "refract" for refraction rays, etc. (similar functionality exists in mental ray)

This way, my shader that handles the child ray would know more details about the ray type, and act accordingly.

imre

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×