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?
--
Josef Grunig
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users