[osg-users] Animating Textures

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Wed Aug 26 15:04:32 PDT 2015


As always I'd suggest shaders, as fixed function pipeline has been 
deprecated 10 years ago ;-)
You could use the osg_SimulationTime uniform to modify the 
uv-coordinates based on the time passed.
Else you will need to modify the texture matrix each frame (like in the 
suggested callback)

Cheers
Sebastian
> Hi All,
>
> I have individual nodes that have textures on them that animate; 
> That's to say the texture moves not the actual mesh. I've been trying 
> to figure out how to accomplish this in OSG. Is there a way to define 
> a texture matrix that does movement? The only other way I can think of 
> is manipulating the UV coordinates in an update callback.
>
> Thanks, Sam
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150827/472d30be/attachment-0003.htm>


More information about the osg-users mailing list