We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Alpha fadeout (Read 689 times)
Alpha fadeout
Apr 17th, 2009, 8:44am
 
Was wondering if anyone has any ideas on creating Alpha z-levels.  Meaning the further from the camera you are, the more transparent it becomes.  Current the camera will change the size based on the perspective, but I'd also like to change the alpha.  I'd like to do this at some global level, meaning I don't want to check the z position of every object and modify it's alpha as the camera moves.  I also don't want to modify the perspective so that it just completely clips it.
Re: Alpha fadeout
Reply #1 - May 7th, 2009, 6:02am
 
In case anyone runs into this thread on a search, I thought I would post a possible solution.
http://processing.org/discourse/yabb2/num_1129818726.html

JohnG's Fog library does a good job of this.
Page Index Toggle Pages: 1