• Advertisement
Sign in to follow this  

How to

This topic is 4338 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok, but if I create a texture from a JPG file What must I set In the D3DXCreateTextureFromFileEx(...) or in other functions or render states, wich parameters, and to what? And how much is it slower as the uncompressed textures?

Share this post


Link to post
Share on other sites
Advertisement
A JPEG file will be uncompressed on loading, as will all other files. Only DDS files with native DXT compression won't be decompressed.

Share this post


Link to post
Share on other sites
Quote:
Original post by ET3D
A JPEG file will be uncompressed on loading, as will all other files. Only DDS files with native DXT compression won't be decompressed.


To expand on this: For a compressed texture to be usable, the video hardware must be able to decompress it. Currently, the only widely supported compressed texture format in hardware is DXT, though individual cards may expose more formats through the fourCC codes.

I don't know of any video hardware with support for JPEG-compressed textures.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement