[osg-users] Why is my texture flipped when written to .osg file?

Björn Giesler osgforum at tevs.eu
Sun Mar 1 08:13:49 PST 2009


I'm writing a textured model to a .osg file, referencing a jpg file as the texture. In my program, this renders perfectly, but when I open the resulting file with osgviewer, the texture is upside-down. I've tried experimenting with osg::Image::setOrigin(), but that doesn't change anything.

Can someone tell me what I'm doing wrong?

Thanks a lot in advance!

Read this topic online here:

More information about the osg-users mailing list