<div dir="ltr">cool ! <div>:)</div><div><br></div><div>Nick</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 8, 2016 at 11:51 PM, Nickolai Medvedev <span dir="ltr"><<a href="mailto:raizel.dev@yandex.ru" target="_blank">raizel.dev@yandex.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The problem is solved! It is necessary to setup the camera and Geode:<br>
<br>
<br>
geode->setCullingActive( false );<br>
geode->addDrawable( mygui.get() );<br>
geode->getOrCreateStateSet()->setMode( GL_BLEND, osg::StateAttribute::ON );<br>
geode->getOrCreateStateSet()->setRenderingHint( osg::StateSet::TRANSPARENT_BIN );<br>
geode->getOrCreateStateSet()->setRenderBinDetails(1000,"RenderBin");<br>
<br>
osg::ref_ptr<osg::Camera> camera = new osg::Camera;<br>
camera->setReferenceFrame( osg::Transform::ABSOLUTE_RF );<br>
camera->setRenderOrder( osg::Camera::POST_RENDER );<br>
camera->setAllowEventFocus( false );<br>
camera->setProjectionMatrix( osg::Matrix::ortho2D(0.0, 1.0, 0.0, 1.0) );<br>
camera->addChild( geode.get() );<br>
camera->setClearMask(0);<br>
<br>
root->addChild( camera.get() );<br>
<br>
<br>
viewer.addEventHandler( new MYGUIHandler( camera.get(), mygui.get()) );<br>
<br>
Cheers,<br>
Nickolai[/code]<br>
<span class=""><br>
------------------<br>
Read this topic online here:<br>
</span><a href="http://forum.openscenegraph.org/viewtopic.php?p=67514#67514" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=67514#67514</a><br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">trajce nikolov nick<br></div>
</div>