資源簡介
First of all, please download JMonkey Engine.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
代碼片段和文件信息
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????21620??2010-03-04?16:05??dist\jME_3DS_Loader.jar
?????文件???17295143??2010-03-04?16:05??dist\lib\jME_2.0.jar
?????文件?????563202??2010-03-04?16:05??dist\lib\lwjgl.jar
?????文件???????1453??2010-03-04?16:05??dist\README.TXT
?????目錄??????????0??2010-03-04?16:05??dist\lib
?????目錄??????????0??2010-03-04?16:05??dist
-----------?---------??----------?-----??----
?????????????17881418????????????????????6
-----------?---------??----------?-----??----
?????文件??????21620??2010-03-04?16:05??dist\jME_3DS_Loader.jar
?????文件???17295143??2010-03-04?16:05??dist\lib\jME_2.0.jar
?????文件?????563202??2010-03-04?16:05??dist\lib\lwjgl.jar
?????文件???????1453??2010-03-04?16:05??dist\README.TXT
?????目錄??????????0??2010-03-04?16:05??dist\lib
?????目錄??????????0??2010-03-04?16:05??dist
-----------?---------??----------?-----??----
?????????????17881418????????????????????6
評論
共有 條評論