View Full Version : mipmap genaration from several texture handles

11-24-2008, 03:42 AM

i currently trying to build a complex postprocessing shader, where I render my mipmap levels to FBOs. From the FBOs I get the texture handles of my mipmap levels. But how do I put them together into one texture?

glTexImage2D just work with arrays of the images and genereating mipmaps automatic isn't also what i'mm looking for.

Thanks in advance for suggestions

11-24-2008, 04:56 AM
no automatic generation required. glTexImage2D has a parameter to assign the mipmap level starting with 0. giving it 1 will be the mipmap level over the 0 and so on. make sure you upload ALL required levels otherwise OpenGL behaves like 2d texturing is turned off.

11-24-2008, 05:25 AM
thnx! I'll try it out!