[osg-users] Qt Quick and Android

Kamil Zaripov kamil at zaripov.net
Fri Sep 22 11:55:24 PDT 2017


Hi James,

Thank you for suggestions.

I don’t sure that using QQuickWindow::beforeRendering() or QQuickWindow::afterRendering() signal will help since it also uses same OpenGL context as Qt Quick Scene Graph, but I will try it.

Solution that uses QQuickRender sound good, I will lock at FlightGear sources.

Best regards,
Kamil.

> On 22 Sep 2017, at 11:17, James Turner <zakalawe at mac.com> wrote:
> 
> 
>> On 19 Sep 2017, at 15:28, Kamil Zaripov <kamil at zaripov.net <mailto:kamil at zaripov.net>> wrote:
>> 
>> Now I’m trying to build osgqtquick library (or just code that is responsible to create QQuickItem) for Android. However I would like to know is there any library that surely works under desktop platforms (Windows, Linux, macOS) and mobile (Android and maybe iOS)?
> 
> There’s another approach you can use, which is simpler than these examples, using the beforeRendering hook of QQ2 to run the OSG render frame. I think I have an example of that somewhere, but would need to check.
> 
> I’m currently working on an integration in the other direction, where QQ2 lives in a custom drawable / post-render camera. This uses QQuickRenderControl and has the advantage of rendering on the OSG graphics thread, so in theorey it’s compatible will all the OSg threading modes and hence offers better performance. It does rely on using a forked implementation of GraphcisWindowQt based on QWindow and QGOpenGLContext. Some of that code is already public (inside FlightGear), the rest should hopfully be published in the next few weeks.
> 
> Kind regards,
> James
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170922/9e06f83b/attachment.htm>


More information about the osg-users mailing list