Не подхватываются текстуры и материалы , когда добавляю 3D модель формата .obj на arcgis. Функция добавления :
void ViewshedGeoElement::AddModelToGraphicsOverlay(const double x, const double y, const double z, QString PathModel, QString NameModel, const double w, const double h, const double Depth)
{
qDebug()<<x<<y<<z<<PathModel<<NameModel;
Esri::ArcGISRuntime::Graphic* m_model = nullptr;
OrbitGeoElementCameraController* followingModel = new OrbitGeoElementCameraController(m_model, 200.0, this);
followingModel->setCameraPitchOffset(45.0);
m_sceneView->setCameraController(followingModel);
const Point tankPoint(x, y, z, SpatialReference(4326));
const QString dataPath = QQmlProperty::read(this, "dataPath").toString();
const float scale = 1;
// Create the Graphic Symbol
ModelSceneSymbol* sceneSymbol = new ModelSceneSymbol(QUrl(dataPath + PathModel), scale, this);
qDebug()<<"dataPath + PathModel"<<dataPath + PathModel;
sceneSymbol->setAnchorPosition(SceneSymbolAnchorPosition::Bottom);
sceneSymbol->setHeading(180.0f);
if(w!=0&&h!=0&&Depth!=0)
{
sceneSymbol->setWidth(w);
sceneSymbol->setHeight(h);
sceneSymbol->setDepth(Depth);
}
// Create the Graphic
QVariantMap attr;
attr[m_headingAttr] = 150.0;
Esri::ArcGISRuntime::TextSymbol* drapedText = new TextSymbol(QString("Ширинат: %1\nВысота: %2\nДлинна:%3").arg(w).arg(h).arg(Depth), QColor("black"), 20, HorizontalAlignment::Left, VerticalAlignment::Middle, this);
m_model = new Graphic(tankPoint, attr , sceneSymbol, this);
m_graphicsOverlay->graphics()->append(new Graphic(tankPoint, drapedText));
m_graphicsOverlay->graphics()->append(m_model);
Esri::ArcGISRuntime::OrbitGeoElementCameraController*m_modelController = new OrbitGeoElementCameraController(m_model, 200.0, this);
m_modelController->setCameraPitchOffset(45.0);
m_sceneView->setCameraController(m_modelController);
}