PDA

View Full Version : Rendering Any Level Of Mipmap



Rainmaker0929
06-22-2011, 11:04 PM
Hi, i want to render to any level of mipmap using OES_framebuffer_object and the functions FramebufferTexture2DOES and FramebufferTexture3DOES. Any help would be great.

gardin
07-16-2011, 11:44 AM
You can't render to all mipmap levels at the same time, as the fragment shaders will be executed for every pixel, the dimensions on the different outputs need to be the same.

There is a method GenerateMipmapOES though, that should do what you want. There's information at http://www.khronos.org/registry/gles/ex ... object.txt (http://www.khronos.org/registry/gles/extensions/OES/OES_framebuffer_object.txt) but it seems poor, a better documentation would be the old EXT_framebuffer_object for OpenGL available at http://oss.sgi.com/projects/ogl-sample/ ... object.txt (http://oss.sgi.com/projects/ogl-sample/registry/EXT/framebuffer_object.txt)