Re: [osg-users] render to a texure bound to an FBO and re-generate mipmaps every frame

2018-04-11 Thread Julius Ziegler
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,

Re: [osg-users] render to a texure bound to an FBO and re-generate mipmaps every frame

2018-04-11 Thread Julius Ziegler
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: ...

Re: [osg-users] render to a texure bound to an FBO and re-generate mipmaps every frame

2018-04-10 Thread Julius Ziegler
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.

Re: [osg-users] render to a texure bound to an FBO and re-generate mipmaps every frame

2018-04-10 Thread Robert Osfield
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.