[REL] Natural Selection 2 MeshTool

Programs that are related to this or that game.
Post Reply
User avatar
cra0
ultra-veteran
ultra-veteran
Posts: 437
Joined: Fri Apr 27, 2012 9:37 am
Has thanked: 29 times
Been thanked: 189 times
Contact:

[REL] Natural Selection 2 MeshTool

Post by cra0 »

Not sure what the devs were thinking when they engineered the model format for this game. Their vertex buffer structure is 92 bytes long which could of easily been around 40 if they actually utilized common compression techniques like compressing the UVs into halffloats or store bone indicies as bytes instead of 32bit integers. Anyway I don't think anyone cares thats reading this so I'll stop bitching.


Whats Included?

meshtool.exe
XY_Fix.ms
Mesh2Obj.bat
Mesh2Smd.bat
(bunch of txt files)
Instructions:

I've included some batch files to help ease the use since this is a command line tool it may be difficult for some people that aren't very competent with computers, well actually I have no idea why you would even use this tool if you have no clue on how to use command line applications.

If you want the output to be an obj mesh just drag and drop a .model file onto the Mesh2Obj.bat it should then create an output folder with the resulting mesh. Same applies for the Mesh2Smd.bat just dragdrop onto it.

For more info on the usage of the tool just run the exe and it will give you the usage commands I don't go through it because the Readme.txt has all the info you need.

As for the Maxscript file XY_Fix.ms it can be used with 3DS Max to fix the rotation of the models if you're exporting to SMD since it defaults to the Maya method (Y is Up/Down). Though please note some models may break if bones are not linked properly.

Lastly I'd like to thank chrrox for his help with this.

Image

Download:
http://dev.cra0kalo.com/?p=103
or here locally
NS2_Meshtool_v1.zip
You do not have the required permissions to view the files attached to this post.
kmthrong
beginner
Posts: 20
Joined: Wed Oct 22, 2014 2:19 pm
Has thanked: 4 times
Been thanked: 1 time

Re: [REL] Natural Selection 2 MeshTool

Post by kmthrong »

Good but how can I extract the 3d models. I meant where are there(In which .dat or .fat file)??with which formats?
napoleon321
advanced
Posts: 60
Joined: Tue Nov 16, 2010 12:11 pm
Has thanked: 9 times
Been thanked: 4 times

Re: [REL] Natural Selection 2 MeshTool

Post by napoleon321 »

Well I tried your tool and at first i was exited, only to find that the UV maps are destroyed. The models are exported and they look ok, but the UV map coordinates are missing. Maybe it's due to an update of the game? (I tried to open the marine models - female and male models, all of them have the same problem)
User avatar
cra0
ultra-veteran
ultra-veteran
Posts: 437
Joined: Fri Apr 27, 2012 9:37 am
Has thanked: 29 times
Been thanked: 189 times
Contact:

Re: [REL] Natural Selection 2 MeshTool

Post by cra0 »

napoleon321 wrote:Well I tried your tool and at first i was exited, only to find that the UV maps are destroyed. The models are exported and they look ok, but the UV map coordinates are missing. Maybe it's due to an update of the game? (I tried to open the marine models - female and male models, all of them have the same problem)
could be an update to the game because the UVs and all were working perfectly fine when I did it. Attach some samples or pm me them ill have a look.
Post Reply