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 

Issues with Qt based application and occulusion queries


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Daniel Trstenjak
Guest





PostPosted: Mon Feb 26, 2018 3:16 pm    Post subject:
Issues with Qt based application and occulusion queries
Reply with quote

Hi,

the issue is, that if the qt application window is minimized, then
the occlusion queries always return 0 as the number of passed pixels.

I don't think that this is an OpenSceneGraph issue, but I'm hoping to get
some hints here what the reasons of the issue might be, because at the
moment I'm pretty much out of ideas.

We're having a Qt based application, a QGLWidget for the rendering area and
using a 'osgUtil::SceneView' for the rendering of the scene.

For the occlusion queries we don't use OpenSceneGraph functionality, but
directly use the OpenGL extensions GL_NV_occlusion_query or GL_ARB_occlusion_query.
Both extensions behave in the same way for this case.

An application session can be recorded into a script - which might also
include taking snapshots of the 3d scene - and the script can be
executed afterwards and should produce the same snapshots.

The application has a "no gui" mode, which runs the application with a
minimized qt window and is mostly used for the script execution. Now
everything regarding snapshots works in the "no gui" mode, beside of
the occlusion queries, which always return 0 as the number of passed pixels.

Now we also have a "no display" mode of the application, to be able to
run scripts on servers without graphics hardware, by using the Mesa
OpenGL library, and in this case the occlusion queries work like expected.
The biggest difference on the Qt side in this case seems to be that the
instanciated QApplication is of type TTY.

It's also possible to run the version using the Mesa library in "no gui"
mode, in which case I'm getting yet another result, the occlusion query
then returns some passed pixels, but the result is wrong.

At the moment I'm pretty much perplexed how I should interpret these
different results and I could reproduce them on different linux machines
with different graphics cards and drivers.

We're using at the moment OpenSceneGraph-3.0.1 and Qt-4.6.3 (we're
porting to Qt-5.9.4, which gives the same results).

My local machine:
System: Ubuntu 16.04
Graphics Card: GeForce GTX 970
Driver: NVIDIA 375.39

I greatly appreciate any kind of ideas what might be the issue here.

Thanks!


Greetings,
Daniel


------------------
Post generated by Mail2Forum
Back to top
Daniel Trstenjak
Guest





PostPosted: Tue Mar 06, 2018 4:45 pm    Post subject:
Issues with Qt based application and occulusion queries
Reply with quote

Hi,

did anyone ever had problems with OpenGL occlusion queries, either by
using GL_NV_occlusion_query or GL_ARB_occlusion_query directly, or
by using the OpenSceneGraph functionality?

I'm just hoping to get some hints where to look after.

Greetings,
Daniel


------------------
Post generated by Mail2Forum
Back to top
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 Positioning an object based on the Vi... Takarashy General 0 Wed May 23, 2018 3:14 pm View latest post
No new posts The importance of using Camera::setDr... robertosfield General 5 Wed Mar 07, 2018 9:57 am View latest post
No new posts XML serialisation issues / examples hartwigw General 2 Mon Jan 15, 2018 11:54 pm View latest post
No new posts Some issues with the OSG website Chris Hanson General 1 Tue Oct 03, 2017 3:54 pm View latest post
No new posts Integrating joystick in a application... argesino General 0 Thu Jun 08, 2017 9:00 am 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