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
0 answers

OpenGL: mipmap generation for bitmap font makes it darker when scaled down

I'm loading a font from a TGA texture. I generate the mipmap using the gluBuild2DMipmaps() function. When the font has a certain size, it looks very good. But when it gets smaller, it gets darker and darker whenever it reaches a new mipmap…
Beriol
  • 646
  • 1
  • 10
  • 25
1
vote
1 answer

Render to a non-zero mip level of a cube map

I'm trying to render an environment map to a separate cube map mip levels. const levels = 8; const width = 128; const height = 128; const internalFormat = gl.RGBA8; const type = gl.UNSIGNED_BYTE; const format = gl.RGBA; const bindingPoint =…
1
vote
2 answers

glGenerateMipmap- identifier not found?

I'm trying to implement glGenerateMipmap so I can go on to recolour each level of a cube I've rendered, except the program won't compile giving the error 'error C3861: 'glGenerateMipmap': identifier not found' I've included '#include ' and inside…
1
vote
1 answer

Generating the MipMap levels for a 3D texture after imageStore()

I want to create a 3D texture, set the lowest (level 0) mipmap level to some data that is generated in shaders, and then auto-populate the rest of the mipmap levels. I create the texture as follows: //Initialize texture dimensions width = w; height…
Makogan
  • 8,208
  • 7
  • 44
  • 112
1
vote
2 answers

Where is GL_TEXTURE_MIN_LOD on the iPhone?

Is there an equivalent ? Is it an iPhone limitation or an OpenGL version limitation ? I can't find the mipmap level feature anywhere.
CodeFlakes
  • 3,671
  • 3
  • 25
  • 28
1
vote
1 answer

Trouble in adding images to mipmap folder in android studio

I am trying to add images to mipmap folder by Batch Drawable Import but images automatically come under drawable folder as shown in screenshot. Can anyone tell me how to import images under mipmap folder? Screenshot::
Riya
  • 415
  • 9
  • 23
1
vote
3 answers

Using mipmaps results in garbage textures

I'm creating my own mipmaps when creating textures, and as soon as I enable mipmaps via GL_LINEAR_MIPMAP_NEAREST (or anything MIPMAP), the textures are just a very dark, blurry mess. If I switch to GL_LINEAR, they're fine. Here's how I'm creating…
EboMike
  • 76,846
  • 14
  • 164
  • 167
1
vote
1 answer

How to create a texture2d with a full set of mipmaps with DirectX11(version before DirectX11.1)

In fact, I got this problem from this question I posted before. It works under windows 10 with directx 12. But I failed to create Texture2D under windows 7 with directx 11. I created a second texture2d to generate mipmaps like…
RustOnce
  • 13
  • 5
1
vote
1 answer

Correct way to use adaptive icons in api 26+

I managed to get my adaptive icons working by creating a folder mipmap-anydpi and placing suggested xml file there (https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive.html#studio) This worked on api 26, but broke icons…
Ilja
  • 44,142
  • 92
  • 275
  • 498
1
vote
2 answers

Strange App Icon behaviour

I have replaced the standard android studio app icon (ic_launcher) with my own(one for each dimension in the mipmap folders) and deleted the ic_launcher round icons since i won't be using round icons on my app. The problem is that although the icons…
Stelios Papamichail
  • 955
  • 2
  • 19
  • 57
1
vote
1 answer

How can I create and mipmap compressed textures for OpenGL ES 2.0 on board (Android)?

I'm working through the openGL ES 2.0 guide, and I just stumbled on this note for the GenerateMipmap(target) command: If the level zero array is stored in a compressed internal format, the error INVALID_OPERATION is generated. The way I understand…
trainman261
  • 123
  • 6
1
vote
1 answer

How are mipmapped textures sampled?

My question is specifically in regards to Metal, since I don't know if the answer would change for another API. What I believe I understand so far is this: A mipmapped texture has precomputed "levels of detail", where lower levels of detail are…
lcmylin
  • 2,552
  • 2
  • 19
  • 31
1
vote
1 answer

glGenerateMipmap() with ARB_sparse_texture extension

I'm using ARB_sparse_texture extension to render volumetric effects in realtime, using very big virtual 3D textures. And I can find no information on how it interacts with automatic mipmap generation (glGenerateMipmap()). I correctly fill the level…
simpetar
  • 39
  • 2
1
vote
1 answer

Issue with RGBA32F texture format and mipmapping using OpenGL ES 3.0

When I use glGenerateMipmap() to generate mipmap for a RGBA32F texture, it always comes to an INVALID_OPERATION error. Binding texture or setting many kinds of texture parameters didn't work. From OpenGL ES 3.0 specification, I find that RGBA32F is…
zhy
  • 103
  • 2
  • 9
1
vote
2 answers

MipMapping problems in OpenGL

I'm loading 3D objects (obj or 3ds or collada files) into my openGL application. The 3 environment is quite large (a few hundred metres in all axis'). My problem is that smaller 3D objects (i.e. in the order of ~< 1-2m ) don't appear to be…
Sonoman
  • 3,379
  • 9
  • 45
  • 61