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
2
votes
2 answers

Do I need to put my icons in both mipmap and drawable folders, if I am supporting older versions of android (before 4.3)?

There are many posts which suggest that you should use the mipmap folders for your app icons. This seems to have come in android 4.3 I intend to support older android devices (Android 2.3.3 and above). I have: minSDK: android-10 targetSDK:…
Rahul Iyer
  • 19,924
  • 21
  • 96
  • 190
2
votes
0 answers

Missing launcher icon after upgrading to mimap

I updated my project ic_launcher icon from drawable to mipmap with the following configuration: Old project: drawable - ic_launcher.png(5) -- ic_launcher.png(hdpi) -- ic_launcher.png(mdpi) -- ic_launcher.png(xhdpi) -- ic_launcher.png(xxhdpi) --…
2
votes
1 answer

Android MipMap - How to create image resources in XML

I've noticed for a while now that Android Studio has "mipmap" folders in the project directory. From what I understand, in order to make sure we have consistency of image resources across all devices (in-app icons) we should have image resources in…
CBA110
  • 1,072
  • 2
  • 18
  • 37
2
votes
0 answers

android.content.res.Resources$NotFoundException: File res/mipmap-xxhdpi-v4/ic_launcher.png from xml type layout resource ID #0x7f030000 error

I am getting the following run-time error: android.content.res.Resources$NotFoundException: File res/mipmap-xxhdpi-v4/ic_launcher.png from xml type layout resource ID #0x7f030000 To my understanding it is a problem where the ic_launcher cannot be…
WIll
  • 45
  • 6
2
votes
1 answer

GL: Autogenerating some, but not all, mipmap levels?

I have a texture that I'd like to have relatively fine control over for the two or three largest mipmap levels, but at smaller sizes, I'm happy to have GL generate the mipmaps for me based on the smallest one that I've uploaded, on down to 1x1. Is…
Ben Zotto
  • 70,108
  • 23
  • 141
  • 204
2
votes
4 answers

How to check for mip-map availability in OpenGL?

Recently I bumped into a problem where my OpenGL program would not render textures correctly on a 2-year-old Lenovo laptop with an nVidia Quadro 140 card. It runs OpenGL 2.1.2, and GLSL 1.20, but when I turned on mip-mapping, the whole screen is…
Xavier Ho
  • 17,011
  • 9
  • 48
  • 52
2
votes
1 answer

How to downsample a texture

(I'm doing this in Apple Metal, but I think the question applies to OpenGL and DirectX too. Code examples from Metal or OpenGL are highly welcome.) I have one texture smallTex whose size is a multiple of the size of another texture bigTex. For…
Jonas Sourlier
  • 13,684
  • 16
  • 77
  • 148
2
votes
2 answers

Android studio mipmap and 9-patch drawables

I am facing strange issue trying to put 9 patch drawables into new android studio mipmap directories. I've put all the images to specified folders, just as I used to do with drawable, but when I try to include it in a project it says Cannot…
Evgeniy Mishustin
  • 3,343
  • 3
  • 42
  • 81
2
votes
1 answer

Construct PVRTC mipmaps texture using array of textures?

How to construct PVRTC mipmaps texture using array of textures for every mipmap level different texture? eg. 2048.png level 0 1024.png level 1 . . 2.png level 10 1.png level 11 I need mipmap texture with PVRTC compression for my OpenGL ES2. I…
user2897753
2
votes
0 answers

Why do some of my png files not work with mipmaps (android opengl app)

I use the following code to create mipmaps in my android app gl.glTexParameterf(GL11.GL_TEXTURE_2D, GL11.GL_GENERATE_MIPMAP, GL11.GL_TRUE); It works with most of my .png files, but some of them aren't loaded properly (appear as blank white…
Nam5hub
  • 21
  • 3
2
votes
1 answer

Disable mipmapping in OpenGL ES 2.0

I would like to draw some of the same figures (with the same texture) on screen (OpenGL ES 2.0). These figures will be different in magnification and minification filters. And different states mipmapping. The issue is: if I use mipmapping in draw…
Simplex
  • 1,723
  • 2
  • 17
  • 26
2
votes
3 answers

glGenerateMipmap IMGSRV error

In my app I am trying to use textures but I am getting the errors :0: SGXQueueTransfer: all paths failed :0: HardwareMipGen: Failed to generate texture mipmap levels (error=3) on my Galaxy Nexus. I don't get these errors on my EVO 4G. Here is the…
Alchitry
  • 1,369
  • 1
  • 16
  • 29
1
vote
1 answer

OpenGL mipmap issues

I have mipmapping working properly. But for some reason, after I apply the texture, all other objects in my application take on what seems to be the average color of the texture. Even the HUD. Is there something i need to account for? Here is the…
grep
  • 3,986
  • 7
  • 45
  • 67
1
vote
0 answers

Opengl binding different mipmap levels of same texture2darray for use in compute shader. How to handle variable nr of levels?

So I want to make a compute shader that uses a coarse-to-fine approach. As I have learned about open gl mipmap levels it seems they could be very useful. However the only binding method which I have found and used (so far) for individual mipmap…
mathreadler
  • 447
  • 5
  • 16
1
vote
0 answers

How to avoid redundancy in MipMap For Locale

I have to use different mipmap based on locale of user. But some of them are same. Example, en_US and en_GB need same launcher icons but en_IN needs different. I know the way is to create multiple mipmaps (anydpi-v26,mdpi,hdpi,xhdpi,xxhdpi,xxxhdpi -…