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 

Conflict between OSG and Qt


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins]
View previous topic :: View next topic  
Author Message
jmirabel
Newbie


Joined: 04 Jan 2016
Posts: 4

PostPosted: Mon Mar 21, 2016 9:08 am    Post subject:
Conflict between OSG and Qt
Reply with quote

Hi,

On some computers only, when compiling and running the enclosed file, COLLADA files are not rendered properly. Instead of the proper mesh, I see black triangles at the center, with no apparent similarity with the original mesh. I mean that it is not only the material that are wrong, I am not sure the triangles have anything to do with the original mesh.

The same file is properly displayed by the executable 'osgviewer'.

I suspect concurrent access to the graphic card. I do not know whether this is a bug in Qt or in OSG. I hope I'm posting this in the good section.
Does someone has an idea on where to look for a solution ?
I couldn't find similar issues on the web...

Qt version: 4.8
OSG version: 3.2.0 / 3.4.0

With this GPU, it works:
Code:

$ sudo lspci -vnn | grep VGA -A 20
0f:00.0 VGA compatible controller [0300]: NVIDIA Corporation G96GL [Quadro FX 580] [10de:0659] (rev a1) (prog-if 00 [VGA controller])
Subsystem: NVIDIA Corporation Device [10de:063a]
Physical Slot: 2
Flags: bus master, fast devsel, latency 0, IRQ 95
Memory at fa000000 (32-bit, non-prefetchable) [size=16M]
Memory at e0000000 (64-bit, prefetchable) [size=256M]
Memory at f8000000 (64-bit, non-prefetchable) [size=32M]
I/O ports at d000 [size=128]
Expansion ROM at <unassigned> [disabled]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Capabilities: [b4] Vendor Specific Information: Len=14 <?>
Capabilities: [100] Virtual Channel
Capabilities: [128] Power Budgeting <?>
Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
Kernel driver in use: nvidia


With this GPU, it does not work:
Code:

$ sudo lspci -vnn | grep VGA -A 20
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107GL [Quadro K420] [10de:0ff3] (rev a1) (prog-if 00 [VGA controller])
Subsystem: NVIDIA Corporation Device [10de:1106]
Flags: bus master, fast devsel, latency 0, IRQ 47
Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
Memory at e0000000 (64-bit, prefetchable) [size=256M]
Memory at f0000000 (64-bit, prefetchable) [size=32M]
I/O ports at e000 [size=128]
[virtual] Expansion ROM at f7000000 [disabled] [size=512K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Capabilities: [b4] Vendor Specific Information: Len=14 <?>
Capabilities: [100] Virtual Channel
Capabilities: [128] Power Budgeting <?>
Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
Kernel driver in use: nvidia


Thank you!

Cheers,
Joseph[/code]
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 10863

PostPosted: Mon Mar 21, 2016 9:21 am    Post subject:
Conflict between OSG and Qt
Reply with quote

Hi Jospeh,


If osgviewer is working OK with the model then it would point to the problem being in located in osgQt, the example code or Qt.  From your post I can't narrow it down any further than this.  Would it be possible to post the model?  Does the problem happen with the OSG-3.4 version of the osgviewerQt.cpp example?


On thing you could try is to force the viewer to run SingleThreaded to see if this has any influence.  Also how does it run on other models?


A screenshot would also be useful.



Robert.


On 21 March 2016 at 09:08, Joseph Mirabel < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Hi,

On some computers only, when compiling and running the enclosed file, COLLADA files are not rendered properly. Instead of the proper mesh, I see black triangles at the center, with no apparent similarity with the original mesh. I mean that it is not only the material that are wrong, I am not sure the triangles have anything to do with the original mesh.

The same file is properly displayed by the executable 'osgviewer'.

I suspect concurrent access to the graphic card. I do not know whether this is a bug in Qt or in OSG. I hope I'm posting this in the good section.
Does someone has an idea on where to look for a solution ?
I couldn't find similar issues on the web...

Qt version: 4.8
OSG version: 3.2.0 / 3.4.0

With this GPU, it works:

Code:

$ sudo lspci -vnn | grep VGA -A 20
0f:00.0 VGA compatible controller [0300]: NVIDIA Corporation G96GL [Quadro FX 580] [10de:0659] (rev a1) (prog-if 00 [VGA controller])
Subsystem: NVIDIA Corporation Device [10de:063a]
Physical Slot: 2
Flags: bus master, fast devsel, latency 0, IRQ 95
Memory at fa000000 (32-bit, non-prefetchable) [size=16M]
Memory at e0000000 (64-bit, prefetchable) [size=256M]
Memory at f8000000 (64-bit, non-prefetchable) [size=32M]
I/O ports at d000 [size=128]
Expansion ROM at <unassigned> [disabled]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Capabilities: [b4] Vendor Specific Information: Len=14 <?>
Capabilities: [100] Virtual Channel
Capabilities: [128] Power Budgeting <?>
Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
Kernel driver in use: nvidia




With this GPU, it does not work:

Code:

$ sudo lspci -vnn | grep VGA -A 20
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107GL [Quadro K420] [10de:0ff3] (rev a1) (prog-if 00 [VGA controller])
Subsystem: NVIDIA Corporation Device [10de:1106]
Flags: bus master, fast devsel, latency 0, IRQ 47
Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
Memory at e0000000 (64-bit, prefetchable) [size=256M]
Memory at f0000000 (64-bit, prefetchable) [size=32M]
I/O ports at e000 [size=128]
[virtual] Expansion ROM at f7000000 [disabled] [size=512K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Capabilities: [b4] Vendor Specific Information: Len=14 <?>
Capabilities: [100] Virtual Channel
Capabilities: [128] Power Budgeting <?>
Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
Kernel driver in use: nvidia




Thank you!

Cheers,
Joseph[/code]

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




_______________________________________________
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
jmirabel
Newbie


Joined: 04 Jan 2016
Posts: 4

PostPosted: Mon Mar 21, 2016 3:34 pm    Post subject:
Reply with quote

Thanks for your quick reply.

The same behavior happens on many different models. For instance, base.dae in https://github.com/PR2/pr2_common/tree/indigo-devel/pr2_description/meshes/base_v0.

The STL models, iin the previous link, are rendered fine. I haven't tried any other formats.

I got slightly confused. I have two different integration of OSG in Qt:
- The first one is the OSG examples. With DAE models, it renders an empty scene (I tried pressing the space bar),
- The second version is a bit messy as it is not really a unit test. It is located here: https://github.com/jmirabel/hpp-gui/blob/devel/include/hpp/gui/osgwidget.hh and https://github.com/jmirabel/hpp-gui/blob/devel/src/osgwidget.cc. With DAE models, it renders black triangles as in the screenshot.

The problem happens on version 3.2 and 3.4.

On another computer which I do not have at hand now, I was able to display DAE by first converting them to the OSG format using osgconv and then viewing the converted file. But my current computer, I get the same result as in the screenshot.

Thank you!

Cheers,
Joseph[/url]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins] 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 Conflict between current osg trunk 3.... crubel@compro.net Build system [build] 4 Tue Apr 28, 2015 3:28 pm View latest post
No new posts File comment blocks conflict with OSG... David Fries General 2 Wed May 22, 2013 2:33 pm View latest post
No new posts osgEphemeris conflict with overlayNode? wybbzcwj General 0 Tue Apr 03, 2012 8:39 am View latest post
No new posts include conflict while compiling osg ... lq37 General 4 Sat May 07, 2011 3:55 pm View latest post
No new posts osgDB ifstream / ofstream conflict Vincent.B General 14 Mon Apr 04, 2011 3:37 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