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.
I just saw Alberto's post and it's even better, if you have control over
your geometry you can swap your texcoords' s and t coordinates for those
areas where parts 3 and 4 will fall.
Up to you, whether to do it on the image or on the geometry.
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