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.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › Put an alpha texture on a pixel in "Explode&q
Page Index Toggle Pages: 1
Put an alpha texture on a pixel in "Explode&q (Read 688 times)
Put an alpha texture on a pixel in "Explode&q
Dec 21st, 2005, 4:00am
 
Hi there!
I would like to change a thing in this http://processing.org/learning/examples/explode.html
In fact I would like to put an alpha texture (a *.gif) on each pixel exploded..
I can only change the float between 0 and 100 of the alpha but I would like to put an alpha texture..
Do you think this is possible? And if Yes, how can I do this?
Thanks you very much!
Re: Put an alpha texture on a pixel in "Explo
Reply #1 - Dec 23rd, 2005, 1:09pm
 
just change fill(c) to fill(red(c),green(c),blue(c),-z);
and you'll get a pretty decent result..

-seltar

Page Index Toggle Pages: 1