原地址: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. Oracle表变化趋势追踪记录

    #DBA_HIST_SEG_STAT可以看出对象的使用趋势,构造如下SQL查询出每个时间段内数据库对象的增长量,其中DB_BLOCK_CHANGES_DELTA为块个数 select c.SNAP_I ...

  2. Python性能优化的20条建议 (转载)

    优化算法时间复杂度 算法的时间复杂度对程序的执行效率影响最大,在Python中可以通过选择合适的数据结构来优化时间复杂度,如list和set查找某一个元素的时间复杂度分别是O(n)和O(1).不同的场 ...

  3. GestureDetector.OnGestureListener

    为了加强鼠标响应事件,Android提供了GestureDetector手势识别类.通过GestureDetector.OnGestureListener来获取当前被触发的操作手势(Single Ta ...

  4. Bing Speech Recognition 标记

    Bing Speech Services Bing   Bing Speech Services provide speech capabilities for Windows and Windows ...

  5. Newtonsoft.Json版本冲突时参考解决方案

    如果同一项目中不同第三方类库分别使用了不同版本的Newtonsoft.Json的情况下,可以在配置文件中添加以下节点,将0.0.0.0-9.0.0.0此区间的Newtonsoft.Json使用全部强制 ...

  6. 打造一款属于自己的web服务器——开篇

    JVM总结慢慢来吧,先插播一篇水文,来介绍下最近业余一直在写的一个小项目——easy-httpserver(github).适合新手学习,大神们路过即可^_^. 一.这是个什么玩意? easy-htt ...

  7. nodejs使用mongoose

    var mongoose = require("mongoose"); // 连接字符串格式为mongodb://主机/数据库名 mongoose.connect('mongodb ...

  8. IOS判断网络环境

    https://developer.apple.com/library/ios/#samplecode/Reachability/Introduction/Intro.html 我下载的是vertio ...

  9. Question about pairing/bonding?

    Except that on android you can bypass the pairing dialog if you know the PIN in advance through a di ...

  10. MVC返回图片

    这几天忙着一些小事,也没有写什么了,今天,我们来玩一个比较简单的东东.就是在MVC下如何返回图片,相信,在传统WebForm下,大家都晓得怎么弄,方也不限于一种,但是,在架构较为严格的MVC里面,刚开 ...