Re: [osg-users] Intergration with QT

2018-03-16 Thread Robert Osfield
On 16 March 2018 at 12:39, Ali Ozdin wrote: > I am examining the oshhud and osgQt examples for 3 days. I also know that > only depth buffer is required for osg hud example. I know. But when merge osg > hud example with osg qt example it does not work. To get rid of this, I have > cleared color

Re: [osg-users] Intergration with QT

2018-03-16 Thread Ali Ozdin
Dear Robert, I am examining the oshhud and osgQt examples for 3 days. I also know that only depth buffer is required for osg hud example. I know. But when merge osg hud example with osg qt example it does not work. To get rid of this, I have cleared color buffer there. But in http://forum.open

Re: [osg-users] Intergration with QT

2018-03-16 Thread Robert Osfield
On 16 March 2018 at 10:18, Ali Ozdin wrote: > I have set clear mask for hud camera GL_COLOR_BUFFER_BIT in addition to > GL_DEPTH_BUFFER_BIT. The problem was solved. This might be a "solution", but I think it's an indication that something else is wrong with your setup. My guess is that your HUD

Re: [osg-users] Intergration with QT

2018-03-16 Thread Ali Ozdin
I have set clear mask for hud camera GL_COLOR_BUFFER_BIT in addition to GL_DEPTH_BUFFER_BIT. The problem was solved. aozdin wrote: > Hi Robert, > > Firstly, I am grateful for your quick reply. > > I intend to have a 3D view that is overlay by the Orthographic view as a HUD. > That is right.

Re: [osg-users] Intergration with QT

2018-03-14 Thread Ali Ozdin
Hi Robert, Firstly, I am grateful for your quick reply. I intend to have a 3D view that is overlay by the Orthographic view as a HUD. That is right. So i am trying to derive hud example. Because of this, i have added the hud camera as a slave. You say that slave cameras only clear the depth buf

Re: [osg-users] Intergration with QT

2018-03-14 Thread Robert Osfield
Hi Ali, On 14 March 2018 at 07:50, Ali Ozdin wrote: > I think my problem is osg writes each frame on the previous frame without > removing the objects on the previous frame. > How can I solve this? Any idea? I'm not a Qt expert, but I have just had a look through your code example and don't see

Re: [osg-users] Intergration with QT

2018-03-14 Thread Ali Ozdin
I think my problem is osg writes each frame on the previous frame without removing the objects on the previous frame. How can I solve this? Any idea? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=73090#73090 _

[osg-users] Intergration with QT

2018-03-13 Thread Ali Ozdin
Hi, I am using QT 5.4.1 and osg 3.4.1. I am drawing a line and moving this line to the right of the screen dynamically. This code was working before integrating with Qt. With Qt, the line moves to the right of the screen; but lines in the old position is not removed from the screen. I have sh