PDA

View Full Version : Reflection set in mnatalray


razielsavage
06-17-2010, 06:25 AM
Hi
In renderman for maya there is a feature called reflection sets.
you can make a set with some objects and they reflect just in other (only the set members)
and not in all objects in the scene.
I want to know can I do something like that in mentalray.

chuckie7413
06-17-2010, 11:12 AM
no mental ray does not have this feature. (well mental ray in maya anyway)

It might be possible if you are very technical and can write mental ray shaders. Even then I do not know if it is possible.

Maybe a very advanced mental ray user could tell you. Zap?

Rich

ytsejam1976
06-17-2010, 12:10 PM
The Maya transform node does not expose all extended instance flags for mental ray, but they can be controlled via dynamic attributes: 'miReflection' (integer)'miRefraction' (integer)'miTransparency' (integer)
The value is an index into predefined flags (bit sets):




0 - cast off, receive off
1 - cast on, receive on
2 - no bit set, inherit
3 - cast on, receive off
4 - cast off, receive on
Create the attributes above by following these examples:

addAttr -ln "miReflection" -at "enum" -enumName "Cast Off Receive Off:Cast On Receive On:Inherit:Cast On Receive Off:Cast Off Receive On" myTransformNode


addAttr -ln "miRefraction" -at "enum" -enumName "Cast Off Receive Off:Cast On Receive On:Inherit:Cast On Receive Off:Cast Off Receive On" myTransformNode


addAttr -ln "miTransparency" -at "enum" -enumName "Cast Off Receive Off:Cast On Receive On:Inherit:Cast On Receive Off:Cast Off Receive On" myTransformNode

Sorath
06-18-2010, 09:01 AM
I would be interested in how to access the custom attributes.
I could think of using custom text somehow or is there only a way through c++ in shader development to hook these settings. So far from what I've read on Lamrug it seems to be a shader only thing.

Eshta
06-18-2010, 02:00 PM
its in the Docs > mental ray

CGTalk Moderation
06-18-2010, 02:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.