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
668
votes
1 answer

Mipmaps vs. drawable folders

I'm working with Android Studio 1.1 Preview 1. I noticed that when I create a new project I'm getting the following hierarchy: Mipmap folders for different DPIs, no more different DPIs drawable folders. Should I put all my resources in the mipmap…
David
  • 37,109
  • 32
  • 120
  • 141
473
votes
12 answers

Mipmap drawables for icons

Since Android 4.3 (Jelly Bean) we can now make use of the res/mipmap folders to store "mipmap" images. For example, Chrome for Android stores its icons in these folders instead of the more normal res/drawable folders. How are these mipmap images…
Richard Le Mesurier
  • 29,432
  • 22
  • 140
  • 255
21
votes
3 answers

How many mipmaps does a texture have in OpenGL

Nevermind that I'm the one who created the texture in the first place and I should know perfectly well how many mipmaps I loaded/generated for it. I'm doing this for a unit test. There doesn't seem to be a glGetTexParameter parameter to find this…
Ted Middleton
  • 6,859
  • 10
  • 51
  • 71
21
votes
2 answers

How to load images from mipmap folder programmatically?

How to load images from the mipmap folder programmatically (as done with the drawables)? img.setImageResource(imageId); I am using Android Studio 1.2.1.
M D
  • 47,665
  • 9
  • 93
  • 114
21
votes
3 answers

Usage of mipmap launcher icons before Android 4.2?

I'm using Android Asset Studio to generate my launcher icon and I've seen that the output is now creating mipmap folders instead of drawable folders. Since mipmap support has been added since Android 4.2 and my application is targeting ICS 4.0.3…
gbero
  • 3,890
  • 1
  • 26
  • 30
19
votes
4 answers

Does it make sense to use own mipmap creation algorithm for OpenGL textures?

I was wondering if the quality of texture mipmaps would be better if I used my own algorithm for pre-generating them, instead of the built-in automatic one. I'd probably use a slow but pretty algorithm, like Lanczos resampling. Does it make sense?…
GhassanPL
  • 2,679
  • 5
  • 32
  • 40
18
votes
7 answers

Android launcher icon still showing default in Android Oreo

I changed my application launcher icon using Android Studio 3.0.1: File -> Image Asset In Android 8.1, the icon looks like below image: My AndroidManifest details
CLIFFORD P Y
  • 16,974
  • 6
  • 30
  • 45
18
votes
2 answers

How to access automatic mipmap level in GLSL fragment shader texture?

How do I determine what mipmap level was used when sampling a texture in a GLSL fragment shader? I understand that I can manually sample a particular mipmap level of a texture using the textureLod(...) method: uniform sampler2D myTexture; void…
Christopher Bruns
  • 9,160
  • 7
  • 46
  • 61
14
votes
2 answers

OpenGL/DirectX: How does Mipmapping improve performance?

I understand mipmapping pretty well. What I do not understand (on a hardware/driver level) is how mipmapping improves the performance of an application (at least this is often claimed). The driver does not know until the fragment shader is executed…
matthias_buehlmann
  • 4,641
  • 6
  • 34
  • 76
12
votes
2 answers

Unable to use android:icon="@mipmap/ic_launcher" in Manifest after play services 7.5.0

I have recently update play services using dependencies compile 'com.google.android.gms:play-services:7.5.0' My app icon launcher is in @mipmap/ic_launcher" but this is showing error in AndroidManifest.xml. Should i again place this icon in drawable…
Viks
  • 1,510
  • 4
  • 22
  • 50
9
votes
3 answers

Android Mipmap?

Whenever I try to generate a new Android project with AndroidStudio, it keeps hiding the folder "drawables". This has never happened to me before. I've been looking around and I've realized its been generating this folder called "mipmap". I searched…
cameronmoreau
  • 407
  • 1
  • 6
  • 14
9
votes
1 answer

OpenGL glGeneratemipmap and Framebuffers

I'm wrapping my head around generating mipmaps on the fly, and reading this bit with this code: http://www.g-truc.net/post-0256.html //Create the mipmapped texture glGenTextures(1,…
KaiserJohaan
  • 9,028
  • 20
  • 112
  • 199
9
votes
4 answers

libgdx texture filters and mipmap

When I try to use mipmap filtering in LibGDX, none of the images appear. I'm new to LibGDX, and I have a simple 2d scene with three rotating, scaled circles. In order to anti-alias them, I wanted to use linear filtering. For advice, I looked to…
Kenkron
  • 573
  • 1
  • 3
  • 15
8
votes
2 answers

How does a GLSL sampler determine the minification, and thus the mipmap level, of a texture?

I am working with OpenGL ES (via WebGL), but I think this question is applicable to the full OpenGL profile as well. Suppose I create an OpenGL texture with full mipmap levels, and I set its TEXTURE_MIN_FILTER to NEAREST_MIPMAP_NEAREST. Also suppose…
Daniel Yankowsky
  • 6,956
  • 1
  • 35
  • 39
8
votes
0 answers

Icon is specified both as .xml file and as a bitmap

I recently set my Min SDK version to 26. I ran the code inspector to check for warnings and it asked me to move files in the mipmap-anydpi-v26 to a folder called just mipmap-anydpi, which I did. However, when I run the code inspector again it…
The Fluffy T Rex
  • 430
  • 7
  • 22
1
2 3
15 16