Hi Aurelien,

if you ask the hardware to create the mipmaps for you (
setUseHardwareMipMapGeneration() ) they are generated automatically.
Otherwise you can write on a given mipmap level yourself, see the "level"
parameter of Camera::attach() method.

I believe that if you use  setUseHardwareMipMapGeneration() on a Texture,
its mipmaps are generated as soon as the texture is compiled, but I'm not
100% sure about this anyway.

Ricky

On Wed, Feb 1, 2012 at 15:21, Aurelien Albert
<[email protected]>wrote:

> Does that mean mipmap generation is fully automated ?
>
> If I try to access to FBO's mipmaps from a shader program, mipmaps will be
> available ?
>
> Are the mipmaps always generated (even if not used) or are they only
> generated "on demand" when they are used ?
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=45165#45165
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to