使用Silverlight的Windows Phone 7中的3D模型

时间:2010-11-24 11:21:12

标签: silverlight 3d windows-phone-7

我必须用动态旋转的3D箭头做一个wp7应用程序。该应用程序将有很多操作系统菜单,所以最好的方法是使用Silverlight。如何在silverlight中拥有3D对象?我有像Swift 3D这样的工具来做模型。它们生成.xaml代码,但是当我将该代码放入表达式混合器时,我有错误。

有不同的方法吗?我有点失落,因为我是微软开发平台的新手。

2 个答案:

答案 0 :(得分:7)

您可以制作平面2D对象并使用透视变换,以3D方式对其进行变换。你会得到它被称为2.5D投影。 这两个帖子可以帮助你: http://netindonesia.net/blogs/umifadilah/archive/2010/05/12/silverlight-3d-perspective-transform-on-windows-phone-7.aspx

http://pendsevikram.blogspot.com/2010/07/silverlight-on-mobile-3d-on-your.html

如果您需要完整的3D模型,我建议您尝试使用CodePlex的Silverlight 3D引擎Balder:http://balder.codeplex.com 主要开发人员最近写了一篇很好的Coding4Fun文章,可能对你有所帮助: Rubik’s Cube for Silverlight and Windows Phone 7 using Balder

答案 1 :(得分:-1)

添加3d模型的最佳方法是3dsmax的max2xaml插件:http://max2xaml.codeplex.com/

你可以使用工具Viewer3ds: http://www.wpf-graphics.com/Viewer3ds.aspx

文章:  http://www.codeproject.com/KB/WPF/3dsToXaml.aspx