[osg-users] qtquick & setMirrorVertically mouse position problem

2018-04-11 Thread Wojtek Kowalski
Hi, QtQuick is integrated with OpenSceneGraph method (via QQuickFramebufferObject) Inside QQuickFramebufferObject I had to use setMirrorVertically(true); to get right osg view (not mirrored). The problem is with picking objects. To get world coords from mouse position I use: Code: ...

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: ...