Hi friends,
I have been working on a G3DWidget for use in Qt applications over the past few days. I just got a proof-of-concept demo working, so I thought it would be fun to share a screenshot. The screenshot shows two different G3D::GApp instances rendering into the panes of a QDockWidget. In the bottom-right pane, there is a QWebView widget that is showing a zoomed out view of the G3D website.
I have designed the G3DWidget interface so it is easy to add to existing Qt applications. It is also straightforward to create multiple G3DWidgets and have them render different things (e.g., different scenes, or the same scene from different views, etc.). Each G3DWidget is bound to the same OpenGL context, so OpenGL resources (e.g., meshes, shaders, textures) can be shared across G3DWidgets with no additional code.
I still need to implement a few more methods from the G3D::OSWindow interface. After that, it would be great to get feedback on the code. I might be doing some stuff wrong. Anyway, I'll post my progress in this thread :)
Cheers,
Mike