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.
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.
相关文章推荐
- C#查询数据库时问题: Min(1) must be less than or equal to max(-1) in Range object
- windows下python如何安装模块或包? How to install package or module in windows OS when using PYTHON?
- how to reveal in finder or show in explorer with qt
- How to Enable SQL_TRACE for Another Session or in MTS Using Oradebug(文档 ID 1058210.6)
- How to use insert or retrieve data by using Core Data in iOS
- How to Take Ownership of a File/Folder Using Command-Line in Windows 7 or newer version System
- How to set mouse speed in X using xset or XF86Config
- How To Submit Form Data by Using XMLHTTP or ServerXMLHTTP Object
- [连载]Tutorial series: learning how to write a 3D soft engine from scratch in C#, TypeScript or JavaScript[英]
- How to install LAMP (Apache, PHP and MySQL in Linux) using Yum
- How to add, modify, or delete registry subkeys and values by using a registration entries (.reg) file
- 如何将一篇文章导入Endnote并将引用插入Word(How to Cite a Paper in Word Using Endnote)
- How to inherit an Object in JavaScript
- (极力推荐)BW:How to load and generate a custom hierarchy in SAP Business Warehouse (SAP BW) without using flat files
- How to troubleshoot 'Procedure or function has too many arguments specified' in asp.net 2.0
- How to create new view by using cleartool command in Clearcase?
- How to setup Git http authentication using LDAP in Apache
- 2011.03.03 How to rotate FONT or PICTURE in C Sharp language
- according to datakey in th grid to show the image or not
- How to get the running applications in windows task manager using powershell