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
1
vote
1 answer

Some mipmaps doesn't show up

I am working with the layouts on Android, and I have created some images that adapt for different screens, so with the Android Studio, i have created it using the image asset functionality. Now that I have all my mipmaps I want to show them up on my…
user8133393
1
vote
1 answer

glGenerateMipmap with GL_SRGB8 in OpenGL ES 3 results in black texture

I'm using OpenGL ES 3 on Android, and I'm trying to load an sRGB texture and generate mipmaps for it. I'm using GL_SRGB8 for the internal format, generate mipmaps with glGenerateMipmap(GL_TEXTURE_2D), and use GL_LINEAR_MIPMAP_LINEAR. When I try to…
1
vote
0 answers

Can mipmaps be used to compute dot product?

Imagine there're 2 vectors in GPU memory - a and b, which are in fact 2D float textures (1 float value per pixel). The goal is to compute the dot product a·b. If I create a third texture - c - which contains the element-wise product of a and b (i.e.…
sarasvati
  • 792
  • 12
  • 30
1
vote
2 answers

Is generateMipmap done?

In my app I generate mipmaps for the 6x4096x4096 cube map texture. Next I need to undertake some other changes on that texture that are time dependent. All the drawing is done inside of the requestAnimationFrame's loop. Depending on the browser,…
1
vote
0 answers

How mipmaps affect static batching on 2D sprites

I am optimizing my 2D mobile game. There are many sprites with POT size all over the game and I have filled their Packing Tag to enable batching and also checked their Generate Mip Maps checkbox. All these sprites have uniform scales in the game and…
Bizhan
  • 16,157
  • 9
  • 63
  • 101
1
vote
1 answer

Mipmap texture data appears to be corrupted in release build

I am making a heightmap raytracer based on the Maximum Mipmap structure. Long story short, I have manually created a texture with mipmap levels using a "Maximum Filter". In Debug Mode the program runs fine and the texture is OK, but in Release Mode…
aslg
  • 1,966
  • 2
  • 15
  • 20
1
vote
1 answer

Why mipmap folder not show in suggestion of XML Android Studio?

Currently I tried to use ic_launcher from mipmap folder. As I used to with suggestions, I pressed CTRL+SPACE after @ but didn't get any suggestions for mipmap Is there any problem or I miss something to get Suggestions? Any help?
Pratik Butani
  • 60,504
  • 58
  • 273
  • 437
1
vote
0 answers

problems about OpenGL glGeneratemipmap and glGetTexImage

I form a 256*256 image,and I want to use the glGeneratemipmap function to generate 3-level mipmap,then use the glGetTexImage function to get the 2rd level mipmap data,the data I want to should be 64*64,but it turned to be 128*128,here is my code,…
tiger
  • 11
  • 2
1
vote
3 answers

Android adding mipmap-xxxhdpi icon

I added a new version (mipmap-xxxhdpi) in my old project. But the file is coming in red color and also one more file ic_launcher-web.png got generated. Can you explain why this things happens and how resolve them?
adarsh
  • 348
  • 1
  • 4
  • 17
1
vote
2 answers

LibGDX Big FreeType MipMapped font looks pixelated

I've been developing a game for android on LibGDX, and I've just found a problem that it seems no one had before. I searched for answers on how to smooth text, and they say two things: Use FreeType fonts. Use a MipMap texture filter. So, I used a…
Rusca8
  • 533
  • 4
  • 11
1
vote
1 answer

Resize image buttons using mipmaps android

There are 8 imgbuttons on my activity. I want them to resize for different screens, but they stay the same. I am using mipmaps. Main.xml: ......
Anete Jonase
  • 13
  • 1
  • 5
1
vote
2 answers

Why does mipmapping give me barely any performance increases?

I am rendering grass with 8 vertices per piece of grass (per object). This brought my game down from 50+ FPS to exactly 31FPS. Trying to find a solution to this, I stumbled across a Mipmapping tutorial, a way to make the texture less detailed.…
Joehot200
  • 1,070
  • 15
  • 44
1
vote
2 answers

OpenGL billboard interpolation issue

I have a billboard quad with a texture mapped onto it. This is basically some text with transparency. The billboard floats forwards and backwards from the camera's perspective. As the billboard moves away (and appears smaller) there is an flickering…
acheo
  • 3,106
  • 2
  • 32
  • 57
1
vote
0 answers

OpenGL ES2.0 Mipmap level selection, trilinear filtering, and accuracy

Question: How do you calculate what the result of trilinear filtering should be? I am working on getting a video driver working and am running into an issue where I am not passing a test that looks at mipmap levels. A 32x32 texture is created and…
1
vote
1 answer

Whether using mipmap technique for mapping texture can save energy?

Using mipmap when mapping texture can increase rendering speed and reduce artifacts. Recently, I wrote a testbench to characterize the power comsumption of 3D graphics, I found that when I use mipmap technique, the application consumes more power!…