[osg-users] Sliding / Scrolling Textures

2010-04-08 Thread Frank Sullivan
Hi, I am just trying to implement some sliding textures for things like waterfalls and what have you. I figure that the best way to do this is to modify the texture matrix. So, if I want to slide a texture in the U direction by 0.1 units, I would use a texture matrix that looks like this:

Re: [osg-users] Sliding / Scrolling Textures

2010-04-08 Thread Jean-Sébastien Guay
Hi Frank, I am just trying to implement some sliding textures for things like waterfalls and what have you. I figure that the best way to do this is to modify the texture matrix. Yes, you've got the theory right, let's see about the practice: // ... stateSet-setTextureAttribute(0,

Re: [osg-users] Sliding / Scrolling Textures

2010-04-08 Thread Frank Sullivan
Skylark wrote: Hope this helps It sure did! Thanks! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=26594#26594 ___ osg-users mailing list osg-users@lists.openscenegraph.org