Re: [osg-users] New scheme for configuring the OSG for building against different versions of the OpenGL/OpenGL ES

2014-06-02 Thread Robert Osfield
Thanks Roni, fix merged and submitted to svn/trunk. Cheers, Robert. On 31 May 2014 23:10, Roni Zanolli wrote: > Hi Robert/Stephan, > > I was able to start a test in the iPhone build using GLES2 and I found > a error in the CMakeList.txt. ios 7.1 Xcode 5.1.1. Below the fix: > > //IF (OSG_GLES1_AV

[osg-users] Changing vertex color array causes crash due to null pointer in TemplateAttributeDispatch

2014-06-02 Thread Björn Blissing
Hi, We recently got a strange crash behavior in our software. We were fixing a piece of code that caused GL_ERRORS on some platforms. When we had fixed this, a new bug surfaced in a completely different part of the code base. It was code that had worked for years, but suddenly it started to mak

Re: [osg-users] [BUG?] OSG traits without window decoration

2014-06-02 Thread Marco Kliko
Trajce Nikolov NICK wrote: > Hi > > > > > So when the window is not visible, I would prefer to pause the rendering of > > the model instead of destroying it. > > > > > You can control the rendering loop by calling viewer->frame() whenever you > need. In some sort of similar application in

Re: [osg-users] Changing vertex color array causes crash due to null pointer in TemplateAttributeDispatch

2014-06-02 Thread Robert Osfield
Hi Bjorn, You need to set the DataVariance to DYNAMIC on the Drawable that you are modifying, setting the DataVariance on the Geode won't affect the management of threads as it's only the Drawable and StateSet leaves that make it into the rendering backend. Robert. On 2 June 2014 10:26, Björn Bl

Re: [osg-users] Changing vertex color array causes crash due to null pointer in TemplateAttributeDispatch

2014-06-02 Thread Björn Blissing
Hi Robert, Thank you! That should have been obvious. Sometime you just need a second set of eyes to look at your code. Regards Björn -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=59621#59621 ___ o

Re: [osg-users] [BUG?] OSG traits without window decoration

2014-06-02 Thread Trajce Nikolov NICK
Hi Marco, > But how do I get a HWND of the viewer? if (_viewer.valid()) { osgViewer::CompositeViewer::Windows wins; _viewer->getWindows(wins); #ifdef WIN32 if (wins.size()) { osgViewer::GraphicsHandleWin32 *hdl = dynamic_cast(wins.at(0)); if(hdl) { MSG* message = (MSG*)msg; WNDPROC fWndProc = (WN

Re: [osg-users] [osgViewer::CompositeViewer] Transparency between views

2014-06-02 Thread Stephane Mas
OK, I found the solution : Code: foregroundView->getCamera()->setClearMask(GL_DEPTH_BUFFER_BIT); The foregroundView is now indeed transparent ! The next problem is how to handle mouse events throught it to be able to control the backgroundScene throught the transparent parts of the

Re: [osg-users] App android with OSG

2014-06-02 Thread Jan Ciger
Hello Mario, On Mon, May 26, 2014 at 5:44 PM, Mario Blangiforti < marioblangifo...@hotmail.it> wrote: > Hi, > i'm new user in the forum. > I have to realize an android app (i use Eclipse like IDE) in which i'll > use OSG to load a .tiff file. > First of all i didn't understand how to install the

[osg-users] QMenu stealing events

2014-06-02 Thread Arnaud Cordier
Hey guys, I have embedded my OpenSceneGraph GL context in a Qt window. I wanted to use a QMenu in order to perform operations on the selected geode. The intersection works, and the slot is executed when the menu->exec() returns. But it seems that the trackball manipulator doesn't get the releas

Re: [osg-users] correct version (or disabling) of ffmpeg when compiling OSG

2014-06-02 Thread Patrick Keenan
Hi, For anyone having this problem on Debian (I have kernel 3.14.4-rt5 with Nvidia btw) testing osg-3.3.2 from Git (June 2 2014) the only way I could find to disable ffmpeg (using cmake build method) was by commenting out some lines in Code: osg_3_3_2/src/osgPlugins/CMakeLists.txt they bec