PDA

View Full Version : Reflectivity 100% when seen through refractive shader?


hellspawned
07-22-2011, 07:59 AM
In this scene that I've been working on, there's clockwork, with mostly polished metal parts, inside a container with a refractive lens in the lid. The materials I've used are mostly Blinns. All reflective materials have a simple samplerinfo + ramp-combo driving the falloff on the reflection.

When I have refractions turned off on the glass shader on the lens, everything looks good (except for the lack of refraction, obviously). But when refractions are turned on, every shader inside it goes crazy. For some reason, when rendering, it turns the reflectivity of everything behind that lens up to 100% (like a polished chrome shader, essentially). Just to clarify: The material settings doesn't change, it's just the looks of them in the render that is out of whack.

At first, I thought it might be a problem with the trace depth, so I pumped that up way high, both in the render globals and in the individual materials, but that didn't help even the slightest.

So, how do I whip my shaders into behaving like they should?

Three screenshots, first with the lid on, second with the lid off, third with the lens of the eye turned off. It's very obvious that something is going on, if you look at the backside of the clock. The actual clockwork is covered by a glass window, and as you can see, the inside of the casing looks completely different from the outside, 100% reflective.

http://img593.imageshack.us/img593/9833/refractionup.jpg

hellspawned
07-22-2011, 04:41 PM
Problem sorted out. I noticed that the objects which I thought had turned chrome, had actually not been rendered at all. Seems imported OBJ's are automatically set to not show in reflections or refractions :/ Anyhow, noone needs to bother to sort this out for me! :)

CGTalk Moderation
07-22-2011, 04:41 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.