User Tools

Site Tools


documentation:objimporter

OBJ Importer

Currently The Wizards supports importing Geometry and Material data from Wavefront-OBJ files. It can also read the corresponding mtl files.

From this imported data, the engine can build Meshes. Currently 2 modes are supported:

  • Build a single mesh from exported data. All geometry and collision data is merged into a single mesh.
  • Build a seperate mesh from every 3dsmax object. Every object must be a editable poly in 3dsmax.

Special material names have been reserved for collision data. The names are case-sensitive.

  • TW_Physics_Box: The importer will attempt to reconstruct boxes from the geometry that has this material. (not sure this is implemented).
  • TW_Physics_TriangleMesh: This will create a single TriangleMesh from all geometry with this material.
  • TW_Physics_Convex: This will create a SINGLE convex mesh from ALL geometry data (within the object).

Exporting from 3ds max

The importer has currently only been tested with the 3dsmax exporter. Every object in 3dsmax must be converted to an editable poly, otherwise the importer will not work correctly. The up axis must be set to Y, and relative indices have to be Disabled!

documentation/objimporter.txt · Last modified: 2013/05/24 14:39 by mhgamework