使用产品:SuperMap iMobile 9D(2019)
数据类型: .SMWU .udb
问题详细描述:使用GeoModel加载本地SGM模型,但是不显示纹理,只有一个空壳子,加载代码如下:
GeoModel geoModel = new GeoModel();
position = new Point3D(LocationUtil.getInstance().getLongitude(), LocationUtil.getInstance().getLatitude(), 5);
geoModel.fromFile("/sdcard/SampleData/Medical/直升机/" + "ArchM73_10_09.SGM", position);
geoModel.setRotationZ(90.0);
Layer3D layer3d = mSceneControl.getScene().getLayers().get(layerName);
GeoStyle3D geostyle3d = new GeoStyle3D();
geostyle3d.setAltitudeMode(AltitudeMode.ABSOLUTE);
GeoPlacemark geoPlacemark = new GeoPlacemark("UntitledFeature3D", geoModel);
geoPlacemark.setStyle3D(geostyle3d);
feature3d = layer3d.getFeatures().add(geoPlacemark);
下面是本地模型存储的路径
最后是效果图