<div dir="ltr"><div></div><div>Fast answer:<br></div><div><br></div><div>Interaction:<br></div><div>1) Setup intersector mask and node masks correctly (not to intersect with buildings as instance)<br></div><div><br></div><div>Visualization:<br></div><div>2) Use separate post-render osg::Camera (don't set clear color bit in clearMask) for draggers or use renderbins + some kind of depth dest disabling.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">ср, 24 мар. 2021 г. в 19:07, <a href="mailto:mirr...@gmail.com">mirr...@gmail.com</a> <<a href="mailto:mirro187@gmail.com">mirro187@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">win10&osg3.6.4<div>///code</div><div><div>SceneCore::TranslateAxisDragger* dTranslateAxisDragger = new SceneCore::TranslateAxisDragger();</div><div><span style="white-space:pre-wrap"> </span>dTranslateAxisDragger->setupDefaultGeometry();</div><div><span style="white-space:pre-wrap"> </span>dTranslateAxisDragger->setAxisLineWidth(5.0f);</div><div><span style="white-space:pre-wrap"> </span>dTranslateAxisDragger->setPickCylinderRadius(0.05f);</div><div><span style="white-space:pre-wrap"> </span>dTranslateAxisDragger->setConeHeight(0.2f);</div><div><span style="white-space:pre-wrap"> </span>dTranslateAxisDragger->setHandleEvents(true);</div><div><span style="white-space:pre-wrap"> </span>dTranslateAxisDragger->setActivationModKeyMask(osgGA::GUIEventAdapter::MODKEY_CTRL);</div><div><span style="white-space:pre-wrap"> </span>_mapDragger.insert(std::pair<DraggerType,osg::ref_ptr<osgManipulator::Dragger> >(DT_TRANSLATE, dTranslateAxisDragger));</div></div><div><br></div><div><img alt="QQ图片20210324183952.png" src="cid:8888612c-79f6-45b5-b2aa-2e84e5e8dbc6" width="455px" height="387px"><br></div><div><br></div>
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com" target="_blank">osg-users+unsubscribe@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/6e0ab40b-664d-4eb1-9d45-e21341a7dbd8n%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/osg-users/6e0ab40b-664d-4eb1-9d45-e21341a7dbd8n%40googlegroups.com</a>.<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">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>
</blockquote></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com">osg-users+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/CAN06FUnceu3nMBQrUnYx3hso9uXu-%2BK7GpVGhTSJbuh6gLh1pg%40mail.gmail.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/CAN06FUnceu3nMBQrUnYx3hso9uXu-%2BK7GpVGhTSJbuh6gLh1pg%40mail.gmail.com</a>.<br />