Document & Visualize forum
Showing results for 
Search instead for 
Did you mean: 

Shader recognises distance from camera

Hi, does anyone know if any of the shaders can change their output based on distance from the camera? So achieving something like Fog in the scene, but through the surface rather than the render settings.

I'm messing around with stylised render settings and it'd be useful to fade stuff in the background...

Similar to the 'air perspective' from the sketch render then, I assume?

I would actually suggest 'distance fog' in the cinerender detailed settings. I know you explicitly said it had to be a surface setting, but this does exactly what you describe. You can untick 'affect background' to keep your environment background clear.

Just did a quick test with a white colour and fairly high distance from the camera you can wash out the colours that are far from the camera. Try playing with the strength setting too.
Erwin Edel, Project Lead, Leloup Architecten

ArchiCAD 9-24 NED FULL
Windows 10 Pro
Adobe Design Premium CS5

Thanks, but I'm potentially wanting to do more than just fade it out - might be useful to use as a mask to apply a different effect or something...

You are wanting a zdepth layer? I do not recall there being an option for that in Cinerender... maybe make a wish?
AC18-23 AUS 7000
Self-taught, bend it till it breaks.
Win10 | E5620 x 2 | 24GB | K2200

Win10 | R5 2600 | 16GB | GTX1660

Not a ZDepth - something in a shader. I know some of the shaders have options around which space they work in (texture / world / camera / etc), so wondered if there was one that used camera space and could respond to distance - I'm guessing not.

Start a new conversation!


Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!