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.
本文档详细介绍了如何将3D游戏引擎JMonkeyEngine与Matlab进行集成的方法。首先,需要下载JMonkeyEngine并将所有库文件复制到指定文件夹。接着,将必要的DLL文件复制到Matlab的Windows路径中。最后,通过特定的Matlab语法调用JMonkeyEngine的jar文件,实现3D模型的加载与展示。

2814

被折叠的 条评论
为什么被折叠?



