Hi all,

Is there an endianess problem with DDS format? I'm using a Core2Duo here and I 
don't know under which kind of machine the DDS has been tested...

A little explanation: After a bit of investigation (=cleaning stupid 
copy-paste), I found that the only "true" bug I had was "Changing R, G or B 
writer's masks doesn't seem to affect reading in 3rd-party readers". Has 
anybody encountered this before?
Writing DDS: It seems the DDS must be BGR in order to make 3rd-party readers 
work correctly (by inverting R and B channels).
Reading DDS: It seems DDS generated (from a JPG) by 3rd party tools are marked 
RGB but are BGR...

Please help and share your experience!

Sukender
PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/

----- "Sukender" <suky0...@free.fr> a écrit :

> Hi Robert and all,
> 
> I'm lost:
> - Changing R, G or B writer's masks doesn't seem to affect reading
> (either the plugin or 3rd-party readers, except when masks are
> completely nonsense)
> - Copying the image (DEEP_COPY) and writing the copy instead of the
> oringinal result in a vertical flip of the image in the file!
> - Manually inverting R & B channels in a copy of the image doesn't do
> anything...
> I must have a very stupid mistake somewhere but I can't fugure out
> where...
> 
> Any idea?
> 
> Sukender
> PVLE - Lightweight cross-platform game engine -
> http://pvle.sourceforge.net/
> 
> ----- "Robert Osfield" <robert.osfi...@gmail.com> a écrit :
> 
> > Hi Sukender,
> >
> > I'm not overly familiar with the dds plugin, but what you describe
> > sounds like a bug in writer in our dds plugin.
> >
> > Robert.
> >
> > On Fri, Dec 18, 2009 at 5:15 PM, Sukender <suky0...@free.fr> wrote:
> > > Hi all,
> > >
> > > It was discussed a long time ago but I dit not find an answer.
> > Saving to DDS an uncompressed RGB image and then loading from the
> file
> > works: the loaded image is the same as the original. However, the
> file
> > is BGR (R and B inverted). I tried three 3rd-party tools (image
> > viewer/converters) and all display the same.
> > > Do you think this is a bug in DDS readerwriter? Anyone has a clue
> > about it?
> > > Thanks a lot.
> > >
> > > Sukender
> > > PVLE - Lightweight cross-platform game engine -
> > http://pvle.sourceforge.net/
> > > _______________________________________________
> > > 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
> _______________________________________________
> 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