同一份obj模型数据
10.0的组件导入obj到数据源后,桌面三维场景中显示没有贴图,
桌面端导入后,显示正常,如下图,图中上面的模型是桌面端导入的,下面的模型是组件代码导入的
请问大概什么原因?
代码如下,是否还有其他设置
ImportSettingModelOSG pImportSettingModelOSG = new ImportSettingModelOSG(strPath, pDatasourceConnectionInfo);
pImportSettingModelOSG.SourceFileCharset = Charset.ANSI;
pImportSettingModelOSG.Decompose = false;
pImportSettingModelOSG.ImportingAsCAD = false;
pImportSettingModelOSG.ObjRotate = SuperMap.Data.Conversion.ObjRotateOption.RotateYZ;
pImportSettingModelOSG.Position = new Point3D(121, 31, -6.5);
string prj = Path.Combine(Application.StartupPath, "Data\\GCS_WGS 1984.xml");
if (File.Exists(prj))
{
PrjCoordSys pPrjCoordSys = new PrjCoordSys();
pPrjCoordSys.FromFile(prj, PrjFileType.SuperMap);
pImportSettingModelOSG.TargetPrjCoordSys = pPrjCoordSys;
}
DataImport pDataImport = new DataImport();
pDataImport.Stepped += new ImportSteppedEventHandler(pDataImport_Stepped);
pDataImport.ImportSettings.Add(pImportSettingModelOSG);
ImportResult pImportResult = pDataImport.Run();