[osg-users] fading of an object using animation path

0 views
Skip to first unread message

Christopher Back

unread,
May 18, 2009, 12:40:01 PM5/18/09
to osg-...@lists.openscenegraph.org
Hi,

I am putting together an animation of an assembly process. I use an animation path to move the loaded files. I having been trying to get the one object to fade from 1.0 to 0.0. I set the transparency by overriding the material properties and I slowly decrease the alpha value but it only ever renders the object completely transparent in the animation. Does anyone know of a way around this or another to do it?

Thanks in advance,

 Chris

Cedric Pinson

unread,
May 18, 2009, 12:51:53 PM5/18/09
to OpenSceneGraph Users
Hi Chris,
You can check in examples directory for osganimation* example, there is
an example that fade material attribute.

Cheers,
Cedric

> _______________________________________________
> osg-users mailing list
> osg-...@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
+33 (0) 6 63 20 03 56 Cedric Pinson mailto:morn...@plopbyte.net
http://www.plopbyte.net

signature.asc

Christopher Back

unread,
May 20, 2009, 12:30:17 PM5/20/09
to osg-...@lists.openscenegraph.org
Thanks for pointing me in the right direction. The example helped me to understand how to go about changing the stateset properties but it lead me to another problem. I am restricted to using osg 2.2 which means I can not follow the same method. So I want to create my own animation path callback and within the callback have my keyboard pointer actively start and stop the animation like keyboard callbacks in the tutorials. I have been struggling to accomplish this for two days. Can anyone offer a way to accomplish the start and stop animation and give me some guidance towards how to code it.

Thanks again,

Chris
Reply all
Reply to author
Forward
0 new messages