wiked lo Posted May 20, 2003 Share Posted May 20, 2003 Is there an easy way to control the alpha of particles based upon their $AGE so that they will fade out, rather than just die? I've created a smoke/fog POP and right now the metaballs have a poping look because they just disappeare when they die, it would be smoother to have them begin to fade out when they get to a certain age, say 2 seconds. Any suggestions? Quote Link to comment Share on other sites More sharing options...
Wolfwood Posted May 20, 2003 Share Posted May 20, 2003 You can use $AGE in conjunction with the smooth() expression. You can put the following expression into the Alpha attribute in the Point SOP. "1-smooth($AGE,2,3)" This will return 1 (Fully opaque) when the age of the particle is less than 2 seconds old. After 3 seconds the alpha will be completely transparent. If the particles age is in between 2 and 3 the alpha will be smoothly interpolated. See the attached hip for an example. If you wanted you could add some random offset to "start fade" and "end fade" so each particle fades out at a different time and rate. Like "1-smooth($AGE, 2+(rand($ID)/2), 3+(rand($ID+5)/2))" LIFEpops1.zip Quote Link to comment Share on other sites More sharing options...
wiked lo Posted May 21, 2003 Author Share Posted May 21, 2003 Wolfwood - thanks so much. I knew I had done this before, but had a brain fart and couldn't remember the exactly code I had put in the point SOP (must be the lack of sleep). Thanks again. Quote Link to comment Share on other sites More sharing options...
sky Posted June 10, 2003 Share Posted June 10, 2003 Would you please re-upload attached file ? It was corrupted archive. Thanks Quote Link to comment Share on other sites More sharing options...
cheolsooe Posted November 8, 2013 Share Posted November 8, 2013 Thanks Wolfwood. Also, I got the answer from your attached file. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.