MipMapping questions
How do I do it. I looked through the help and thought I knew how but then I went to try it out and it doesn''t work. Can anyone give me an example.
DX7 ?, DX8 ?, Using D3DX ?
Assuming DX8:
1. Specify the number of mipmap levels to CreateTexture.
2. Lock each level and fill all the maps required.
3. Use SetTextureStageState with D3DTSS_MIPFILTER, D3DTSS_MIPMAPLODBIAS and D3DTSS_MAXMIPLEVEL to control.
It really is as simple as that - the performance benefits depend on the hardware in use and the amount of minification of textures taking place (texture minification is a perf. killer).
--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com
Assuming DX8:
1. Specify the number of mipmap levels to CreateTexture.
2. Lock each level and fill all the maps required.
3. Use SetTextureStageState with D3DTSS_MIPFILTER, D3DTSS_MIPMAPLODBIAS and D3DTSS_MAXMIPLEVEL to control.
It really is as simple as that - the performance benefits depend on the hardware in use and the amount of minification of textures taking place (texture minification is a perf. killer).
--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com
http://www.cwinapp.com/tutorials/sourcecode/049.zip
You have to download texture also:
http://www.cwinapp.com/tutorials/textures/box.zip
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement