hide a 3D layer when it's back is to the camera

Moderators: Disciple, zlovatt

Post Reply
benu
Posts: 3
Joined: March 5th, 2007, 11:48 am

I swear I've seen this before, but can't find it anywhere... I'm trying to figure out the code to make a layer's opacity change from 100 to 0 the moment we see it's back instead of it's front. So if I were spinning a layer, it would hide itself at the moment where it has turned 90 degrees to the camera (when it is paper thin, waning), and wouldn't come back until it had moved another 180 degrees (and was paper thin, but waxing this time).

Does this ring a bell with anyone?
Dan Ebberts
Posts: 320
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

This should do it:

toCompVec([0, 0, 1])[2] > 0 ? value : 0


Dan
benu
Posts: 3
Joined: March 5th, 2007, 11:48 am

Perfect! Thanks, Dan!
Post Reply