Page 1 of 1

Functions used to convert to dxt in devil

Posted: 07.07.2003, 13:32
by DBrady
I'm trying to make a simple program to convert images to dxt in devil for windows as the nvdxt tools are still incredibly slow.
The problem is i cant figure out which functions to use to do the actual conversion. Any help would be appreciated.

Posted: 09.07.2003, 15:43
by DBrady
Well i managed to figure it out(it was quite trivial in the end), it just took a bit scouring through the api. I now have a devil based dds converter for windows if anyone would like it. It converts an 8k image to dds in less then a minute which is quite handy. As a side effect from devil it can also convert most images into any image type you like(it doesnt have to be dds). also most types of image can be converted to dds. I have no web space of my own but i could email if anyone is interested. It's about 60kb. but you'll also need to download the windows end user zip file from the devil site and put the dll's in the windows/system folder. that file is about 400kb i think.

P.s it doesnt make normal maps

Posted: 10.07.2003, 07:00
by jim
Hi DBrady,

Tanks a lot for this work. I would like to test your tool. Please send it to jimpage@arcor.de .

Bye Jens

Posted: 10.07.2003, 08:39
by t00fri
DBrady wrote:Well i managed to figure it out(it was quite trivial in the end), it just took a bit scouring through the api. I now have a devil based dds converter for windows if anyone would like it. It converts an 8k image to dds in less then a minute which is quite handy. As a side effect from devil it can also convert most images into any image type you like(it doesnt have to be dds). also most types of image can be converted to dds. I have no web space of my own but i could email if anyone is interested. It's about 60kb. but you'll also need to download the windows end user zip file from the devil site and put the dll's in the windows/system folder. that file is about 400kb i think.

P.s it doesnt make normal maps


Since I have written such a converter some time ago for Linux, let me note that there are quite a few bugs in the DevIL-1.65 code, notably in the DXT conversion routines. Also as to the mipmap administration etc.

I have not yet come around to make the (24bit) DXT3 conversion work well. So if you make some progress here, let me know.
A working DXT3 would be most important in the context of converting high-quality 16k normal maps. Unfortunately, Doug(NVIDIA) has still not yet come around to make his tools work for 16k sized textures...

Bye Fridger

Posted: 10.07.2003, 14:31
by DBrady
I noticed the problem with dxt3 when trying to convert a cloud map. it was completely ruined in the conversion(Not the original). In fact, no matter what dxt format you pick, the dds file always seems to come out the same size. It only seems to be doin a proper conversion for dxt1.
Also when converting files to other formats they sometimes come out upside down.
just a few problems i thought i'd point out to anyone who uses the tool.

t00fri:
If i find a solution to any of them i let you know.