Jump to content
  • Advertisement
Sign in to follow this  
JBond

MIPMAP

This topic is 3723 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 have a question regarding the MIPMAP. When I am using mipmap as a texture, does the entire mipmap get sent to the GPU or only the specific mipmap level being sent to the GPU? Can I control this? Thanks for the help

Share this post


Link to post
Share on other sites
Advertisement
I would imagine that the entire mip-map is resident on the GPU, as the heuristic for predicting which levels would be required (e.g. frame coherence), would probably be more trouble than its worth. More than one level would be required anyway, if you are using tri-linear filtering.
With OpenGL one can provide custom mip-map levels by changing the level parameter for glTexImage instead of using gluBuild*Mipmaps - you might get some joy out of that (can't remember off the top of my head what the DX version is).
If you are using a fragment shader, it's possible to select a particular mip level when you sample a texture. Whether that's taken into account by the hardware when it is loading textures into memory is another matter...
Finally, I think there's an ATI OpenGL extension to load a particular mipmap level into a texture unit.

Share this post


Link to post
Share on other sites
because hardware compute mip-level in per-pixel level(in pixel shader, when you call tex2d, tex2dlod or tex2dgrad), so all level of mip-maps will be sent to the gpu.

Share this post


Link to post
Share on other sites
With DirectX 9 you can call SetSamplerState(<sampler index>, D3DSAMP_MAXMIPLEVEL, <maximum mipmap level>). I'm not sure if it actually prevents sending the high detail mip levels to the graphics card memory though...

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!