After quite few weeks I have finally somewhat working version of NWN exporter. Compared to mdl2mesh have probably little wider degree of supported MDL format features.
- Exports animations, materials and geometry, also uses shared skeletons.
- Doesnt handles danglymeshes and emitters
- In future versions I plan add emitters, better material(alpha and shininess) support and texture atlasing
The binary mdl format used to be documented on Torlack's site, but sadly his domain seems to have been expired. I was able to fish it out of Google cache several months ago.
- added handling animation/position lists with count number and no "endlist" tag
- (hopefully) better modifying animation/position lists to avoid unneeded rotations/translations
- added sorting face vertexes to prevent counterclockwise triangles which wont be visible
- added options "-generate_dependency_file" and "-no_skeleton"
There are still some cases which arent properly handled, any feedback is welcomed ...
- removed space in conversion commands, now conversion works even with alternative xmlconverter path, I wonder why no one reported this
- added master model capability, to see for what it is good for, see pymdl2mesh.py file
After some time of inactivity I am releasing rather significant(but not that significant revision which fixes some of master model behaviour. Howerer skin nodes are still showstopper ...
Btw in 1-2 weeks i consider release few my scripts for extraction data files like tga's or mdl's packed in NWN resource files, does anyone have interest in these ... ?
Do you support NWN2 too or are this models Granny v2 models (i think they just use Granny for Skeletons)?
Well, you caught me unprepared . As far I know - NWN2 format neither Granny v2 format are not related to NWN1 format. But I cant really guarantee that - I have no experience with these ... Concerning progress - exporter is imho solid enough to handle most models but some model features will not be likely ever implemented (dangly meshes) or they are under not-so-heavy implementation investiagation (skin nodes & weights) ...
Well Nwn2 has the MDB format which is well documented and there are also custom viewers. As far as i know they use *.mdb for Mesh data and *.gr2 (Granny v.2) for Skeletons.
They also released an Export Tool to create custom Meshes+Skeletons.
The .gr2 format they use is proprietary with no public documentation and nobody has (yet) reverse engineered it to my knowledge. Expotron is a plugin for 3dsMax and only versions 6-8. Version 9 has a new API which is incompatible.
vgx wrote:Btw in 1-2 weeks i consider release few my scripts for extraction data files like tga's or mdl's packed in NWN resource files, does anyone have interest in these ... ?