原地址:http://game.ceeger.com/Manual/HOWTO-ImportObjectMaya.html

Unity natively imports Maya files. To get started, simply place your .mb or .ma file in your project's Assets folder. When you switch back into Unity, the scene is imported automatically and will show up in the Project view.

Unity3d可以直接导入maya文件。让我们来做一个简单的例子,直接将.mb 或者.ma文件放置到你的工程资源文件夹下面,当你切换回unity3d的时候你会发现,资源会自动导入,并在你的工程面板中显示出来。

To see your model in Unity, simply drag it from the Project View into the Scene View or Hierarchy View.

只需要将你的模型简单的从工程面板拖拽到场景中或者层级面板下你就可在unity3d中查看你的模型。

Unity currently imports from Maya:
unity目前能从Maya导入:

  1. All nodes with position, rotation and scale. Pivot points and Names are also imported. 
    所有节点的位移,旋转,缩放,轴心和命名都将导入
  2. Meshes with vertex colors, normals and up to 2 UV sets. 
    网格模型包含顶点颜色,法线 以及两个以上的uv集。
  3. Materials with Texture and diffuse color. Multiple materials per mesh. 
    材质包含贴图以及漫反射颜色,以及单个网格的多维材质。
  4. Animations FK & IK 
    正向动力学(FK)和反向动力学(IK)动画。
  5. Bone-based animations 
    基本的骨骼动画

Unity does not import blend shapes. Use Bone-based animations instead. Unity automatically triangulates polygonal meshes when importing, thus there is no need to do this manually in Maya.

Unity不能直接导入融合变形(表情动画) ,可以使用基本骨骼动画来代替融合变形动画(注:可以使用maya AM插件导入融合变形)。Untiy导入多边形物体时会自动转换为三角形网格物体,如此一来就不必在maya中去手动处理多边形物体。

If you are using IK to animate characters you have to select the imported .mb file in Project View and choose Bake IK & Simulation in the Import Settings dialog in the Inspector.

如果你想使用反向动力学(ik)动画,那么你就必须在工程面板中选择你的.mb文件然后在检视面板的导入设置对话框中开启烘培ik和模拟。(注:也可以直接在maya中将ik动画,约束和控制器动画烘培到蒙皮骨骼上。)

Requirements 要求

In order to import Maya .mb and .ma files, you need to have Maya installed on the machine you are using Unity to import the .mb/.ma file. Maya 8.0 and up is supported.

如果你想直接导入.mb或者.ma文件,你必须在你的电脑中安装8.0以上版本的maya。

If you don't have Maya installed on your machine but want to import a Maya file from another machine, you can export to fbx format, which Unity imports natively. Please Install ->2011.3 for best results. To export see HOWTO_exportFBX.

如果你没有在你的电脑中安装maya程序,但又希望使用从其他电脑中制作的maya文件,那么你可以将文件输出为unity默认支持的fbx格式。请安装 2011.3.版本的fbx插件以获得做好的结果。更多详细设置请查看如何导出fbx格式文档。

Once exported Place the fbx file in the Unity project folder. Unity will now automatically import the fbx file. Check the FBX import setting in the inspector as mentioned in HOWTO_exportFBX

第一次将输出的fbx文件放置到unity的工程资源文件夹下,unity将自动导入fbx文件,在检视面板中查看fbx导入设置,更多详细内容请参考如何导出fbx格式文档。

Behind the import process (Advanced) 导入过程的背后(高级)

When Unity imports a Maya file it will launch Maya in the background. Unity then communicates with Maya to convert the .mb file into a format Unity can read. The first time you import a Maya file in Unity, Maya has to launch in a command line process, this can take around 20 seconds, but subsequent imports will be very quick.

当unity导入maya文件时会在后台启动maya。Unity将通过maya程序把.mb文件转换成unity可读取的格式(fbx格式)。当你第一次导入maya文件到unity的时候,maya将以命令行进程启动(maya无界面启动模式),这可能需要20秒左右的时间。不过以后导入时会变得很快。

Troubleshooting 故障排除

  • Keep your scene simple, try and work with a file which only contains the objects you need in Unity 
    尽量保证你的场景简洁,努力将文件优化到只包含你在unity中所需要物体。(注:可以使用maya的优化场景命令来优化你的文件大小)
  • If your meshes cause problems, make sure you have converted any patches, nurbs surface etc into Polygons (Modify > Convert + also Mesh > Quadragulate/Triangulate) Unity only support Polygons. 
    如果你的网格模型发生错误,确认你是否将所有的patches和nurbs模型等转为多边形物体。(Modify > Convert + also Mesh > Quadragulate/Triangulate)unity仅支持多边形模型。
  • Maya in some rare cases messes up the node history, which sometimes results in models not exporting correctly. Fortunately you can very easily fix this by selecting Edit->Delete All by Type->History. 
    Maya在极少的情况下会因为历史节点的原因导致模型不能正确的输出,如果你遇到这样的问题,幸好有简单的办法可以对其进行修复。编Edit->Delete All by Type->History。
  • Unity likes to keep up with the latest FBX where possible so if you have any issues with importing some models, check Autodesk latest version, or for fail-safe install 2011.3
    Unity通常会保证支持最新版本的fbx插件。如果你在输出某些模型的时候遇到问题请检查你的fbx插件版本是否是最新版,或者至少安装2011.3版本的fbx插件避免出现输出错误。
  • Animation baking in Maya is now done with FBX instead of natively, which allows for more complex animations to be baked properly to FBX format. If you are using driven keys, then make sure to set at least one key on your drivers for the animation to bake properly 
    原来在maya中的动画烘培工作,现在可以用开启fbx自带的烘培选项这种简便的方法来代替,无论多么复杂的动画都可以轻松的使用fbx插件烘培输出,如果你使用了驱动关键帧技术请确保你的每一帧动画都被正确的烘培。

页面最后更新:2011-07-07

从maya导入物体 Importing Objects From Maya的更多相关文章

  1. 从3D Studio Max导入物体 Importing Objects From 3D Studio Max

    原地址:http://game.ceeger.com/Manual/HOWTO-ImportObjectMax.html If you make your 3D objects in 3dsMax, ...

  2. Maya导入Unity的教程

    原地址:http://www.cocoachina.com/gamedev/gameengine/2010/0601/1586.html 昨天已经发布了1Vr.Cn翻译的多维材质模型烘培入Unity  ...

  3. MAYA安装失败怎样卸载重新安装MAYA,解决MAYA安装失败的方法总结

    技术帖:MAYA没有按照正确方式卸载,导致MAYA安装失败.楼主也查过网上关于如何解决MAYA安装失败的一些文章,是说删除几个MAYA文件和MAYA软件注册表就可以解决MAYA安装失败的问题,实际的情 ...

  4. PHP使用命名空间:别名/导入(Aliasing/Importing)

    1.导入,就是使用use操作符 2.在一个类中导入了另一个类之后,当前的命名空间仍然是当前类的命名空间 3.注意对命名空间中的名称(包含命名空间分隔符的完全限定名称如 Foo\Bar以及相对的不包含命 ...

  5. Unity3D用户手册

    Unity Manual 用户手册 Welcome to Unity. 欢迎使用Unity. Unity is made to empower users to create the best int ...

  6. 从Maya中导入LightMap到unity中

    导入步骤 1.在Maya中为每一个模型烘焙好帖图(tif格式),会发现烘焙好的图和UV是一一对应的 2.把模型和烘焙帖图导入到Unity中 3.选中材质,修改Shader为 Legacy Shader ...

  7. Maya学习笔记

    软件: Maya 2016 : 参考教材: Maya 2016 中文版标准教程 ; 改变视图颜色 [窗口]|[设置/首项选择]|[颜色设置]|[3D视图]: 观察视图 旋转视图 Alt + 鼠标左键 ...

  8. Automation Test in Maya Plugin Development

    现状和问题- 开发插件的功能A的时候随手建立场景, 测试插件的功能A. 测试通过后,测试场景就被丢掉.- 发现插件的功能A有bug时, 修改代码, 然后随手建立场景, 测试bug. 测试通过后,测试场 ...

  9. 将 Wing IDE 与 Maya 结合使用(摘自Maya用户指南)

    1. 将 wingdbstub.py 从 Wing IDE 安装目录复制到 Maya Python 脚本路径. 2. 确保已在“Wing IDE > 编辑 > 首选项 > 调试器”中 ...

随机推荐

  1. yhd日志分析(一)

    yhd日志分析(一) 依据yhd日志文件统计分析每日各时段的pv和uv 建hive表, 表列分隔符和文件保持一致 load数据到hive表 写hive sql统计pv和uv, 结果保存到hive表2 ...

  2. 数据结构学习笔记05图 (邻接矩阵 邻接表-->BFS DFS、最短路径)

    数据结构之图 图(Graph) 包含 一组顶点:通常用V (Vertex) 表示顶点集合 一组边:通常用E (Edge) 表示边的集合 边是顶点对:(v, w) ∈E ,其中v, w ∈ V 有向边& ...

  3. Git - Tutorial [Lars Vogel]

    From: http://www.vogella.com/tutorials/Git/article.html Git - Tutorial Lars Vogel Version 5.6 Copyri ...

  4. linux下更改文件夹所属用户和用户组

    改变所属用户组:chgrp -R users filename -R是为了递归改变文件夹下的文件和文件夹,users是要改为的用户组名称,filename是要改变的文件夹名称 ============ ...

  5. golang的++与--

    http://godoc.golangtc.com/doc/faq#inc_dec 简单地说, 在golang中++,--操作是语句而不是表达式. 所以a=b++, return x++之类绝对提示错 ...

  6. 安装Ubuntu 15.10后要做的事

    Ubuntu 15.10发布了,带来了很多新特性,同样也依然带着很多不习惯的东西,所以装完系统后还要进行一系列的优化. 1.删除libreoffice libreoffice虽然是开源的,但是Java ...

  7. Beyond Compare 4

    Beyond Compare是一款不可多得的专业级的文件夹和文件对比工具.使用他可以很方便的对比出两个文件夹或者文件的不同之处.并把相差的每一个字节用颜色加以表示,查看方便.并且支持多种规则对比.

  8. 从JetBrains公司产品给我的商业模式启示

    JetBrains是捷克一家公司,专门从事IDE工具的开发,运营的产品有十几个.我因为使用JavaScript IDE工具而了解了WebStorm.进而了解了开发WebStorm的公司JetBrian ...

  9. JavaScript显示输出

    记得c语言里的printf和java里的println吗,那么在JavaScript中怎么实现同样的功能呢 window.onload = function() { var para = docume ...

  10. 四则运算2--c++

    1.设计思路: 上篇已写,不在解释..... 2.源代码: #include<iostream.h>#include<stdlib.h>#include "time. ...