The easiest way to export meshes from Maya 2012 to UDK is using the FBX-Workflow.
The steps are:
- Prepare the Material
- Prepare the Model
- Export the Model and Material
- 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):
- Open Window > Preferences > Plugin-Manager
- Activate fbxmaya.mll (loaded and auto load)
- Check the version by clicking on the “i” (PluginVersion 2012.2)
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|
- UV-Mapping: All UV-Mapping will be transferred to UDK.
- All Material names will be transferred to UDK
- Make sure all Textures are in a .tga format for easy transfer to UDK
- Name your Object something meaningful.
- Make sure that the scale fits for the UDK Gridsize (e.g use the jbUDK Tools)
- On exported Object the Pivot Point is always set to (0,0,0) position the geometry correctly
- 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.
- Convert Nurbs Geometry to PolyGeometry (Modify > Convert > Nurbs to Polygons) in the Options select Triangles.
- 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.
- Manually Create a simplified Mesh for the Collisions
- 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
- In the Contentbrowser RMB on the Mesh and select “Edit with Static Mesh Editor“
- In the Collision Menu select the proper Collision Model. Most of them are Boxes with various sides.
- Check again if all Objects have a proper Name.
- Select the Objects for Export
- File > Export Selection (FileType FBX Export)
- Open a Explorer Window and navigate to the exported file
- Open UDK and the ContentBrowser and drag the file from the Explorer to UDK
- In the Options scroll down to Materials and activate “Import Materials”, “Import Textures”
- In the ContentBrowser select the Static Mesh and RMB > Edit with Static Mesh Editor
- In the Static Mesh Editor you can change the Camera Position with RMB-Drag. When you found a meaningful angle Tool > Save Thumbnail Angle.