Skip to main content
gamedev.net
🔒 Locked

Mip mapping

Started by peter86 1 reply 700+ views
Original Post
peter86
peter86
Some questions about mip mapping in DX9: How do I tell D3D to use mip maps for rendering? How should the mip map chain be created? Just by a call to D3DXCreateTextureFromFileEx() or do I need to do anything else?
treething
treething
In D3DXCreateTextureFromFileEx there are 2 parameters that control the mipmaps created. They are explained in the docs.

To control the usage of mipmapping there are a few sampler states.

D3DSAMP_MIPFILTER
D3DSAMP_MIPMAPLODBIAS
D3DSAMP_MAXMIPLEVEL

If you use the default states and D3DX_DEFAULT in the loading function then you should have and be using mipmaps.



curtmax_0
curtmax_0
I don''t have the d3d docs with me. But you can also ''hint'' the video hardware to generate mipmaps with the texture object. It is something like IDirect3DTexture9::GenerateMipMapSublevels() or something...

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.