Re: [osg-users] osgQt + OSG 3.6.2 Status

2018-07-26 Thread Stuart Mentzer
Hi Andrew, I had no luck despite trying many variations. I had to put this work aside for a while with the plan to circle back and check for osgQt updates now and then. But if someone adds some ideas here I'll try them. To be honest I'm experimenting with Qt3D (feels a little dirty ;-). I

Re: [osg-users] osgQt + OSG 3.6.2 Status

2018-07-26 Thread Andrew Cunningham
Hi Stuart, If you resolve this please let us know. As a data point , I had a lot of trouble with OSG 3.4.1 and QT 5.7 and the "black" window problem. I only resolved it with some experimentation and I am still not sure why it worked. Andrew -- Read this topic online here:

Re: [osg-users] [Crash issue] How to add drawable (geometry) property.

2018-07-26 Thread Jinh Tang
Hi Robert, thanks a lot! I tried single thread, but it can meet project requirement, as we may have 500+ meshes need to update. each mesh has 12000+ points. the main GUI thread will be blocked for 10+ seconds besides, I already set the viewer to use SingleThreaded. paste my code of

Re: [osg-users] [Crash issue] How to add drawable (geometry) property.

2018-07-26 Thread Robert Osfield
Hi Jinh, First thing I would try is to run your application single threaded. If this fixes the crash then it would indicate a threading issue with how you are going about adding/remove elements of the scene graph. You don't describe any of details of what threads are doing what so I can't

Re: [osg-users] osgSim::MultiSwitch Serialization

2018-07-26 Thread Robert Osfield
HI David, I'm don't have time to look at the code right now so will just provide some general hints. The serailizers have SO version built into them so you can add or remove components of the serializer based on the SO version of the OSG. There are number of places in the OSG serailizers that

Re: [osg-users] Volume rendering issues...

2018-07-26 Thread Robert Osfield
Hi Tom. My best guess would be that the ITK image data is being deleted prior to the graphics thread gets a chance copy the data into OpenGL. Try either copying the data into the osg::Image and let osg::Image then manage the lifetime of it's own data, or prevent the ITK image data from getting

[osg-users] [Crash issue] How to add drawable (geometry) property.

2018-07-26 Thread Jinh Tang
Hi, I am doing them real-time rendering application development with Qt + OSG. I created several threads to create new Geometry and in GUI - main threads, try to remove the old one and add new ones. 1, already set node and geometry to user dynamic.

[osg-users] Volume rendering issues...

2018-07-26 Thread Tom Williamson
Hi gang, Thanks for all the work on OSG, is rad. I'm currently having a problem with the rendering of a volume, here's what I'm trying to do: - I'm using ITK to read a NIFTI file, (segmentation of a bone). The file contains zeros (background) and ones (object), format is unsigned short. - I am

[osg-users] osgSim::MultiSwitch Serialization

2018-07-26 Thread David Stephan
osgSim::MultiSwitch and flt files support named switches, but the names aren't saved. It seems like an easy fix, though I'm not sure how to mess with the serializer in a backwards compatible way. relevant files: src/osgSim/MultiSwitch.cpp src/osgWrappers/serializers/osgSim/MultiSwitch.cpp

[osg-users] maximizing qt widgets with maximumsize

2018-07-26 Thread Sebastian Schmidt
After creation of a GLWidget/QWidget i call setMaximumSize() with a resolution less than fullscreen. When i click on the maximize button of the window bar my window is resized to maximum size but in frameless mode. Dont know if this is a osg related bug, but i think in qt the maximize event is

Re: [osg-users] RayIntersector with KdTree causes a crash

2018-07-26 Thread Robert Osfield
Hi Ale, The KdTree was refactored in 3.6.x to add support for points and lines and PolytopeIntersector. While there has been lots of internal changes in it, it of course shouldn't crash. At this point in time I don't have any idea where the issue stems from. Could you create a small example

[osg-users] RayIntersector with KdTree causes a crash

2018-07-26 Thread Ale Maro
Hi, we have a problem with OSG 3.6.2 and Visual Studio 2017 We have a pick functionality in our software that uses RayIntersector. We enabled KdTrees for this use. When we apply the intersector to an object with a negative scale in the MatrixTransform parent node (e.g. scale = (-1, 1, 1)), it

[osg-users] RayIntersector with KdTree causes a crash

2018-07-26 Thread Ale Maro
Hi, we have a problem with OSG 3.6.2 and Visual Studio 2017 We have a pick functionality in our software that uses RayIntersector. We enabled KdTrees for this use. When we apply the intersector to an object with a negative scale in the MatrixTransform parent node (e.g. scale = (-1, 1, 1)), it