OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

QOpenGLWidget in osgQt


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
kragnfroll (Valerian Merkling)
User


Joined: 22 Jun 2016
Posts: 36

PostPosted: Wed Mar 08, 2017 10:09 am    Post subject:
QOpenGLWidget in osgQt
Reply with quote

Hi,

I'm currently working on an app based on OSG 3.4.0 and Qt 5.6, targeting Win7 -- Win10.

Everythings was fine and smooth with Qt 5.5. I'm using osgQt::GLWidget, which is based on QGLWidget.

Since Qt 5.6, I've some hard unsolvable issues with QGLwidget. They are not related to OSG, and I can reproduce them with a Qt only example, but I also know that these problems are solved with QOpenGLWidget.

First, I would like to know if there is any plan for OSG to use QOpenGLWidget.

If not, how hard would it be to make osgQt::QGLWidget inherit from QOpenGLWidget ? does anyone else tried it ?

It was discussed in this topic : http://forum.openscenegraph.org/viewtopic.php?t=15097&highlight=qopenglwidget but it's about OSG 3.2.1 so I don't know how I can use it.


Thank you!

Cheers,
Valerian
Back to top
View user's profile Send private message
Andre Normann
Guest





PostPosted: Wed Mar 08, 2017 10:24 am    Post subject:
QOpenGLWidget in osgQt
Reply with quote

Hi Valerian,

I have done this in the past. Attached you will find my GLWidget class which is using QOpenGLWidget. It is only working in SingleThreaded mode.




-André




2017-03-08 11:09 GMT+01:00 Valerian Merkling < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>:
Quote:
Hi,

I'm currently working on an app based on OSG 3.4.0 and Qt 5.6, targeting Win7 -- Win10.

Everythings was fine and smooth with Qt 5.5. I'm using osgQt::GLWidget, which is based on QGLWidget.

Since Qt 5.6, I've some hard unsolvable issues with QGLwidget. They are not related to OSG, and I can reproduce them with a Qt only example, but I also know that these problems are solved with QOpenGLWidget.

First, I would like to know if there is any plan for OSG to use QOpenGLWidget.

If not, how hard would it be to make osgQt::QGLWidget inherit from QOpenGLWidget ? does anyone else tried it ?

It was discussed in this topic : http://forum.openscenegraph.org/viewtopic.php?t=15097&highlight=qopenglwidget but it's about OSG 3.2.1 so I don't know how I can use it.


Thank you!

Cheers,
Valerian

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70436#70436





_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


------------------
Post generated by Mail2Forum
Back to top
gwaldron (Glenn Waldron)
Appreciator


Joined: 25 Aug 2011
Posts: 192

PostPosted: Wed Mar 08, 2017 11:57 am    Post subject:
QOpenGLWidget in osgQt
Reply with quote

The newer QOpenGLWidget works with OSG, but we have seen it have conflicts with RTT cameras.

On Mar 8, 2017 5:21 AM, "Andre Normann" < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Hi Valerian,

I have done this in the past. Attached you will find my GLWidget class which is using QOpenGLWidget. It is only working in SingleThreaded mode.




-André




2017-03-08 11:09 GMT+01:00 Valerian Merkling < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>:
Quote:
Hi,

I'm currently working on an app based on OSG 3.4.0 and Qt 5.6, targeting Win7 -- Win10.

Everythings was fine and smooth with Qt 5.5. I'm using osgQt::GLWidget, which is based on QGLWidget.

Since Qt 5.6, I've some hard unsolvable issues with QGLwidget. They are not related to OSG, and I can reproduce them with a Qt only example, but I also know that these problems are solved with QOpenGLWidget.

First, I would like to know if there is any plan for OSG to use QOpenGLWidget.

If not, how hard would it be to make osgQt::QGLWidget inherit from QOpenGLWidget ? does anyone else tried it ?

It was discussed in this topic : http://forum.openscenegraph.org/viewtopic.php?t=15097&highlight=qopenglwidget but it's about OSG 3.2.1 so I don't know how I can use it.


Thank you!

Cheers,
Valerian

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70436#70436





_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org





_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
kragnfroll (Valerian Merkling)
User


Joined: 22 Jun 2016
Posts: 36

PostPosted: Wed Mar 08, 2017 12:47 pm    Post subject:
Reply with quote

Thanks for both of your replies, that's really helpfull.

Is it hard to deal with these conflicts with RTT camera ? Because I use it a lot..

Cheers,
Valerian
Back to top
View user's profile Send private message
gwaldron (Glenn Waldron)
Appreciator


Joined: 25 Aug 2011
Posts: 192

PostPosted: Wed Mar 08, 2017 1:59 pm    Post subject:
QOpenGLWidget in osgQt
Reply with quote

Valerian,


Unfortunately we (osgEarth project) haven't found a solution to this yet.The underlying issue is that the QOpenGLWidget (unlike its predecessor the QGLWidget) is backed by an FBO, and this somehow does not interact well with an OSG camera using an FBO. The workaround is to continue using QGLWidget for now.


You can visit the osgEarth forum (http://forum.osgearth.org) and search for QOpenGLWidget for more discussion on the topic.



Glenn Waldron




On Wed, Mar 8, 2017 at 7:47 AM, Valerian Merkling < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Thanks for both of your replies, that's really helpfull.

Is it hard to deal with these conflicts with RTT camera ? Because I use it a lot..

Cheers,
Valerian

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70442#70442





_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
PJPetitprez (Pierre-Jean Petitprez)
Newbie


Joined: 03 Aug 2015
Posts: 17

PostPosted: Thu Mar 09, 2017 3:25 pm    Post subject:
Reply with quote

Hi Glenn and others,

A fellow OSG user once posted a hack to get OSG FBO working nicely with QOpenGLWidget. I have used it myself and it works as intended, though it is not a really "clean" solution as it involves overriding some OSG classes's behaviour.
More info in the related thread: http://forum.openscenegraph.org/viewtopic.php?t=15097

Maybe that helps,

Cheers,
Pierre-Jean
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts osgQT updates removing obsolete OSG s... internetscooter Submission 0 Fri Jan 20, 2017 12:28 am View latest post
No new posts [TEST PASSED] OSG 3.5.5 + osgQt 3.5.5... Konstantin Podsvirov General 0 Wed Jan 11, 2017 5:21 pm View latest post
No new posts osgQt and osg (CMake) Trajce Nikolov NICK General 9 Tue Jan 10, 2017 12:09 am View latest post
No new posts osgQT - Windows 10 pthread.h - not found internetscooter General 1 Thu Nov 17, 2016 4:25 am View latest post
No new posts osgQt project Davide Raccagni Submission 1 Mon Sep 26, 2016 12:03 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP