D3d & Mipmapping

Started by
0 comments, last by HellStorm 24 years, 1 month ago
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
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

This topic is closed to new replies.

Advertisement