-
Having opacity of objects be controlled by camera position
Greetings,
I have scene where there are floating screens (all objects are 3d layers) with a camera. What I’d like to happen is the following… the closer I move the camera to any object, the more opaque it becomes. When the camera pulls away from it, the object becomes transparent. Let’s say, it never drops below 20% opacity and never goes over 90%.
If this makes sense, please let me know if and how this is possible. I’m sure there’s an expression that controls it all, but I’m not very good at code. I did a search on the interwebs, but didn’t quite find the solution for what I need.
Any help, links, tutorials, etc. are welcome! Thanks everyone,
Redpandavfx