Re: [osg-users] DDS textures flipped on flt files
Hi Brett, Use the dds_flip reader option e.g. osgviewer -O dds_flip test.flt regards, Brede On Wed, Oct 15, 2008 at 4:38 PM, brettwiesner <[EMAIL PROTECTED]> wrote: > 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
Re: [osg-users] DDS textures flipped on flt files
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
Re: [osg-users] DDS textures flipped on flt files
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