Jump to content
  • Advertisement

Archived

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

HellStorm

D3d & Mipmapping

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

Well I have looked at the sample code in the dx7 sdk concerning mipmapping. Well with the dx7 immediate mode sample the program loaded 5 pre-made mipmaps(u know the numbered bricks). Does anyone have some sample code where the mipmaps are generated from a single texture instead. I want to stay away from the utility library for now. Thanx for any help HellStorm

Share this post


Link to post
Share on other sites
Advertisement
Mipmaps aren't that hard to generate. For each lower level you average together four pixels into one.


+-+-+-+-+ +---+---+ +-------+
/ / / / / / / / / /
+-+-+-+-+ / / / / /
/ / / / / / / / / /
+-+-+-+-+ > +---+---+ > / /
/ / / / / / / / / /
+-+-+-+-+ / / / / /
/ / / / / / / / / /
+-+-+-+-+ +---+---+ +-------+


Edited by - Spellbound on 3/8/00 5:50:33 AM

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!