Advertisement Jump to content
Sign in to follow this  
The Frugal Gourmet

Question: Non Pow2 Textures

This topic is 4933 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

I have a video card that supports non-pow2 textures according to the "caps". However, when I attempt to load a non-pow2 texture it still rescales it. Is there any way I can turn this functionality off?

Share this post


Link to post
Share on other sites
Advertisement
You can try loading your images with D3DX with D3DX_FILER_NONE as the filter flag, so when it resizes the image to be n^2, it will blit the original image with it's original size and the rest will be black (with 0 alpha if it is a specified format).

Share this post


Link to post
Share on other sites
Quote:
Original post by The Frugal Gourmet
I have a video card that supports non-pow2 textures according to the "caps". However, when I attempt to load a non-pow2 texture it still rescales it. Is there any way I can turn this functionality off?

Hi Frugal,
Use the D3DXCreateTextureFromFileEx function and use explicit values for the width and height parameters (not D3DX_DEFAULT).

Or in later versions of the SDK use D3DX_DEFAULT_NONPOW2 for the width and height parameters.

HTH,
Cambo_frog

[Edited by - Cambo_frog on July 22, 2005 1:24:07 PM]

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!