原地址: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. jquery 匹配select下拉框与列表框

    今天工作中用到 GrapyCity 的 wijmo ui 控件. 要给系统中所有类型的控件加统一样式 用法 $("input [type='text']").wijtext(); ...

  2. C# 页面抓取获取快递信息

    通过页面抓取信息可以获得很多我们想要的信息,比如现在常会用到的快递查询,主要抓取的网站为http://www.kuaidi100.com/ 通过IE的网络分析我们可以得到下面信息 通过对这个网站的分析 ...

  3. [整理归档]30 common tasks you perform using the GUI that you can do faster in Windows PowerShell

    主要内容来自于 http://channel9.msdn.com/Events/TechEd/Australia/2014/DCI316 可以下载PPT以及视频,个人只是整理一下平时常用的 NetWo ...

  4. 6月24日AppCan移动开发者大会礼品清单遭泄露

    6月24日,第一届AppCan移动开发者大会将在北京国际会议中心举办,大会以”平台之上,应用无限”为主题,全景展现移动应用发展趋势.AppCan 移动技术蓝图及80万开发者的技术实践成果. 大会现场礼 ...

  5. http压力测试

    一.http_load程序非常小,解压后也不到100Khttp_load以并行复用的方式运行,用以测试web服务器的吞吐量与负载.但是它不同于大多数压力测试工具,它可以以一个单一的进程运行,一般不会把 ...

  6. linux 禁止指定账号ssh登陆

    1 2 3 4 vim /etc/pam.d/sshd   #在第一行添加以下代码 auth       required     pam_listfile.so item=user sense=de ...

  7. C#语法功能结构

    1.File打开指定文件夹或者文件,"\"为转义字符System.Diagnostics.Process.Start(Application.StartupPath + " ...

  8. FPGA入门1

    FPGA入门知识介绍    近几年来,由于现场可编程门阵列(FPGA)的使用非常灵活,又可以无限次的编程,已受到越来越多的电子编程者的喜爱,很多朋友都想学习一些FPGA入门知识准备进行这个行业,现在关 ...

  9. 21.altera fpga 芯片中 pin 和 pad 区别

    在chip planner 中 ,看管脚时,会看到 pin 和pad 同时出现, 如 pin120/pad174 Bank 4 那么有什么区别? PIN指芯片封装好后的管脚,即用户看到的管脚: PAD ...

  10. springboot日志

    1.日志 Spring Boot内部日志系统使用的是Commons Logging,但开放底层的日志实现.默认为会Java Util Logging, Log4J, Log4J2和Logback提供配 ...