从按钮导入3d obj模型并控制旋转,平移,缩放.... [英] import 3d obj model and control rotate,traslate,scale.... from buttons

查看:64
本文介绍了从按钮导入3d obj模型并控制旋转,平移,缩放....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是WPF的新手

我在互联网上搜索了一些示例,这些示例演示了如何使用常规移动3d模型

i searched all over the internet for some example that demonstrate how to move some 3d Model with the regular

事件.

我会解释我的意思:

我正在使用Visual Studio 2012并打开了新的wpf项目,我添加了一些3d模型(.obj,.mtl和.png)

i'm using Visual studio 2012 and opened new wpf project, i added some 3d Model (.obj,.mtl , .png)

使用BLEND,现在我可以在某些3dViewPort中看到3d模型.

with the BLEND and now i can see the 3d Model in some 3dViewPort.

在Blend中,我还可以旋转并执行所有常规操作,但:

in the Blend i can also rotate and do all the regular things but:

在Visual Studio中添加一些按钮时,您可以为其命名,然后在代码中编写

when you add some button to visual studio , u can give it a name and then in the code you will write

button.color = ...

button.color=...

我想对3d模型做同样的事情

i want to do the same for the 3d model

如果我按一些按钮,则3d模型将旋转

if i push some button the 3d model will rotate

我的3dViewPot有一个名字:

my 3dViewPot has a name:

自行车

但是在代码中我无法做到这一点:bicycle.rotate = ..

but in the code i cant do this: bicycle.rotate=..

有人知道如何从代码中引用3d模型的旋转,缩放和所有其他信息吗?

does any one know how to refer 3d model rotate,scale and all the othes from the code?

如果有人举个例子,我会很高兴的!

if any one have example for that i will be more than glad!

谢谢

授予

推荐答案

http://social.msdn.microsoft.com/Forums/zh-CN/da387a0b-412a-41c1-8246 -291a71bce28a/wpf-3d-rotate-individual-models?forum = wpf
http://social.msdn.microsoft.com/Forums/en-US/da387a0b-412a-41c1-8246-291a71bce28a/wpf-3d-rotate-individual-models?forum=wpf


这篇关于从按钮导入3d obj模型并控制旋转,平移,缩放....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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