has anyone seen this behaviour when creating a coin3d object (here a line and a cone) and showing it in the scene grapgh, that the object is turning black when moving the camera?
It seems that it may has something to do that the object is somehow behind the cube?!
my sample code:
Code: Select all
PartGui::ViewProviderPartExt* vp = dynamic_cast<PartGui::ViewProviderPartExt*>(Gui::Application::Instance->getViewProvider(object));
if (!vp) return;
auto currentRoot = vp->getRoot();
auto pRoot = new SoSeparator();
.....
pRoot->addChild(static_cast<SoCone*>(aDir));
currentRoot->addChild(pRoot);