• Advertisement
Sign in to follow this  

MipMaps in 2D

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

Hello, I know that mipmaps are used when drawing at different distances in 3D, but can mipmaps still be used in my 2d game? For example, if I load a texture that automatically creates a chain of mipmaps, and then I draw it later using a sprite and I have scaled the image, will DirectX automatically draw one of the mipmaps or do I have to do that manually somehow? Thanks

Share this post


Link to post
Share on other sites
Advertisement
If you've scaled the sprite down so it takes less space on the screen, then lower mipmap levels should be used automatically.

Share this post


Link to post
Share on other sites
And that's because mipmaps are selected according to how many texels of the original texture can fit in a single pixel. This number of texels can change with distance or with scaling of a textured triangle.

Share this post


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

  • Advertisement