Re: [osg-users] Change particle color !

2008-09-16 Thread b boltze
Hi Mattias, On Monday 18 August 2008 22:42:04 Mattias Helsing wrote: On Mon, Aug 18, 2008 at 8:44 PM, Carlos Sanches [EMAIL PROTECTED] wrote: to do this I need to change the color of particles after your creation only when I press the key. yes it is possible. You need an EventHandler and a

Re: [osg-users] Change particle color !

2008-09-16 Thread Carlos Sanches
hey man I did it . look the example particle cor is the float that is variable of alpha to me , but can be r g or b and using the code in the principal loop: initial_color = osg::Vec4(R, G, B, cor); final_color = osg::Vec4(fR, fG, fB, 0.0);

[osg-users] Change particle color !

2008-08-18 Thread Carlos Sanches
I m doing a rain with particles and I want to press one key and the rain disapear. I m doing this with osgSwitch and is working very well , but , I 'd want that the rain disapear with something like a FADE OUT . to do this I need to change the color of particles after your creation only when I

Re: [osg-users] Change particle color !

2008-08-18 Thread Mattias Helsing
Hi Carlos, On Mon, Aug 18, 2008 at 8:44 PM, Carlos Sanches [EMAIL PROTECTED] wrote: I m doing a rain with particles and I want to press one key and the rain disapear. I m doing this with osgSwitch and is working very well , but , I 'd want that the rain disapear with something like a