Archived

This topic is now archived and is closed to further replies.

LukeSkyRunner

Mip-Mapping in Direct3D 8.x

Recommended Posts

D3Ddevice.SetTextureStageState 0, D3DTSS_MAGFILTER, D3DTEXF_LINEAR
D3Ddevice.SetTextureStageState 0, D3DTSS_MINFILTER, D3DTEXF_LINEAR
D3Ddevice.SetTextureStageState 0, D3DTSS_MIPFILTER, D3DTEXF_LINEAR

don''t forget to set the number of mipmaps while loading the texture D3DX_DEFAULT works good

Share this post


Link to post
Share on other sites
quote:
Original post by Lupin
D3Ddevice.SetTextureStageState 0, D3DTSS_MAGFILTER, D3DTEXF_LINEAR
D3Ddevice.SetTextureStageState 0, D3DTSS_MINFILTER, D3DTEXF_LINEAR
D3Ddevice.SetTextureStageState 0, D3DTSS_MIPFILTER, D3DTEXF_LINEAR

don''t forget to set the number of mipmaps while loading the texture D3DX_DEFAULT works good


Thank you! Direct3D''s mip-mapping is sexy ''

Share this post


Link to post
Share on other sites
quote:
Original post by Cuchulainn
Does Dx8 create the blurred far away images or do you have to create them yourself?


It can do. D3DX will also do a better job. Though both are done at runtime so favour speed over quality.

Really the far away image shouldn''t be blurred (i.e. lose detail) or change luminance. For the best looking results mip-maps are better generated offline with gamma correction and frequency aware methods.

--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com

Share this post


Link to post
Share on other sites