- 最后登录
- 2014-10-23
- 注册时间
- 2011-7-19
- 阅读权限
- 90
- 积分
- 81303
- 纳金币
- -1
- 精华
- 11
|
导出max模型为脚本文件的插件
绝对强大的一个扩展,可以把max中的物体输出为unity3d中所用的js脚本文件,也就是说完全用代码来实现模型的导入和重现,其实用脚本直接生成模型本就是一个很强大的功能,下面是此插件具体的介绍:
Mesh transfer script from 3ds max to Unity.(3dmax 的脚本把模型 转成 unity3d JS代码)
It converts 3dsmax mesh to unityscript (javascript), so you have full control over the mesh creation.
And whats the point of it? To avoid these:
http://answers.unity3d.com/quest ... igher-in-unity.html
http://answers.unity3d.com/quest ... es-than-3dsmax.html
Using this plugin you get less vertices on your model (compared to fbx imported model).
UPDATE#3 (16.08.2011)
Beta version released in the f***m: http://f***m.unity3d.com/threads ... p=661248#post661248
Download max script/plugin: (tested on 3DsMax 2010 – 64bit)(下载MAX脚本/插件 测试版本为2010 64位)
http://www.mediafire.com/?aeshaa3gtaqdk5j
Installation: 3ds Max Script Installation/(安装MAX 脚本)
- Copy “mMesh10.mse” to your 3ds Max scripts-folder (usually c:/program files/autodesk/3ds max 20xx/scripts/)
(将mMesh10.mse拷贝到MAX 脚本目录)
- Copy “mMesh10_Start.ms” to your 3ds Max scripts-folder (usually c:/program files/autodesk/3ds max 20xx/scripts/)(将mMesh10_Start.ms拷贝到MAX 脚本目录)
- Run the script from 3DSMax menu: Maxscript / Run script… browse for the script, select “mMesh10_Start.ms” and***n it (this adds menu item)
(选择MA脚本菜单 - 运行脚本-浏览并选择mMesh10_Start.ms-运行)
- Now go to menu: Customize / Customise user interface...
(选择自定义菜单/ 自定义用户界面)
- Go to “Toolbars” tab, Group: Main UI, Category: mMesh
- Drag the script from the cction list named “mMesh” to your toolbar (existing or create new)
(将脚本拖到工具栏中)
Usage:(用法)
- Select 1 object (try simple box 1st) (选择1物体)
- Press mMesh button, if you created one, or select “Maxscript/Run script.. select:”mMesh10_Start.ms”
(如果你创建一个,那么按下mMesh 按钮,或者 选择MAX脚本/运行脚本 选择mMesh10_Start.ms文件)
- It ask for folder to save the unityscript, put on desktop for now
(脚本保存在桌面上)
- Open the saved text file, copy paste the source to Unity javascript file
(打开保存的文本文件,拷贝粘贴到Unity脚本文件中)
- Attach the script to empty game object
(把脚本添加到空的游戏物体上)
- Run.. (pause and zoom into the object, if its not in view)---运行
Donations:
- If you find these scripts useful and especially if you use them for commercial probjects,
consider donating any amount to support future updates. Paypal donation button is there >
UPDATE#2 (old)
Test images: (teapot from Max to Unity, vertices count comparision)
ORIGINAL Teapot in Max: 2082 vertices
fbx imported model in Unity (2308 vertices)
mMesh imported model un Unity (2082 vertices, using planar UV here)
UPDATE#1 (old)
Test results:
- Currently it can “export” standard Max box with 8 vertices, while fbx export makes it 24 vertices.
- T***s knot, fbx export/import: 442 vertices, mMesh export/import: 396 vertices (saved 10% of vertices)
- Side effect: Some limitations with textured UV maps (?)
|
|