Hi Alessandro,
The bm_102.osg isn't a valid .osg file, you have one too many brackets after the Material. If you remove this extra bracket you can see the object properly. I can only presume you've hand editing the files at somepoint and this has introduced the error. I don't know if this error has anything to do with the wider problems you are seeing. Robert. On 14 August 2015 at 09:45, Alessandro Terenzi <[email protected]> wrote: > Thank you Robert. > I will try to setup an example on a desktop computer. > > Just to add more to the topic, I tried to call > osg::Camera::getOrCreateStateSet()->setGlobalDefaults(); but nothing > changed. And here's how I setup my camera (that is not the one coming from > the viewer): > > > Code: > foreground_camera = new osg::Camera; > foreground_camera->getOrCreateStateSet()->setGlobalDefaults(); > foreground_camera->setViewport(new osg::Viewport(0, 0, captureWidth, > captureHeight)); > foreground_camera->setReferenceFrame(osg::Transform::ABSOLUTE_RF); > foreground_camera->setClearMask( GL_DEPTH_BUFFER_BIT ); > foreground_camera->setRenderOrder(osg::Camera::POST_RENDER, 2); > > foreground_camera->setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR); > foreground_camera->setCullingMode(osg::CullSettings::NO_CULLING); > > > > This camera is supposed to render objects on top of a video camera feed. > > I am attaching also 2 simple boxes (osgt) one is correctly hidden the > other is not. > > Cheers, > Alessandro > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=64766#64766 > > > > > Attachments: > http://forum.openscenegraph.org//files/bnm_150.osg > http://forum.openscenegraph.org//files/bm_102.osg > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

