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:
...
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:
...
3 matches
Mail list logo