Julia Guo
2009-04-06 01:58:41 UTC
Hi,
I am trying to animate a transition between textures on a surface.
I had a look in osgAnimation (http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a01556.html) but that namespace seems to be just related to geometry. I found osgFX::MultiTextureControl (http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00429.html), which can control which textures are active and how to blend them, but doesnt support animating.
So to animate between textures should I create a callback to update the texture control (like the rotate example in the manual)? Or is there a better approach?
Thank you.
Julia
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=9763#9763
I am trying to animate a transition between textures on a surface.
I had a look in osgAnimation (http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a01556.html) but that namespace seems to be just related to geometry. I found osgFX::MultiTextureControl (http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00429.html), which can control which textures are active and how to blend them, but doesnt support animating.
So to animate between textures should I create a callback to update the texture control (like the rotate example in the manual)? Or is there a better approach?
Thank you.
Julia
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=9763#9763