TXT Model Importer/Exporter


  • Please log in to reply
1 reply to this topic

#1 Conti-k

Conti-k

    Squaddie

  • Members
  • Pip
  • 9 posts

Posted 29 April 2017 - 08:56 PM

For 3ds Max.

Posted Image


[sharedmedia=core:attachments:7734]


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.
contemplating the brandish of the torches...

#2 Conti-k

Conti-k

    Squaddie

  • Members
  • Pip
  • 9 posts

Posted 01 May 2017 - 01:36 PM

added a linkie + some info how to use the script.
contemplating the brandish of the torches...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users