osgearth2.8关于RectangleNodeEditor编辑点不可见的问题

Posted coolbear

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了osgearth2.8关于RectangleNodeEditor编辑点不可见的问题相关的知识,希望对你有一定的参考价值。

static_cast<SphereDragger*>(_llDragger)->setColor(osg::Vec4(0,0,1,0));

 

Alpha写成了0

应该写成

 

static_cast<SphereDragger*>(_llDragger)->setColor(osg::Vec4(0,0,1,1));

 

osgEarth::Annotation::RectangleNodeEditor* rectEditor = new osgEarth::Annotation::RectangleNodeEditor(rect);
rectEditor->_llDragger->setColor(osg::Vec4(1, 0, 0, 1));
rectEditor->getPositionDragger()->setColor(osg::Vec4(0, 1, 0, 1));

 技术分享图片

 



以上是关于osgearth2.8关于RectangleNodeEditor编辑点不可见的问题的主要内容,如果未能解决你的问题,请参考以下文章