Hi James,

sorry for the late reply!
Please, feel free to review and merge my code, let me know if you need
clarifications.

Ricky

On Mon, Aug 24, 2015 at 4:03 PM, James Turner <[email protected]> wrote:

>
> On 17 Aug 2015, at 17:33, Riccardo Corsi <[email protected]>
> wrote:
>
>
> Thanks Ricky.
>
> From my point of view the most desired feature is to be able to integrate
> a qt scene (a GUI layout or a browser/pdf/svg viewer widget) inside an osg
> driven application smoothly - i.e. without the need of a Qt application to
> run as main thread loop, but hiding it as a "slave" somewhere in an osg
> module/node, to make those widget pluggable in a "regular" osg application.
>
>
>
> As someone else pointed out, this is a less common scenario for what I’m
> trying to support. What I care more about is people who want to use Qt for
> the thing it’s good at, and integrate OSG within it. So they typically want
> menus, dialogs etc from QWidgets or QQ2 (potentially including Qt Quick
> Controls). That’s the use case I’m focusing on for now.
>
> Hiding Qt introduces a lot of complexity and also trades that rather
> detailed, tailored Qt event loops on each platform, for the rather basic
> ones in each of the GraphicsWindow subclasses.
>
> Instead if you're interested, a while ago I coded an integration to render
> with osg inside a QtQuick+QML application.
> Basically the solution implements a custom QtQuick node which renders an
> osgViewer scene to an FBO, and then copies the FBO contents back to the Qt
> context, to make it available in the qt/qml scenegraph which renders the
> widgets.
> The osgQuickNode uses a separate OpenGL context, not to interfere with the
> one used by Qt for its own scene rendering.
> All the code is here: https://github.com/rickyviking/qmlosg
> If you have questions about the implementation feel free to write me.
>
>
> The solution you propose of a custom QtQuick node rendering OSG is
> definitely interesting to me, and I would guess your code is likely 90% the
> same as what I would write, so with your permission I might attempt to
> merge it with my submission, once I have time to review it.
>
> Kind regards,
> James
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to