Maya 2012: Create static meshes for UDK

The easiest way to export meshes from Maya 2012 to UDK is using the FBX-Workflow.

The steps are:

  1. Prepare the Material
  2. Prepare the Model
  3. Export the Model and Material
  4. Import the Model and Material

The ActorX plugin has been retired and is replaced by the FBX-workflow.

Setup FBX Plugin

Currently UDK supports the Format FBX 2012. You can get the latest version from Autodesk (free):

http://usa.autodesk.com/adsk/servlet/pc/item?id=10775855&siteID=123112

  1. Open Window > Preferences > Plugin-Manager
  2. Activate fbxmaya.mll (loaded and auto load)
  3. Check the version by clicking on the “i” (PluginVersion 2012.2)

Prepare Materials

Only the Standard Shaders Anisotropic,Blinn,Lambert,Phong,Phong E are supported.

UDK Map/Texture Maya Setup
Diffuse Color > File
Emissive Incandescence > File
Specular Specular Color > File
Specular Power Cosine Power > File
Normal Map Bump > File
  1.  UV-Mapping: All UV-Mapping will be transferred to UDK.
  2. All Material names will be transferred to UDK
  3. Make sure all Textures are in a .tga format for easy transfer to UDK

Prepare Model

  1. Name your Object something meaningful.
  2. Make sure that the scale fits for the UDK Gridsize (e.g use the jbUDK Tools)
  3. On exported Object the Pivot Point is always set to (0,0,0) position the geometry correctly
  4. UDK only accepts geometry that has been Triangulated. Select the Meshes and use Mesh > Triangulate. If problems occur you have to redraw the topology by hand with the split polygon tool.
  5. Convert Nurbs Geometry to PolyGeometry (Modify > Convert > Nurbs to Polygons) in the Options select Triangles.
  6. In UDK Static meshes are limited to 65535 vertices. Higher Polycounts cannot be imported. Check your Polycount by activating Display > Heads up Display > Polycount. (Using Normal Maps can help to reduce the Polycount)

Create Collision Model

The collision Model can be created manually in Maya or calculated with a feature within UDK. However creating a correct collision model in Maya saves a lot of time, and gives you more control over how the collision model will look like.

Maya

  1. Manually Create a simplified Mesh for the Collisions
  2. Collision meshes are identified by the importer based on their name. The collision naming syntax should be:
    •  UBX_[RenderMeshName] - Boxes are created with the Box objects type with the Cube polygonal primitive in Maya. You can’t move the vertices around or deform it in any way to make it something other than a rectangular prism, or else it won’t work.
    • USP_[RenderMeshName] - Spheres are created with the Sphere object type. The sphere does not need to have many segments (8 is a good number) at all because it is converted into a true sphere for collision. Like boxes, you shouldn’t move the individual vertices around.
    • UCX_[RenderMeshName] - Convex objects can be any completely closed convex 3D shape. For example, a box can also be a convex object.

UDK Static Mesh Editor

  1. In the Contentbrowser RMB on the Mesh and select “Edit with Static Mesh Editor
  2. In the Collision Menu select the proper Collision Model. Most of them are Boxes with various sides.

FBX Export

  1. Check again if all Objects have a proper Name.
  2. Select the Objects for Export
  3. File > Export Selection (FileType FBX Export)

FBX Import

  1. Open a Explorer Window and navigate to the exported file
  2. Open UDK and the ContentBrowser and drag the file from the Explorer to UDK
  3. In the Options scroll down to Materials and activate “Import Materials”, “Import Textures”
  4. In the ContentBrowser select the Static Mesh and RMB > Edit with Static Mesh Editor
  5. In the Static Mesh Editor you can change the Camera Position with RMB-Drag. When you found a meaningful angle Tool > Save Thumbnail Angle.

Further Reading:

http://udn.epicgames.com/Three/FBXStaticMeshPipeline.html

http://udn.epicgames.com/Three/FBXMaterialPipeline.html

5 thoughts on “Maya 2012: Create static meshes for UDK”

  1. Thanks for your quick tutorial here. I have a question about exporting from Maya. I have a model that was exported out of an engineering program. I’ve imported it into UDK using FBX and applied a Chrome/Stainless Steel look to it. From a distance every thing looks great. How ever if you get too close it starts to take on a faceted look where you can see all the triangles in the faces. Any ideas on how to solve this issue, would be greatly apprecated. I’m using Maya 2011 and the latest Beta reliese of UDK in the hopes of getting this on an iPad. Any help you can give me would be greatly appreciated.

Leave a Reply