.DDS format support?

Forum for general chit-chat or off-topic discussion.

Moderators: CEGUI MVP, CEGUI Team

User avatar
wizzler
Just popping in
Just popping in
Posts: 10
Joined: Sat Jan 30, 2010 15:28

.DDS format support?

Postby wizzler » Wed Apr 07, 2010 12:57

Hey,

I want to use .dds file format with DX1-5 compression but it seems like this format is not supported by CEGUI (+falagard).

Code: Select all

07/04/2010 14:46:19 (Std)    ---- Version 0.7.1 (Build: Jan  2 2010 Microsoft Windows MSVC++ 9.0 32 bit) ----

/.../

07/04/2010 14:46:19 (Std)    ---- CEGUI Imageset name: TaharezLook
07/04/2010 14:46:19 (Std)    ---- Source texture file: TaharezLook.dds in resource group: (Default)
07/04/2010 14:46:19 (Error)   CEGUI::FileIOException in file ..\..\..\..\cegui\src\RendererModules\Ogre\CEGUIOgreImageCodec.cpp(72) : OgreImageCodec::load: File data was of an unsupported format.



I saw that Torchlight used dds in their game. How come this does't work now? Did they implement the file format themselves? I saw some posts regarding CEGUI 0.6.x that did actually work with dds.

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Re: .DDS format support?

Postby Jamarr » Thu Apr 08, 2010 15:18

CEGUI relies on the ImageCodec modules for loading images, so this is not really a CEGUI problem. If you need to load DDS images, then you need to use an appropriate ImageCodec module that can load DDS images. Since you are using OGRE, I think it is safe to assume that at some point the CEGUIOgreImageCodec supported loading DDS images and no longer does. Note that an ImageCodec is nothing more than a wrapper to an image-loading library (freeimage, devil, silly, etc.).

I remember reading some threads on this same issue, so you may want to search the forums a bit more as I know CE has already answered this question before.
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: .DDS format support?

Postby CrazyEddie » Mon Apr 12, 2010 08:51

Internally CEGUI does not support compressed textures at this time. It's something I've said I'll look at, though have no ETA on when that might be, so if someone wants to get their hands dirty, have at it!

I think the reason it may have worked in the past but not now is due to changes in the way we deal with image data through the CEGUI::ImageCodec system which was previously only used for OpenGL and DirectFB.

CE.


Return to “Offtopic Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests