Jump to content

TXT Model Importer/Exporter


Conti-k

Recommended Posts

For 3ds Max.

 

Clipboard0d427.png

 

 

 

 

 

Few notes:

 

Tool will import/export models with ANIMATED_MESH (i.e. characters) and MESH keywords (i.e. weapons).

 

Meshes with value of 2 on 6th record (i.e. psionics' mimics):

 

FIXED_VERTEX_ATTRIBS 7 3 2 3 0 2 0 0

 

are imported but two values after normals data and before bones count are stripped (no idea what are they).

 

 

Bones are imported as helpers without any hierarchy (there's no info what is children/parent in the file).

 

Option "Link Bones" will automatically link helpers with "Bip 01" in the name into the correct hierarchy.

 

When importing code checks if bones/helpers with given name exist in the scene - if exist new aren't imported.

 

Import/Export of materials not supported. Instead this is written into the file:

 

MATERIAL_LIST
END_OF_MATERIAL_LIST
MATERIAL_TABLE
MESH n USES 0
END_OF_MATERIAL_TABLE

 

where n is the number of meshes exported and present in the file. Five would be:

 

MESH 0 USES 0
MESH 1 USES 0
MESH 2 USES 0
MESH 3 USES 0
MESH 4 USES 0

 

When exporting geometry make sure that stuff you don't want be exported is hidden - script checks for visibility.

 

When exporting helpers script checks for their color - don't change it after they're imported.

 

Export of SEMANTIC TANGENT data isn't supported.

 

Tool was tested on a few files - I could miss something.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...