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

How to get a list of MipMap surfaces from a d3d10 texture2d

In D3D10 there is a method I can use for getting back a single surface from a Texture2D with one mipmap lvl. { IDXGISurface* surface; texture2D->QueryInterface(__uuidof(IDXGISurface), (LPVOID*)&surface); } But this will not work with a texture that…
zezba9000
  • 3,247
  • 1
  • 29
  • 51
1
vote
1 answer

difference between dx9 and dx11 mipmaps

I had tried to generate mipmaps for both DX9 and DX11 in same way, i needed them to sample specific levels from pixel shader. After that i noticed that sampling is different on different DX versions, and seems to be worse with DX11 and good with…
not-a-real
  • 13
  • 4
1
vote
1 answer

How does the glGenerateMipmap function algorithm works and is there a way to change it?

How does the glGenerateMipmap function create the mipmaps? Does it do some kind of interpolation, does it take the average of 4 pixels (this is what assume), or does it skip every second pixel in the next mipmap level? And is there a way to…
1
vote
0 answers

Full page zooming with typeface.js or cufon

Is there a way to "mipmap" with typeface.js or cufon, such that a full-page zoom in a browser will not destroy the crispness of the rendered text? I could not find much information about this. For an example, on this page…
Andrew Lee
  • 2,543
  • 3
  • 20
  • 31
1
vote
0 answers

VkSampler ignoring maxLod

I am having the problem where a VkSampler texture samplers is ignoring the maxLod field of the VkSamplerCreateInfo used in the creation of the sampler and simply rendering the mip level 0 of the image. At first I thought it was that the mipmaps were…
floomby
  • 191
  • 1
  • 9
1
vote
1 answer

Can you glBlitFramebuffer between different levels of the same texture?

Let's say I have a texture that I need to mipmap but I want the mipmapping done hardware accelerated. I decided the best route to take would be something like this: int read = glGenFramebuffers(); int draw = glGenFramebuffers(); int wh =…
LAX1DUDE
  • 164
  • 1
  • 15
1
vote
1 answer

PNG to DDS with Imagick missing Set Arguments

I would like to use the PHP Code like this example setformat('dds'); //Set the format to dds $img->setImageCompression(Imagick::COMPRESSION_DXT5); //Set compression…
Bourns
  • 41
  • 4
1
vote
0 answers

OpenGL: share top level mip between two mipmap chains

I was wondering if it's possible for two mipmap chains to share the data for the top level mip. My use case is the following. I have two environment maps with mipmapping. One is blurred, and one isn't. But the level 0 mip is the same for both. If…
tuket
  • 3,232
  • 1
  • 26
  • 41
1
vote
1 answer

OpenGL which textures should I add MipMaps to and apply anisotrophic filtering

I was wondering to what type of textures do people usually apply MipMaps and anisotropic filtering and to what textures we should not add these. For example, it makes a lot of sense to add MipMaps and filtering to diffuse textures but what about…
Saik
  • 993
  • 1
  • 16
  • 40
1
vote
2 answers

glGenerateMipmap raises GL_INVALID_OPERATION on specific platform

I performed glGenerateMipmap(GL_TEXTURE_2D) on a texture that used as FBO rendering target. It works well on several Windows computers, but when I test it on a Linux laptop with Intel HD3000 graphics card, it raises GL_INVALID_OPERATION error. I…
jiandingzhe
  • 1,881
  • 15
  • 35
1
vote
1 answer

Where to store images in Android

I have moved all my images from the folder mipmap to drawable because here it was said that the mipmap folder is only for app icons to lanch the app Mipmaps vs. drawable folders (the answer got 841 likes). However, when I now want to start my app I…
VanessaF
  • 515
  • 11
  • 36
1
vote
1 answer

How to properly use Three JS WebGLRenderer's method getActiveMipmapLevel()?

I have rendered a plane using Three JS with a texture image. I want to check the active mipmap level being used as I move the object front and back. I am trying to fetch the active mipmap level being used to render the texture by using the method…
1
vote
1 answer

OpenGL Mipmaps and SOIL Flag

So i got the SOIL loading my images now, but it says you can set a flag for the MipMap generation. I set the flag and as far as I know OpenGL does the rest when it comes to using the MipMaps at certain times. Am I wrong in this? and if I am, how do…
Dustin Jensen
  • 465
  • 1
  • 6
  • 16
1
vote
0 answers

DX9 GenerateMipSubLevels produces broken mipmap and destroys framerate

For Variance Shadow Mapping I need a low-res, averaged version of my shadowMap. In DirectX9 I do this by rendering distances to a renderTexture and then generating mipmaps. The mipmap generation should yield results similar to a separable…
Oogst
  • 358
  • 2
  • 14
1
vote
1 answer

What is this mipmap artifact?

There was a weird white line at the edge of my sphere UV when I import texture with mipmap It disappear when I disable mipmap What is this? This is the texture I used
Thaina Yu
  • 1,372
  • 2
  • 16
  • 27