Ok, I have solved it. It was my poor understanding of the OpenGL
extension mechanism. I discovered the osg way to handle extensions and
now I call glGenerateMipmap like this:
...
osg::GLExtensions* ext = renderInfo.getState()->get();
ext->glGenerateMipmap(GL_TEXTURE_2D);
...
With this,
Hello Robert,
the first issue that I mentioned, and the sefault of the attempted fix,
can be reproduced by slightly adapting the osgprerender.cpp example
(attached). I set the texture filtering to something mipmap-ish:
...
Hello Robert,
thank you for your reply.
I will try to put together a minimal example that people can test.
Note that I do not suspect this to be a bug in OSG at all. I assume that
points "1" and "2" that I describe are probably the well defined,
absolutely normal behaviour that OSG exhibits.
Hi Julius,
There isn't much we can do to help at this stage as you don't provide
any information about the hadware, OS, driver, OSG version, all we
know is that you are using a render to texture technique and there is
some issue with mipmapping and some unspecified hardware, OS and OSG
version.
4 matches
Mail list logo