问题描述
我必须做一个带有动态旋转的 3D 箭头的 wp7 应用程序.该应用程序将有很多操作系统菜单,因此最好的方法是使用 Silverlight.如何在 Silverlight 中拥有 3D 对象?我有像 Swift 3D 这样的工具来做模型.它们生成 .xaml 代码,但是当我将该代码放入表达式混合器时,我遇到了错误.
I have to do a wp7 app with a 3D arrow rotating dynamically. The app will have alot os menus, so the best way is use Silverlight. How can I have a 3D object in silverlight? I have tools like Swift 3D to do the model. They generate .xaml code, but when I put that code in expression blender I have errors.
有不同的方法吗?我有点迷茫,因为我是微软开发平台的新手.
There are a different approach? I'm a little lost, because I'm new to Microsoft development platform.
推荐答案
您可以制作平面 2D 对象并使用透视变换将其转换为 3D.你会得到它被称为 2.5D 投影.这两个帖子应该可以帮助你:http://netindonesia.net/blogs/umifadilah/archive/2010/05/12/silverlight-3d-perspective-transform-on-windows-phone-7.aspx
You can make a flat 2D object and use a perspective transform, to transform it in 3D. You will get was it called a 2.5D projection.These two posts should help you: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 文章,可能会对您有所帮助:使用 Balder 的 Silverlight 和 Windows Phone 7 魔方
If you need full 3D models, I'd recommend to try the Silverlight 3D engine Balder from CodePlex: http://balder.codeplex.comThe main developer has recently written a good Coding4Fun article that might help you:Rubik’s Cube for Silverlight and Windows Phone 7 using Balder
这篇关于在 Windows Phone 7 中使用 Silverlight 的 3D 模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!