Hi,
I added compressed texture support to Irrlicht. Code was writed quickly, so it hasn't got many features and it is good only for primary texture operations - load texture and show it (scaling, mixing and other modification of loaded texture isn't support). DDS texture reader is base on loader from IrrSpintz. It doesn't support mipmaps saved in dds file, so only mipmaps generated in engine are usage. This code it's enough for usage compressed textures in games, but it isn't good as native part of Irrlicht engine, because it need many imprevments. This is very good temporary solution, so to time when we will get native support of compressed texture in Irrlicht.
Supported dds formats:
DXT1, DXT2, DXT3, DXT4, DXT5, A8R8G8B8
Before compilation You have to add CImageLoaderDDS.h and CImageLoaderDDS.cpp to Irrlicht project. You also have to disable D3D8 support.
You can download patch from (it's compatible with rev 3232 and support OpenGL and Direct3D9 modes):
http://nadro.net46.net/Patches/irrlicht ... port.patch
Compressed DDS texture support (rev3232)
Compressed DDS texture support (rev3232)
Last edited by Nadro on Mon Mar 01, 2010 12:10 am, edited 4 times in total.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
I was just thinking I need this, very good timing! Will report back with comments.
I am surprised to find OpenGL support with extensions too, nicely done.
I am surprised to find OpenGL support with extensions too, nicely done.
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
-
- Posts: 758
- Joined: Mon Mar 31, 2008 3:32 pm
- Location: Bulgaria
Re: Compressed DDS texture support (rev2402)
BTW, though currently X8R8G8B8 format is not supported by the above patch, it is easy to convert it to A8R8G8B8 format using DirectX SDK's "DirectX texture tool".Nadro wrote:Hi,
Supported dds formats:
DXT1, DXT2, DXT3, DXT4, DXT5, A8R8G8B8
Thanks for the patch.
Regards,
Jiang
Im having some problems with this
For loading uncompressed dds files, it works great.
For compressed ones (in my case my .dds are DXT1) it doesnt seem to work. The node is shown as white as if no texture were applied. But no error is shown in the console either. It does say "DDS : ECF_DXT1 format" when loading it though.
I'm using OpenGL if it matters (don't have the directx sdk installed so I can't compile the dll with it) and I'm using rev 2778 of Irrlicht.
Any suggestions?
For loading uncompressed dds files, it works great.
For compressed ones (in my case my .dds are DXT1) it doesnt seem to work. The node is shown as white as if no texture were applied. But no error is shown in the console either. It does say "DDS : ECF_DXT1 format" when loading it though.
I'm using OpenGL if it matters (don't have the directx sdk installed so I can't compile the dll with it) and I'm using rev 2778 of Irrlicht.
Any suggestions?
Model of Your GFX card? Maybe Your graphic card doesn't support this extensions.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Hmm, it's a nvidia geforce 8500GT
Any reason why it would work for uncompressed but not for compressed though?
Maybe I should download the directx sdk and try to see if its only opengl that has the issue.
Could be my computer though. I will try it on my other one tomorrow to be sure.
Edit: Guess its my comp, I sent it to a friend and its working fine on his lol. Well atleast I know the problem is me, guess I'll reinstall my driver or something. Thanks for the response though dude.
Any reason why it would work for uncompressed but not for compressed though?
Maybe I should download the directx sdk and try to see if its only opengl that has the issue.
Could be my computer though. I will try it on my other one tomorrow to be sure.
Edit: Guess its my comp, I sent it to a friend and its working fine on his lol. Well atleast I know the problem is me, guess I'll reinstall my driver or something. Thanks for the response though dude.
Re: Compressed DDS texture support (rev3232)
thanks
**
If you are looking for people with whom to develop your game, even to try functionalities, I can help you, free. CC0 man.
**
If you are looking for people with whom to develop your game, even to try functionalities, I can help you, free. CC0 man.
**