Hi Jeremy,

I can see from a
high-level how, if you rotate the entire texture 90 CW, you could use
horizontal texture repeat to achieve the desired effect. This doesn't,
unfortunately, give me any hints as to how to actually implement this in
osgWidget.

You could just rotate sections 3 and 4 by 90 degrees yourself before making osg::Texture objects from them (at image load time). To rotate by 90 degrees, just make another image where the S and T dimensions are swapped, then loop through the image swapping the x and y coordinates of all pixels in the image.

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay    [EMAIL PROTECTED]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to