rendering layer with alternate reflection?

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
  01 January 2009
Question rendering layer with alternate reflection?

Hi everyone, another question from a greatful novice...

This is kind of confusing but hopefully I can explain it clearly.

I have a scene with moving objects and moving lights, that also has a mirror (using a phong shader) in it. I want to render the scene, but have the geometry that is reflected in the mirror to have different textures in the reflection. so for example, a checkered yellow sphere will pass by the mirror and look like a blue sphere in the mirror reflection.

So far the only idea i have is to render the animation twice, once normal. and then to change the textures/shaders/lights and render it again, and them compositing the 2 layers with a mask.

But is there a better way to do this? i am guessing setting up some kind of render layers might help? maybe one just for the reflection? one thing I am concerned about if I just mask it out like i am thinking is when objects move infront of the mirror, do i need to composit with depth information??

Any pointers would be really apprecaited! Thank you anyone who is willing to help!
- Kat
  01 January 2009
just put the mirror and lights on a renderlayer, add the sphere to it. after that turn off all the options
in the render stats section of the shapenode except of "visible in reflections" (with an override). make a material override on the sphere and add the shader with the look you want. now you should
have a pass with only the mirror and the object in the reflection and you can compose it
over the other passes. (you need to add black surface shaders to objects which block the
mirror, if needed)
hope that helps :o)

  01 January 2009

Thank you so much, Borgus!

This is working out great!
The only question I have now is that the spheres themselves sometimes pass in front of the mirror... So if I add a black shader to them they will show up as black in the mirror... any ideas? Can I use the depth channel in the compositing somehow?
thanks again!!
  01 January 2009
hi kvalenti!
don't know exactly what you mean but did you try to turn "visible in reflections" off in the

  01 January 2009
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 08:38 PM.

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