evn is win10&osg3.6.4 <div><br><div>   Why does osg::AutoTransform disappears after using the set setAutoRotateMode           method to be  true .  <div>    //</div><div>    std::string timesFont("fonts/arial.ttf");<br>    osgText::Text* text = new osgText::Text;<br>    text->setCharacterSize(characterSize);<br>    text->setText(message);<br>    text->setFont(timesFont);<br>    text->setAlignment(osgText::Text::CENTER_CENTER);<br><br>    osg::Geode* geode = new osg::Geode;<br>    geode->addDrawable(text);<br>    geode->getOrCreateStateSet()->setMode(GL_LIGHTING, osg::StateAttribute::OFF);<br><br>    osg::AutoTransform* at = new osg::AutoTransform;<br>    at->addChild(geode);<br><br>    at->setAutoRotateMode(osg::AutoTransform::ROTATE_TO_SCREEN);<br>    at->setAutoScaleToScreen(true);<br>    at->setMinimumScale(minScale);<br>    at->setMaximumScale(maxScale);<br>    at->setPosition(position);<br><div><br></div><div><img alt="QQ图片20210308125825.jpg" data-iml="698134.3100000004" width="401px" height="534px" src="cid:686f527a-a56e-4d4b-9efe-0bfcbafd667b"> <br></div></div></div></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/1ac85395-3e28-43b7-97c2-ac400d782a40n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/1ac85395-3e28-43b7-97c2-ac400d782a40n%40googlegroups.com</a>.<br />