Re: [osg-users] Rendering OSG objects inside an existing OpenGL loop

2016-03-04 Thread dimi christop
You can render GL objects creating an osgNode and overwriting the drawing call.There is an example how to do it in the OSG CookBook of Packt Publishing.I dont remember if there is a demo in the exmaples though. On Friday, March 4, 2016 11:23 AM, Clement Begotto

Re: [osg-users] Rendering OSG objects inside an existing OpenGL loop

2016-03-04 Thread Christian Buchner
The osg Camera has a clear mask, which you can set to not clear the Depth and the Color buffer. Christian 2016-03-03 18:31 GMT+01:00 Clement Begotto : > Hi, > > I am working on a software which already has its existing OpenGL context > and loop. I have to represent

[osg-users] Rendering OSG objects inside an existing OpenGL loop

2016-03-04 Thread Clement Begotto
Hi, I am working on a software which already has its existing OpenGL context and loop. I have to represent objects with different Level of Detail and I have decided to use OSG because it manages itself LODs that have to be displayed. The problem is that some objects are drawn before and after

Re: [osg-users] OSG 3.2.1 and Qt5 Widget integration

2016-03-04 Thread Wojtek Kowalski
Hi, Thanks, but I still have another problem !!! I have 2 dockwidgets in my qmainwindow: qtosg and vlc-qt. when I play movie in the second dockwidget, the first one(QT) becomes black! :( Cheers, Wojtek -- Read this topic online here:

Re: [osg-users] OSG 3.2.1 and Qt5 Widget integration

2016-03-04 Thread Pierre-Jean Petitprez
Hi Wojtek, When using this code I get the same result as you, the StatsHandler camera doesn't display on top of the other cameras. I guess it comes from the hack that makes the main camera render last or something like that. My hack was to add the StatsHandler camera into my own scene graph so

[osg-users] Single channel image

2016-03-04 Thread Tony Vasile
I trying to render a single channel image on a Billboard but I am having no much luck. I'm expecting to see the black parts of the image to be transparent but I am just seeing black. The white parts of the image are as expected. I have tried using Code: setInternalFormat(GL_ALPHA_8) , but all