H Ahmed, There are various ways to "scroll" textures:
1) manipulate the texture coordinates on geometry, 2) modify the texture coordinates via an OpenGL texture matrix - using osg::TexMat (wrapper to glTexMat) state attribute attached to the StateSet above the subgraph you want to scroll, 3) use an osg::TexGen/glTexGen to generate texture coordinates on the GPU. 4) compute the texture coordinates in your own custom shader. Robert. On 24 March 2014 15:34, Ahmed Essam <ahmedsou...@gmail.com> wrote: > Hi, > I am currently developing a Head Up Display (HUD) for my application. My > target right now is to load a part of image as a texture that will be the > altitude indicator. I know how it works but I want to implement it using OSG > :D. > An image will contain the whole altitude scale ( i.e. from 0 to 10000ft for > example ), and depending on the current altitude of the plane, just a part of > the image will be rendered in the scene and it shall scroll up and down when > the altitude reading changes. > ... > > Thank you! > > Cheers, > Ahmed > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=58710#58710 > > > > > Attachments: > http://forum.openscenegraph.org//files/pfd_alt_strip_931.bmp > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org