找回密码
 立即注册
查看: 4026|回复: 87

[基础] 3dmax中如何将物体导入到unity3d中教程

[复制链接]
发表于 2012-12-15 18:57 | 显示全部楼层 |阅读模式
资源信息 Tutorial Information
教程名称: 3dmax中如何将物体导入到unity3d中教程(发帖教程)
适用引擎:   (适用引擎,为空默认为Unity)
教程语种: 中文
教程等级: 1
教程格式: 图文(请用IE9以上浏览器访问本版块)
教程作者: 转载自互联网 (如有问题请短消息联系作者或发表回复)
下载地址: (兑换积分)
点击查看原图
美丽分割线

导入模型是我们遇到的最基本的问题,下面是官方手册中的指导,比较详细了,供查阅

Importing Objects From 3D Studio Max

从3dmax中导入物体

If you make your 3D objects in 3dsMax, you can save your .max files directly into your Project or export them into Unity using the Autodesk .FBX format. Saving them in the original .max format is recommended.
Unity currently imports from 3ds Max

如果你是使用3dmax来创建你的场景物体的话,你可以直接将你的max文件存至你的unity3d项目文件夹中,或者将其导出为fbx文件格式,在此推荐你直接存为max文件,现在unity3d已经支持max文件的直接导入了。

   1. All nodes with position, rotation and scale. Pivot points and Names are also imported.
   2. Meshes with vertex colors, normals and one or two UV sets.
   3. Materials with diffuse texture and color. Multiple materials per mesh.
   4. Animations.
   5. Bone based animations.

1、所有物体的空间位置信息,轴心点,名称等等全被导入

2、网络及顶点颜色,法线及UV设置都可以导入

3、漫反射材质及多重材质

4、动画

5、基于骨骼的动画(在此提示一下,不要用带ik的骨骼动画,不然导入unity3d后动画会无效,曾遇到过的问题。)

To manually export to FBX from 3DS Max

   1. Download the latest fbx exporter from Autodesk website and install it.
   2. Export your scene (File->Export or File->Export Selected) in .fbx format. Using default export options should be okay.
   3. Move the exported fbx file into your Unity project folder.
   4. When you switch back into Unity, the .fbx file is imported automatically.
   5. Drag the file from the Project View into the Scene View.

Exporter options

Using default FBX exporter options (that basically export everything) should be okay in all cases.

Default FBX exporter options (for fbx plugin version 2009.3)

Exporting Bone-based Animations

There is a procedure you should follow when you want to export bone-based animations:

   1. Set up the bone structure as you please.
   2. Create the animations you want, using FK and/or IK
   3. Select all bones and/or IK solvers
   4. Go to Motion->Trajectories and press Collapse. Unity makes a key filter, so the amount of keys you export is irrelevant
   5. "Export" or "Export selected" as newest FBX format
   6. Drop the FBX file into Assets as usual
   7. In Unity you must reassign the Texture to the Material in the root bone

When exporting a bone hierarchy with mesh and animations from 3ds Max to Unity, the GameObject hierarchy produced will correspond to the hierarchy you can see in "Schematic view" in 3ds Max. One difference is Unity will place a GameObject as the new root, containing the animations, and will place the mesh and material information in the root bone.

If you prefer to have animation and mesh information in the same Unity GameObject, go to the Hierarchy view in 3ds Max, and parent the mesh node to a bone in the bone hierarchy.

Exporting Two UV Sets for Lightmapping

3ds Max' Render To Texture and automatic unwrapping functionality can be used to create lightmaps. Usually one UV set is used for main texture and/or bumpmaps, and another UV set is used for the lightmap texture. For both UV sets to come through properly, the material in 3ds Max has to be Standard and both Diffuse (for main texture) and Self-Illumination (for lightmap) map slots have to be set up:

Material setup for Lightmapping in 3ds Max, using self-illumination map

Note that if object uses a Shell material type, then current Autodesk's FBX exporter will not export UVs correctly.

Alternatively, you can use Multi/Sub Object material type and setup two sub-materials, using the main texture and the lightmap in their diffuse map slots, like shown below. However, if faces in your model use different sub-material IDs, this will result in multiple materials being imported, which is not optimal for performance.

Alternate Material setup for Lightmapping in 3ds Max, using multi/sub object material
Troubleshooting

If you have any issues with importing some models: ensure that you have the latest FBX plugin installed. It can be downloaded Autodesk website.


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
发表于 2012-12-17 10:11 | 显示全部楼层
谢谢分享,问一下u3d美工还需要学些什么呢?

点评

c#b吧 js 脚本之类的语法 基本相同 上手很容易  详情 回复 发表于 2012-12-30 20:41
发表于 2012-12-17 10:26 | 显示全部楼层
太好了,找了好久这个类型的内容
发表于 2012-12-17 10:30 | 显示全部楼层
123123123123123123
发表于 2012-12-17 10:51 | 显示全部楼层
123123123123123123
发表于 2012-12-30 20:41 | 显示全部楼层
啊根 发表于 2012-12-17 10:11
谢谢分享,问一下u3d美工还需要学些什么呢?

c#b吧  js 脚本之类的语法 基本相同 上手很容易

点评

恩,谢谢呵;问一下max导入u3d时给的fbx格式但是导入没有高光贴图怎么解决啊;要倒的东西比较多,一个个的做shader太慢了呵,能有办法直接批量导入材质带高光的模型吗?  详情 回复 发表于 2013-1-21 11:11
发表于 2013-1-21 11:11 | 显示全部楼层
luckstar 发表于 2012-12-30 20:41
c#b吧  js 脚本之类的语法 基本相同 上手很容易

恩,谢谢呵;问一下max导入u3d时给的fbx格式但是导入没有高光贴图怎么解决啊;要倒的东西比较多,一个个的做shader太慢了呵,能有办法直接批量导入材质带高光的模型吗?
发表于 2013-1-21 20:39 | 显示全部楼层
哇哦不错啊,学习了
发表于 2017-2-11 09:44 | 显示全部楼层
好帖就是要顶
发表于 2017-2-11 09:47 | 显示全部楼层
真心顶
懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Unity开发者联盟 ( 粤ICP备20003399号 )

GMT+8, 2024-11-13 09:11 , Processed in 0.108612 second(s), 33 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表