Hi,
Anyone got a working .dds loader? I urgently need a loader and only need dds textures to get loaded and nothing more.
Ages ago nadro wrote a loader but the link is dead and can't find the two files CImageLoaderDDS.cpp and CImageLoaderDDS.h
If anyone got these files can you please provide them to me? I'd be much obliged.
DDS loader ??
-
- Posts: 219
- Joined: Fri Feb 19, 2010 4:03 pm
- Location: Estonia
DDS loader ??
to live, is natural; to die, is not!
-
- Posts: 1186
- Joined: Fri Dec 29, 2006 12:04 am
-
- Posts: 219
- Joined: Fri Feb 19, 2010 4:03 pm
- Location: Estonia
Re: DDS loader ??
randomMesh wrote:There's a DDS loader in the irrExt repository.
Many thanks! But how am I supposed to use it?
Is the main.cpp meant to be an example?
EDIT: I dont need to do any image handling, all I want is that if a mesh has .dds images applied they would be loaded automatically by loader. So if I do:
Code: Select all
IrrlichtDevice *dev = createDevice( EDT_NULL, core::dimension2d<u32>(), 32, false, false, false, 0 );
irrutils::CImageLoaderDDS *img = new irrutils::CImageLoaderDDS( dev->getVideoDriver() );
dev->getVideoDriver()->addExternalImageLoader(img);
img->drop();
would it then load dds images?
to live, is natural; to die, is not!
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: DDS loader ??
Yes, that's the idea. Of course you also have to add the sources of the loader to your project.
-
- Posts: 219
- Joined: Fri Feb 19, 2010 4:03 pm
- Location: Estonia
Re: DDS loader ??
Thanks, it works.
FYI, it seems like there is no support for alpha.
All dds images with alpha channel don't get loaded.
FYI, it seems like there is no support for alpha.
All dds images with alpha channel don't get loaded.
to live, is natural; to die, is not!
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: DDS loader ??
Another hint: We have a dds loader in the core engine as well. You just have to enable it in IrrCompileConfig.