Hi,

Yes, the DDS textures were generated with 0,0 being top left. This is because DDS (aka microsoft and directX) has its origin in the upper left corner, while OpenGL has its origin in the lower left corner. While I can flip the textures with an option, I wonder if the loader should do this automatically. BMP's have the same problem and they are loaded "correctly" (ie, the flipping is done automatically).

Thanks,
Brett


Gordon Tomlinson wrote:
This could be the way the DDS files have been generated,  a lot of DDS
creation tools by default start with 0,0 top left instead of top bottom (or
the other way round) to the norm in vis-sim imagery,
This has been covered before on the list and a search will most likely pop
out how you can fix this, tools supplied with things like Creator /VegaPrime
make sure the correct 0,0 is chosen, so check you DDS creation tool and
re-gen with the 0,0 origin flipped

__________________________________________________________
Gordon Tomlinson
[EMAIL PROTECTED]
IM: [EMAIL PROTECTED]
www.vis-sim.com www.gordontomlinson.com __________________________________________________________

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
brettwiesner
Sent: Wednesday, October 15, 2008 10:38 AM
To: OpenSceneGraph Users
Subject: [osg-users] DDS textures flipped on flt files

Hi,

I have a sample terrain that shows that DDS textures are incorrect on flt
files. If you load up the flt file in osgviewer you should see a "framed"
terrain. However, the textures are flipped (it seems only vertically).

Thanks,
Brett

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to