Questions tagged [mipmaps]

Mipmaps (also MIP maps) are pre-calculated, optimized collections of images that accompany a main texture, intended to increase rendering speed and reduce aliasing artifacts.

In 3D computer graphics texture filtering, mipmaps (also MIP maps) are pre-calculated, optimized collections of images that accompany a main texture, intended to increase rendering speed and reduce aliasing artifacts. They are widely used in 3D computer games, flight simulators and other 3D imaging systems. The technique is known as mipmapping. The letters "MIP" in the name are an acronym of the Latin phrase multum in parvo, meaning "much in little". Mipmaps need more space in memory. They also form the basis of wavelet compression.

230 questions
0
votes
1 answer

OpenGL ES 2.0 zooming at multiple resolutions

My iOS app draws 2D curves in an opengles view. The scene is very expensive to render (can take up to 1-2 seconds), which means that, AFAIK, I can't change the scale, redraw, and re-render for incremental changes in scale (due to pinch-and-zoom). I…
user1727274
  • 77
  • 1
  • 6
0
votes
1 answer

Performance boost due to mipmapping

Why is performance boost due to mipmaps? I read somewhere on the net that "when we have 256 x 256 texture data and want to map it to 4x4, then driver will copy only 4x4 mipmap level generated to GPU memory and not 256x 256 data. and sampling will…
debonair
  • 2,505
  • 4
  • 33
  • 73
0
votes
1 answer

Should my spritesheet / atlas be power of 2

Its a common practice to use Atlases / Spritesheets to reduce connection overheads for web-based games and also, I have read about using sprites with a power of 2, which is useful both for memory as well as mipmapping (not sure if this was for…
Ani
  • 1,655
  • 3
  • 23
  • 37
0
votes
1 answer

mipmapping producing wrong results

I'm trying to generate the mipmap of an image. The pixels are stored as a byte[] and the format is {r,g,b,a,r,g,b,a,r,g,b,a ... } What this is trying to do is get each group of four pixels in the image and find the average of those four pixels, then…
Tom Tetlaw
  • 83
  • 1
  • 10
  • 21
0
votes
1 answer

Three.js DDS Json UV Mapping issues

I've searched the internet and I didn't find a proper answer for this question. I've noticed lots of people asking the same thinkg. I have a JSON file exported from 3D max which contains UV information. I'm trying to load the JSON file with a DDS…
0
votes
1 answer

Anyone using glGenerateMipmap in OpenGL ES 2.0 on iOS getting blurry unusable textures?

I am able to generate mipmaps using glGenerateMipMap and I am using min_filter gl_linear_mipmap_linear. Without mipmaps the texture looks fine when displayed around the same size as the actual texture size (512x512) (as expected) but shows aliasing…
ajeetdl
  • 1,254
  • 1
  • 13
  • 17
0
votes
1 answer

GL_GENERATE_MIPMAP vs. GL_MAX_TEXTURE_SIZE

If we generate mipmaps for a texture using GL_GENERATE_MIPMAP (or glGenerateMipmap), how big can the original texture be? Is it the size returned by GL_MAX_TEXTURE_SIZE, or half of it?
Kornel Kisielewicz
  • 55,802
  • 15
  • 111
  • 149
0
votes
3 answers

How to prevent scintillation (antialiasing artifacts) in openGL?

Here is a quote from openGL Super Bible (5th edition, Page No. 208): The first is an effect called scintillation (aliasing artifacts) that appears on the surface of objects rendered very small on-screen compared to the relative size of the texture…
psiyumm
  • 6,437
  • 3
  • 29
  • 50
0
votes
1 answer

Is there any way to access mipmaps in a GLSL 1.2 fragment program?

I would like to access different levels of detail in my GLSL fragment program. I'm currently stuck with using legacy OpenGL, including GLSL 1.2. Unfortunately, I don't have control over that. I see that the texture2DLod() method exists, but it…
user1118321
  • 25,567
  • 4
  • 55
  • 86
0
votes
1 answer

Using glGenerateMipmap() with glCopyTexImage2D()

I wish to upload textures with non-zero mipmap levels using glCopyTexImage2D(). I am using following code for the same : // Render Some Geometry GLint mipmap_level = 1; glGenTextures(1, &textureId); glBindTexture(GL_TEXTURE_CUBE_MAP,…
maverick9888
  • 498
  • 6
  • 16
0
votes
0 answers

How do I generate mipmap .png and model .obj files for LibGDX?

I'm playing a bit with LibGDX (OpenGL ES 2.0 wrapper for Android). I found some sample code which used prepared files to load models and mipmap textures for them, e.g., at…
John M
  • 1,469
  • 17
  • 41
0
votes
1 answer

Mipmapping with generating textures in xna

I'm generating some textures in my game, but I need mipmaps for them. Why are there no mipmaps generating even when I'm setting mipMap to true in the constructor and how can I generate the mipmaps?
eagle999
  • 241
  • 2
  • 4
  • 10
-1
votes
1 answer

Graphics taking 0.5 GB memory in libgdx

I am developing a simple 2D game. I have multiple sprites. Each sprite has around 80 png/frames of 265* 256. I used LibGdx's Texture packer to package the atlas. Am enabling mimap using following code to pac TexturePacker.Settings settings = new…
user93796
  • 18,749
  • 31
  • 94
  • 150
-1
votes
1 answer

JOGL mipmaps and texture shimmering

I've a wall and a brick texture in my OpenGL 2 scene that keeps shimmering and flashing no matter what I set. When I'm zoomed in close (and can see clearly the texture), then the flashing and shimmering stops. But when I'm zoomed out and moving…
user439441
-1
votes
1 answer

Wrong texturing with Mipmapping in OpenGL

if I use this kind of mapping glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA,…
ground0
  • 33
  • 4
1 2 3
15
16