Re: [osg-users] osg::Node can not be displayed front of the Earth on the screen

2018-03-02 Thread Trajce Nikolov NICK
if you need to draw anything on the center of the screen in front of something else, then your problem is to create an ortho camera and have your geometry there - something like HUD. The osghud example shows how to do this. Just for a test, you can use the createHUD() function from that sample to c

Re: [osg-users] Read frame buffer back into main memory

2018-03-02 Thread Robert Osfield
Hi Antoine, You can just do your glReadPixels(..) or osg::Image::readPixels(..) in your own Camera::DrawCallback that you attach as a post draw callback to your camera. Robert. On 2 March 2018 at 16:12, Antoine Rennuit wrote: > Hi all, > > Hum, it seems my case is a bit more complex than expect

Re: [osg-users] Can see parts of the back side of a model

2018-03-02 Thread Robert Osfield
Hi Sebastian, On 2 March 2018 at 15:44, Sebastian Schmidt wrote: > Hi, i have a similar problem and dont want to create a new thread. > > Unfortunately i couldnt fix the problem with these solutions here. It's a different problem then, so worthy of it's own thread. It'll be a different problem

Re: [osg-users] osg::Geode is not seen when added as child on osgEarth

2018-03-02 Thread Robert Osfield
On 2 March 2018 at 12:43, Ali Ozdin wrote: > Any idea? This is an osgEarth question so only users/developers of osgEarth will be able to provide an answer. Many of the osgEarh community are here in the main osg-users community as well but perhaps less active on osgEarth topics than they would be

Re: [osg-users] Read frame buffer back into main memory

2018-03-02 Thread Antoine Rennuit
Hi all, Hum, it seems my case is a bit more complex than expected. The camera I want to read the buffer from is a custom created camera: Code: // Curvatures camera. m_curvaturesCamera = new osg::Camera(); m_curvaturesCamera->setClearMask(GL_DEPTH_BUFFER_BIT); // The camera only cle

Re: [osg-users] Can see parts of the back side of a model

2018-03-02 Thread Sebastian Schmidt
Hi, i have a similar problem and dont want to create a new thread. Unfortunately i couldnt fix the problem with these solutions here. What you can see is the back of a plane with enabled front (transparency) or back (black/no lightning) face culling.[/img] OSG Version:

Re: [osg-users] osg::Node can not be displayed front of the Earth on the screen

2018-03-02 Thread Ali Ozdin
I could not relate the example with my question. I am using osgEarth. Can you be more expressive what causes this? Thanks, Trajce Nikolov NICK wrote: > Hi Ali, > > have a look at the osghud example from the osg repo > > > On Fri, Mar 2, 2018 at 1:44 PM, Ali Ozdin < ()> wrote: > > > Hi, > >

Re: [osg-users] osg::Node can not be displayed front of the Earth on the screen

2018-03-02 Thread Trajce Nikolov NICK
Hi Ali, have a look at the osghud example from the osg repo On Fri, Mar 2, 2018 at 1:44 PM, Ali Ozdin wrote: > Hi, > > I drew an osg Node and I want to put it on the center of the screen like > any labelControl. How can I do that? I put a sample code below. > > If I change the line from > > Cod

[osg-users] osg::Node can not be displayed front of the Earth on the screen

2018-03-02 Thread Ali Ozdin
Hi, I drew an osg Node and I want to put it on the center of the screen like any labelControl. How can I do that? I put a sample code below. If I change the line from Code: viewer.setSceneData( mainGroup ); to Code: viewer.setSceneData( nn.get() ); and remove these two lines Code: mani

Re: [osg-users] osg::Geode is not seen when added as child on osgEarth

2018-03-02 Thread Ali Ozdin
Any idea? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=72997#72997 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph

Re: [osg-users] set cullface mode in osg file

2018-03-02 Thread Voerman, L.
Hi Sebastian, Geode {... Geometry { ... StateSet { ... GL_CULL_FACE ON Material { } CullFace {

[osg-users] set cullface mode in osg file

2018-03-02 Thread Sebastian Schmidt
Hi, What is the correct syntax to enable front or backface culling in an osg file? For example: Geode {... Geometry { ... StateSet { ... GL_CULL_FACE ON ...