[osg-users] How to solve the problem that the Dragger is occluded and cannot be picked up?
Konstantin
lalakostya at gmail.com
Wed Mar 24 13:34:39 PDT 2021
Fast answer:
Interaction:
1) Setup intersector mask and node masks correctly (not to intersect with
buildings as instance)
Visualization:
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.
ср, 24 мар. 2021 г. в 19:07, mirr... at gmail.com <mirro187 at gmail.com>:
> win10&osg3.6.4
> ///code
> SceneCore::TranslateAxisDragger* dTranslateAxisDragger = new
> SceneCore::TranslateAxisDragger();
> dTranslateAxisDragger->setupDefaultGeometry();
> dTranslateAxisDragger->setAxisLineWidth(5.0f);
> dTranslateAxisDragger->setPickCylinderRadius(0.05f);
> dTranslateAxisDragger->setConeHeight(0.2f);
> dTranslateAxisDragger->setHandleEvents(true);
>
> dTranslateAxisDragger->setActivationModKeyMask(osgGA::GUIEventAdapter::MODKEY_CTRL);
> _mapDragger.insert(std::pair<DraggerType,osg::ref_ptr<osgManipulator::Dragger>
> >(DT_TRANSLATE, dTranslateAxisDragger));
>
> [image: QQ图片20210324183952.png]
>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenSceneGraph Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to osg-users+unsubscribe at googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/osg-users/6e0ab40b-664d-4eb1-9d45-e21341a7dbd8n%40googlegroups.com
> <https://groups.google.com/d/msgid/osg-users/6e0ab40b-664d-4eb1-9d45-e21341a7dbd8n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
--
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/CAN06FUnceu3nMBQrUnYx3hso9uXu-%2BK7GpVGhTSJbuh6gLh1pg%40mail.gmail.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20210324/8d14da00/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: QQ??20210324183952.png
Type: image/png
Size: 354148 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20210324/8d14da00/attachment-0003.png>
More information about the osg-users
mailing list