PDA

View Full Version : mipmap genaration from several texture handles



wallace_00
11-24-2008, 03:42 AM
Hi

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

_NK47
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.

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