On 10 June 2013 18:10, Gaëtan André <[email protected]> wrote:
>     
> reflectionMap->setFilter(osg::TextureCubeMap::MIN_FILTER,osg::TextureCubeMap::LINEAR);
>     
> reflectionMap->setFilter(osg::TextureCubeMap::MAG_FILTER,osg::TextureCubeMap::LINEAR);
>
> These two line solved my problem.
>
> What is the default filter and why does not it work with it ?

The defaults are for a mipmapped texture, if you were just rendering
to the topmost level then unless you enabled the mipmap generation
then these levels will be undefined.  Note the mipMapGeneration line
from the Camera::attach() inline docs:

        /** Attach a Texture to specified buffer component.
          * The level parameter controls the mip map level of the
texture that is attached.
          * The face parameter controls the face of texture cube map
or z level of 3d texture.
          * The mipMapGeneration flag controls whether mipmap
generation should be done for texture.*/
        void attach(BufferComponent buffer, osg::Texture* texture,
unsigned int level = 0, unsigned int face=0, bool
mipMapGeneration=false,
            unsigned int multisampleSamples = 0,
            unsigned int multisampleColorSamples = 0);

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to