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

looking for a mipmap generator in java

I need to generate a mip map from an arbitrary image (different formats, not necessarily squared) in java. Because I don't like to reinvent the wheel I spend some time looking for a stand alone java class, without any luck. Does anyone know a…
Velrok
  • 345
  • 4
  • 17
4
votes
1 answer

This folder configuration ('v26') is unnecessary; 'minSdkVersion' is 26. Merge all the resources in this folder into 'mipmap-anydpi'

I'm getting this message in the Code Analysis after setting my Min SDK to 26. This folder configuration ('v26') is unnecessary; 'minSdkVersion' is 26. Merge all the resources in this folder into 'mipmap-anydpi'. However, I don't know exactly what…
The Fluffy T Rex
  • 430
  • 7
  • 22
4
votes
2 answers

how to make opengl mipmaps sharper?

I am rewriting an opengl-based gis/mapping program. Among other things, the program allows you to load raster images of nautical charts, fix them to lon/lat coordinates and zoom and pan around on them. The previous version of the program uses a…
M Katz
  • 5,098
  • 3
  • 44
  • 66
4
votes
0 answers

Is it possible to render to texture's mipmap level 1 while sampling from level 0? (opengl, texture 2d)

Is it possible to render to one of RenderTexture's mipmap level while sampling from other levels? The situation is i want to downscale a texture 4 times using shader, i could put all these intermediate results together on a big texture (at level 0,…
21k
  • 391
  • 5
  • 16
4
votes
2 answers

is it possible to get mipmap image by id?

I have stored image icons in res/mipmap folder of my android project. Each of them have their own image id. I want to check if I have image there by image id. I want to do something like, String input_id = "blue_image"; ImageView image; if…
Rohanil
  • 1,717
  • 5
  • 22
  • 47
4
votes
1 answer

Creating and using my own mipmap of a texture atlas

I'm currently using the automatic mipmap generation (C# + OpenTK): GL.GenerateMipmap(GenerateMipmapTarget.Texture2D); The texture I'm using is tiled into blocks of 16px². So my questions would be: Is it possible to use a mipmap which doesn't get…
copyboy
  • 115
  • 2
  • 7
4
votes
0 answers

OpenGL - Texture Artifacts at a distance despite having mipmaps

Lately, while getting used to C++ (already knowing OpenGL * fairly * well), I've gotten tired of the visual artifacts I see with textures at a distance, especially with large flat surfaces such as terrain. When coding in Java and OpenGL, I saw the…
David
  • 41
  • 6
4
votes
1 answer

How should we use the mipmap folders added with android 4.4?

I recently installed one more Android SDK to Android Studio, the SDK version 4.4 (API level 19), and after using it with my project, it added a set of mipmap folders in the project's res folder (res/mipmap). I neither understand why, or how to use…
Daniel Kvist
  • 3,032
  • 5
  • 26
  • 51
4
votes
2 answers

libGDX smooth FreeTypeFonts

I have problems to obtain smooth fonts with libGDX. I already search on this site, and on google, I tried the solutions on these questions here and here, but I always have poor rendering of my fonts. Exemple : I tried several methods, and always…
vdlmrc
  • 737
  • 5
  • 17
4
votes
1 answer

glGenerateMipmap fails if not followed by a glGetError... wait, what?

I've been having a very weird issue with my project's texture generation. The first mipmapped texture works flawlessly but the next ones only draw the first level. While debugging I suddenly came to a hack that fixes it: glGenTextures(1,…
h4lc0n
  • 2,730
  • 5
  • 29
  • 41
4
votes
1 answer

Manual selection lod of mipmaps in a fragment shader using three.js

I'm writing a physically based shader using glsl es in three.js. For the addition of specular global illumination I use a cubemap dds texture with mipmap chain inside (precalculate with CubeMapGen as it's explained here). I need to access this…
Ale_32
  • 648
  • 1
  • 6
  • 16
4
votes
0 answers

How can I figure out whether mipmaps were generated? (three.js)

How can I figure out whether mipmaps were generated for my textures? The "mipmaps" property of the texture is just for manual mipmapping and is empty per default, right? My textures are power of 2, and that's what I do with them: texture.minFilter =…
Doidel
  • 1,743
  • 1
  • 14
  • 22
4
votes
1 answer

How to dynamically enable/disable texture mip-maps in OpenGL?

So, glGenerateMipMap is great. I'm wondering about a couple of things: suppose the texture image is changed via glTexSubImage2D, another call to glGenerateMipMap is -- sufficient / required / unnecessary? suppose end-users should be able to…
metaleap
  • 2,132
  • 2
  • 22
  • 40
4
votes
2 answers

How to use glReadPixels() to return resized image from FBO?

Shortly: I need a quick way to resize the buffer image and then return the pixels to me to save them to file etc. Currently I first use glReadPixels(), and then I go through the pixels myself to resize them with my own resize function. Is there any…
Rookie
  • 4,064
  • 6
  • 54
  • 86
3
votes
2 answers

Weird mip map related issue using SOIL - OpenGL

I am using SOIL to generate OpenGL textures. Everything is fine except for distant artifacts caused by the mip map generation in SOIL. When I don't use the flag: SOIL_FLAG_MIPMAPS It doesn't artifact BUT it looks bad. Has anyone seen artifacts like…
Satchmo Brown
  • 1,409
  • 2
  • 20
  • 47
1 2
3
15 16