Conditional Shader Question

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  02 February 2013
Conditional Shader Question

Is there is a way to assign two materials to the same object but have one of them the primary material and the other only viewable in reflections while the primary is not visible in reflections?

  02 February 2013
You can use a rayswitch shader (mental ray) or an equivalent one.
In mental ray they are part of the production shader
so you have to unlock them, or you can mel

 shadingNode -asUtility mip_rayswitch
  02 February 2013
Thanks Nookie! That is exactly what I needed.
  02 February 2013
Another question about this rayswitch shader. Does it work with layered shaders? I have two layered shaders that both have a metallic mia material and a blinn material applied. The layered shaders both work when applied individually but when I plug one layered shader into the reflection and the other layered shader into the eye of the rayswitch only the eye shader shows up.

I've set up plane with the builtin_bsdf_mirror material applied to it to test the reflections but again, the reflection of the rayswitch doesn't render. However everything else in the scene I want to display shows up in the reflections.

Any idea as to why this doesn't work?

Thanks for your help!

Edit: Nevermind, as soon I posted this I realized the Visible in Reflections/Refractions was off in the Display properties when I imported my new mesh.

Last edited by skdzines : 02 February 2013 at 10:39 PM. Reason: figured it out!
  02 February 2013
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 10:40 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.