导入任何3D文件在运行时WPF [英] Import any 3d file at runtime in WPF

查看:425
本文介绍了导入任何3D文件在运行时WPF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我问了一个similair问题earilier,但它不是足够的通用性,所以这里的另一种尝试。

I asked a similair question earilier, but it was not generic enough, so here's another attempt.

目前,我有一大堆,我想在我的WPF应用程序来显示3D .OBJ和.jpg文件。不过,我想在运行时要做到这一点,所以将它们转换使用Blend是不是一种选择。

I currently have a whole bunch of 3d .obj and .jpg files which I want to display in my WPF application. However, I want to do this at runtime, so converting them using Blend is not an option.

我不介意转换为其他类型的3D文件,只要这可以在运行时完成(无论是programmaticly或使用命令行工具)。

I don't mind having to convert to other types of 3d files, as long as this can be done at runtime (either programmaticly or by using a command line tool).

所以,我想我的问题是:有没有办法在WPF在运行时导入3D文件

So I guess my question is: Is there any way to import a 3d file in WPF at runtime?

谢谢!

推荐答案

我不认为有一个内置的方式。你最有可能需要编写进口商为自己的特定需求。你可以在这里找到一些文件格式信息> http://en.wikipedia.org/wiki/Wavefront_。 obj_file

I don't think there's a built in way. You'll most likely have to write an importer for your own specific needs. You can find some file format information here> http://en.wikipedia.org/wiki/Wavefront_.obj_file

这篇关于导入任何3D文件在运行时WPF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆