您的位置:首页 > 移动开发 > Objective-C

How to show 3D object (.3DS or .MAX) in MATLAB using JMonkey

2010-03-02 12:57 741 查看
First of all, please download JMonkey Engine and copy all JMonkey Engine lib files to "lib" folder in "dist" folder.
Second, please copy all DLL files in JMonkey Engine "natives" folder to Matlab windows path (D:/MATLAB/R2007b/bin/win32).
Finally, please use the following syntax to run jar file in Matlab.
>> javaaddpath jME_3DS_Loader.jar
>> import MAXLoader.Show3DS
>> a = Show3DS('3DS Loader','D:/3Dmodel/test.3ds', 1); //log on

>> a = Show3DS('3DS Loader','D:/3Dmodel/test.3ds', 0); //log off
You can use a.SetPos(x, y, z, angle, pitch, raw, yaw) to set position; a.SetRotation(angle, pitch, raw, yaw) set rotation; a.SetLocalScale() set local scale(Zoom object); a.Close() to quit

dist folder download here

If you have any question, please feel free to contact me.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐