Color of reflection.


#1

Hi,
I wonder if there is a way of controlling color of reflection? Say I want mirror like object and floating cube in front of it. Surface of the mirror and surface of the cube would be rather bright, but the cube reflection would appear dark (darker than mirror’s surface). Is rendering in passes and than playing with it in post-production best way to achieve it?
Also, I wonder if you could help me finding a solution to make reflection disappear as reflected object are getting further from mirror surface. So far I used Ambient Occlusion plugged in to “reflection color” slot but if there is better solution than I’d love if you could share it with me.

Thanks in advance!
Karol


#2

if you the architectural material or the mib_glossy_reflection shader you can control the distance for the reflection. After a certain distance the shader will reflect the environment skipping any object.

This is really handy to optimise render times.

On theses shader you can also tint your reflection.


#3

Attenuating reflection based on distance is best off as a function of the reflecting object, not of the reflectee.
You can link a scalar node to the reflection and set that scalar to be the distance of the shading point from camera, push it through a change range (so that, say, a distance from 0 to 300 is remapped to reflectance of 0 to 1).
As for colouring reflections, yes, you can.
There’s a node between the switches that is a ray switch, that allows you to plug different shading trees in each ray type, allowing for reflections, final gathering etc all to behave differently.


#4

Thanks so much!
I’ll give it a go once I get back home and bother you more if I won’t be able to figure out details on my own. I’ll do my best though :slight_smile:

Thanks one more time guys.


#5

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.