On Tue, 2008-10-14 at 09:30 -0400, Jean-Sébastien Guay wrote: > 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.
Wow, don't I feel like a dolt. :) So yes, now it works properly of course. Thanks J-S and Alberto! > J-S _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

