How to create models in XSI and other 3D applications and make them work in Battlefront 1 & 2. Post models, tips for application usage and share anything XSI, 3DMax, SketchUp, etc.
A .msh exporter for 3ds Max BETA Release - see below \/ \/ \/
I went to start work on DMI again, but I had since updated my 3ds Max license, so XSI Crosswalk no longer worked. This meant I couldn't get models in XSI to export them with MshEx. Solution: rewrite a msh exporter from scratch compatible with 3ds Max
How it works:
1) Run a MaxScript in 3ds Max (pops out a text file)
2) Run MshEx4Max.exe (takes text file turns it into .msh)
How to Use:
1) Set up scene in 3ds Max*
2) Run MaxGrab.ms (Maxscript menu > Run Script)
3) Save file in same directory as MshEx4Max.exe, name it something like MyMesh.txt
4) Run MshEx4Max.exe, enter the following command: ex MyMesh.txt
5) Wait until it says "DONE!" Your msh appears as "MyMesh.msh" in same folder
* some stipulations are listed here:
-If you want to export more than one object in a scene, I reccomend at this point just merging them all into one object. Otherwise, use the select-and-link tool to link all the other objects to one object.
-Make sure everything has textures and uv coords.
-Only tested with editable poly objects
-Material IDS: if you go into editable poly > material IDS, make sure that the material ids of every face actually reference the submaterial in the multimaterial. For example, if your mulit-material has 5 submaterials, don't have a material id of 12. Max somehow undestands to roll around, but for my lazy sake I made it so 5 = 5, and anything above 5 would not work in this case. Beware of this, sometimes max likes to by default assign these wrong material ideas to things such as spheres. I will address this issue later but at the moment it is not.
-MaxGrab.ms was only tested with 3ds Max 2010
Notes for Rev2
-Fixed MaxGrab.ms to export normals correctly
Notes for Rev3
-Fixed MaxGrab.ms to export normals correctly
Because the MaxScript grabs stuff right out of 3ds Max, this would perhaps make it easier to pull stuff out like vertex lighting, bones, envelopes, anims, etc. But my time is limited so I may not get to this unfortunately.
Ouch that would be a great feature too.
But omg, then I finally can export my models alone
I guess the question is, how many people use 3ds Max anyways? Or how many COULD use it?
Seeing as Autodesk bought XSI, I'm thinking a Max exporter will be a stable tool for years to come.
As of now there's an issue with the program:
Hidden/Spoiler:
It's all blocky like that because I thought I could save time by splitting the model all apart into separate triangles. Turns out it looses its smoothness in the process.
So it may take me like a week to rewrite the algorithms that do this.
Because both gmax and 3ds Max use MAXScript, there is a chance that I may be able to make a gmax-compatible script as well.
Problem is that gmax is 10 years old, and they've added more commands to maxscript since then, and I may have used some. I have a feeling though that I may be able to get most of the important info out of it, but my first priority now is to fix the blockyness issue.
MsHwIz wrote:Any chance you will be releasing the source so someone can possibly port it to a free modeling program such as blender?
Well the file format in between max and mshex is a slightly modified .obj format. I just added more information to it. So if you can find a .obj export script that you can modify to add this info in, then it will work with mshex.
EDIT: Good news, I fixed the blockyness issue, now it works as well as the old mshex! I'll release a beta shortly.
EDIT2: Fixed a small bug in MaxGrab.ms, make sure you download the Rev 2 version!
EDIT3: Already working on rev3 '-_- the normals were more messed up than I had thought.
Very nice. I might give it a go to compare it to the Pandemic XSI exporter.
On a side note. If you have a valid Student e-mail that qualifies. Try registering here -> http://students.autodesk.com/
Its free student licenses for all Autodesk professional products (Softimage, Mudbox, Maya, 3DSMax). 6-13 months depending on version you use. You do have to be a current student with valid email, so don't try and cheat the system.