简体   繁体   English

如何在WPF应用程序中动态导入3D模型

[英]How to import 3D models dynamically in a WPF Application

I have been searching this for quite sometime but could not find an appropriate method. 我一直在寻找这个,但找不到合适的方法。 How to import 3D models in a WPF application at runtime when user selects a model. 如何在用户选择模型时在运行时在WPF应用程序中导入3D模型。 It can be built in any one of the popular 3D modelling software, 3DS max, Maya, Blender etc, not all. 它可以在任何一个流行的3D建模软件,3DS max,Maya,Blender等中构建,而不是全部。 Any one of the formats .3DS, .MAX, .FBX, .obj etc is required to be imported. 需要导入任何一种格式.3DS,.MAX,.FBX,.obj等。

If there are free libraries available for this, please mention them, and if i have to write the code myself, please guide how and where to start. 如果有可用的免费库,请提及它们,如果我必须自己编写代码,请指导如何以及从何处开始。

You may try to convert 3D objects in to XAML and use then in WPF. 您可以尝试将3D对象转换为XAML,然后在WPF中使用。 Most of the 3D modelling softwares has 3D Model to XAML plugins. 大多数3D建模软件都有3D Model to XAML插件。

Try this as well.. (Commercial but good tool) http://www.erain.com/products/zam3d/DefaultPDC.asp 试试这个......(商业但很好的工具) http://www.erain.com/products/zam3d/DefaultPDC.asp

and i also highly recommend helixtoolkit 我也强烈推荐helixtoolkit

Good Luck. 祝好运。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM