Hello Josef,

this one slipped through the cracks I'm afraid, but I finally got to
take a look at it and fixed it (hopefully ;) ).

For those interested: The problem was that switching the filtering mode
to GL_LINEAR or GL_NEAREST was optimized to not cause a reinit of the
OpenGL texture object but only a refresh. However the refresh case in
the TextureChunk::handleTexture did not reapply the filter settings.

Thanks for the bug report and apologies for the delayed fix,
        Carsten

On Wed, 2007-05-09 at 18:58 +0200, Josef Grunig wrote:
> Hi all,
> 
> Using the textureChunk setMinFilter I've noticed a strange behaviour.
> Start value is GL_LINEAR; when selecting GL_NEAREST with correct field
> mask
> 
> beginEditCP (tex, osg::TextureChunk::MinFilterFieldMask);
>       tex->setMinFilter(GL_NEAREST);
> endEditCP (tex, osg::TextureChunk::MinFilterFieldMask);
> 
> and redrawing, the texture filtering gets not updated. As a workaround
> I have to add a mask of another field, like this:
> 
> beginEditCP (tex, osg::TextureChunk::MinFilterFieldMask |
> osg::TextureChunk::WrapSFieldMask);
>       tex->setMinFilter(GL_NEAREST);
> endEditCP (tex, osg::TextureChunk::MinFilterFieldMask |
> osg::TextureChunk::WrapSFieldMask);
> 
> 
> if start value is GL_NEAREST and I set GL_LINEAR, it gets correctly updated.
> 
> You can reproduce it with VRed.
> 
> Any idea of what is happening?
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to