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 FADE OUT . > to do this I need to change the color of particles after your creation only > when I press the key. > > is this possible ?? > yes it is possible. You need an EventHandler and a osg::Timer. Set the color in EventHandler::handle(osgGA::FRAME). There is probably 10 other ways to do this also. Mattias > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

