我遇到了一个无法将3D .obj
文件加载到我的测试应用中的问题。我得到以下例外:
System.NotSupportedException: 'No imaging component suitable to complete this operation was found.'
COMException: The component cannot be found. (Exception from HRESULT: 0x88982F50)
所使用的代码是:
Model3DGroup combinedModel = new ObjReader().Read(@"C:UsersUserDocumentsobjtestObject.obj");
奇怪的是,以下适用于.stl
文件:
Model3DGroup combinedModel = new StLReader().Read(@"C:UsersUserDocumentsobjtestObject.stl");
我找不到任何已知的问题,是否有某种先决条件可能会丢失我的系统?我需要在需要完成的应用程序本身需要进行某种设置?
对我来说,此问题似乎是由于.OBJ文件随附的相关.MTL文件。
将材料文件移至其他目录允许对象文件正确加载。下一步将是弄清楚材料文件为什么不起作用。
MTL文件引用的纹理是什么格式?DDS文件需要在WPF中显示一个处理程序。System.Drawing.Design为您服务。