WPF 3D功能 [英] WPF 3D capabilities

查看:77
本文介绍了WPF 3D功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我对任何一种3D编程都是陌生的,并且我一直坚持选择一种技术",而不是3D编程.足够直观,但也使我有可能解决问题.

I am new to any kind of 3D programming, and I am stuck at choosing a "technology" that is intuitive enough, but also makes it possible for me to solve the problem.

最近我一直在使用C#和WPF进行编程,现在我必须做一个应用程序,该应用程序允许读取和渲染.obj,.x甚至是.x3d等3D文件,并且可以简单地旋转和缩放.我当然对呈现模型的所有可能性感到困惑.我知道WPF 3D中旋转和缩放的可能性,但是我不确定它是否足以提供完全正确的渲染.

I've been doing programming with C# and WPF lately, and now I have to do an application that allows reading and rendering 3D files such as .obj, .x or perhaps even .x3d, and simple rotation and scaling. I am, of course, confused by all the possibilities for rendering the model. I am aware of the possibilities of rotation and scaling in WPF 3D, but I'm not sure if it offers enough to render them completely and correctly.

首先让我感到困惑的是尝试学习OpenGL还是DirectX,然后我听说不再支持托管的Directx,并且有XNA.然后XNA主要用于游戏的事实使我更加困惑,因为我不打算制作游戏或动画(轮换除外).

I was first confused whether to try to learn OpenGL or DirectX, then I heard that the managed directx wasn't supported any more, and that there's XNA. Then the fact that the XNA is mostly for games confused me even more, because I am not trying to make a game or animation (except for the rotation).

问题是,WPF是否能够完全渲染不同类型的3D模型?

So, the question is, is WPF capable of fully rendering different types of 3D models?

谢谢您的时间和回答:)

Thank you for your time and answers :)

推荐答案

WPF不会导入其他格式来呈现.几乎所有3D软件至少都具有XAML导出器作为插件.

如果要显示相当简单的形状,只要3D网格可以转换为XAML,就可以在WPF中进行操作.

XNA不能遗漏,因为尽管它是用于游戏编程的,但它是.NET,并且专门为3D显示而制作,为此提供了引擎.精心设计的应用程序与任何游戏菜单之​​间都没有实用上的区别.

因此,您应该考虑的是:
-可以将文件转换为XAML吗?
-形状够简单吗?

WPF doesn't import other formats to render. Almost all 3D softwares have XAML exporters, at least, as plugins.

If what you want is to display fairly simple shapes you can do it in WPF as long the 3D mesh is converter to XAML.

XNA is not an option to leave out because, although it's meant for game programming, it is .NET and was made specifically for 3D displaying providing an engine for that matter. And there is no pratical difference between a well designed application and any game menu.

So, what you should consider is:
- Can you convert the files to XAML?
- Are the shapes simple enough?


这篇关于WPF 3D功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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