View Full Version : transparent depth based
Hello
I'm looking for a way to have objects further away from the camera more transparent then objects closer tot the camera. What kind of mental ray shader would I need to use to achieve this effect?
|
|
JamesCG
01-24-2008, 12:04 AM
Steve,
My first thought was that you could simply tie in the transparency of the objects to an expression that measures the distance from the camera to objects. You would be looking at each object having it's own unique shader possibly, but it would allow you to make objects transparency to change as the camera get's closer or further away.
JamesCG
ThE_JacO
01-24-2008, 12:38 PM
a scalar state node using the ray length, connected to another node's transparency, will get you 99% there. A change range node inbetween might (most likely will) be needed.
tahar
01-24-2008, 03:20 PM
Steve,
My first thought was that you could simply tie in the transparency of the objects to an expression that measures the distance from the camera to objects. You would be looking at each object having it's own unique shader possibly, but it would allow you to make objects transparency to change as the camera get's closer or further away.
JamesCG
as u said but, how know the objects ?
A change range node inbetween might (most likely will) be needed.
If you have access to the BA shaderpack, there's a raylenght-like shader in it that does allow to specify the range.. so the change range can be skipped.
Still: It's always good to stick with factory supplies :)
thanks for all the tips....i'll try them all out.
CGTalk Moderation
01-24-2008, 06:01 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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.