what are mipmaps?

Posted on 2003-02-27
Medium Priority
Last Modified: 2008-03-17
what are mipmaps and why are they often used in rendering texture?
Question by:j1lted
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 30

Accepted Solution

weed earned 200 total points
ID: 8034914

Expert Comment

ID: 8050468
When you render a bitmapped texture, you can't display all of the information in that bitmap if it scaled down. This means that the bitmap will look blocky and may even miss vital information. In short, in a 3D environment, it looks more like a computer graphic than reality.

A mipmap is a set of the same bitmap at different sizes to eliminate most of the blockiness errors.

A classic example is that of a brickwall texture. Say that our texture is 256x256 and each row of bricks is 8 pixels tall, 7 pixels for the brick and 1 for the morter.
At full size everything looks good, but at 128x128 we are only drawing every second row of pixels. We now have 4 pixels per brick, 3 for the brick and 1 for the mortor....

100% = 256x256 = 8 pixels per brick = 1 morter + 7 brick = 12.5% morter
50% = 128x128 = 4 pixels per brick = 1 morter + 3 brick = 25% morter
25% = 64x64 = 2 pixels per brick = 1 mortor + 1 brick = 50% morter
12.5% = 32x32 = 1 prixel per brick = 1 mortor = 100 % morter

Because we are just mechanicaly pulling using every 2nd/4th/8th/etc row and the first row is morter, that minor detail dominates the bitmap at the smaller scales.

Now, if we mipmap, we can define the 128x128 image better. the best way is, for each pixel, average the color of the 2x2 pixels from the larger image.

Expert Comment

ID: 8070632
"MIP map" is the name given to a collection of images to be used as surface textures when building, or rendering, a 2D representation of a 3D scene. The acronym "MIP" comes from the Latin phrase: multum in parvo which is translated as "many things in a small place".

Each of the many images stored in the "small place", or MIP map, holds a copy of the same texture but at a different scale from the others, each being known as a "MIP map level". The largest-scale copy of the texture is used on surfaces close to the observer's viewpoint; the next smaller-scale image is used on surfaces a little further away and so on.

Using pre-scaled versions of a single texture saves the processing time that would be required to scale-down a large texture to make it usable on a "distant" surface. Scaling of textures is still usually necessary but, by selecting the version of the texture which is closest to the required scale, the scaling process takes less time and also the possibility of errors being introduced by the scaling process, and the consequent distortion of the texture, is reduced.

Expert Comment

ID: 11492873
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.  I will leave the following recommendation for this question in the Cleanup topic area:

- Accept weed’s comment as answer

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

EE Cleanup Volunteer

Featured Post

Introducing Priority Question

Increase expert visibility of your issues by participating in Priority Question, our latest feature for Premium and Team Account holders. Adjust the priority of your question to get emergent issues in front of subject-matter experts for help when you need it most.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
In this Micro Tutorial viewers will learn the basic shortcuts and functions in InDesign.
Learn how to set up basic frames and paths in Prezi and understand the open space that Prezi allows you to create presentations in.
Suggested Courses
Course of the Month15 days, 8 hours left to enroll

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question