Hello,

I am playing a bit with the new Qt5 QML functionality, hoping to find
a way to render Qt-created FBOs/textures inside of the OSG scenegraph.
However, for that I need to have a way to pass the OpenGL texture/fbo
handles to OSG. I haven't found a way how to construct e.g. a
Texture2D instance around an id that was created by someone else. Is
there something (constructor, factory, ...) for doing this?

I could, of course, grab the texture into an image and then recreate
it on the OSG side, but that is slow - it requires downloading of the
texture from the GPU and then re-uploading. Being able to use the
pre-filled FBOs would be ideal. Qt seems to be able to render into
them, just I don't see a way how to tell OSG about it.

Regards,

Jan
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to