Page 2 of 4

Re: MeshEx - .msh exportation for Gmax + XSI Mdt's

Posted: Mon Nov 12, 2007 5:33 am
by Penguin
MSH >
not
< MSH

Re: MeshEx - .msh exportation for Gmax + XSI Mdt's

Posted: Mon Nov 12, 2007 5:39 pm
by MandeRek
Penguin i might just be dumb but that really didn't make any sense for me :D

Re: MeshEx - .msh exportation for Gmax + XSI Mdt's

Posted: Mon Nov 12, 2007 6:04 pm
by RepSharpshooter
Well right now I have it so that you export yafray xml from gmax, then the program reads that in and converts it to the .msh file format.

I'm not exactly sure what Penguin is saying either :lol: But probably something to that effect.

Re: MeshEx - .msh exportation for Gmax + XSI Mdt's

Posted: Mon Nov 12, 2007 8:26 pm
by Penguin
Oh, LOL, I thought you were converting .msh to .xml :/

not .xml to .msh

Re: MeshEx - .msh exportation for Gmax + XSI Mdt's

Posted: Mon Nov 12, 2007 10:26 pm
by RepSharpshooter
lol
The polygon stripping algorithms.... work. For now, and for 2 triangles :P . Writing the code to write the binaries. I got everything done, just going through to write the code to write the chunk sizes.

Expect some result (either success or failure) soon, sometime this week.

Re: MeshEx - .msh exportation for Gmax + XSI Mdt's

Posted: Tue Nov 13, 2007 8:33 am
by EGG_GUTS
So instead of having this someone with the Full version of XSI were gonna be able to use this? :D

Re: MeshEx - .msh exportation for Gmax + XSI Mdt's

Posted: Tue Nov 13, 2007 9:18 am
by Caleb1117
As long as you have Gmax too.
which is free I belive.

Now, will Max keep the nulls from xsi? I know little about max so...

Re: MeshEx - .msh exportation for Gmax + XSI Mdt's

Posted: Tue Nov 13, 2007 4:57 pm
by RepSharpshooter
As of now this requires Gmax.
I don't think nulls would be kept. Even to export, I don't think it would keep it in the xml. I could create a null file format and have it so that you copy and paste the x y z values, or even input for them into the program.

But nulls only use a TRAN chunk, which has some strange values. I'll have to figure out what all is what.

Re: MeshEx - .msh exportation for Gmax + XSI Mdt's

Posted: Tue Nov 13, 2007 5:01 pm
by Caleb1117
Even if it can't export nulls, it will still be really useful.
Most of the stuff I make dosen't have them.

Re: MeshEx - .msh exportation for Gmax + XSI Mdt's

Posted: Tue Nov 13, 2007 5:44 pm
by MandeRek
Okay, again i have to say this; Rep, this is so totally awesome!!! :D :thumbs:

So after having said that again....Nulls aren't always neccessary right? With weapons you can just use cones as hp_fire and hp_active. So GMax, is that also a 3dmodelling program like XSI? Or is it just a converting program? (Off-topic: sorry for bad english)

Re: MeshEx - .msh exportation for Gmax + XSI Mdt's

Posted: Tue Nov 13, 2007 6:09 pm
by Taivyx
Gmax: A free 3d modeling and animation software aimed toward hobbyist game developers and game modders. It was previously supported by Autodesk, but was discontinued. Official support and download site: http://www.turbosquid.com/gmax

It is basically a cut-down version of the industry-popular 3ds Max.

Re: MeshEx - .msh exportation for Gmax + XSI Mdt's

Posted: Tue Nov 13, 2007 8:09 pm
by RepSharpshooter
I got two triangles to open up in ZE, exported by this program. :P

Exporting a cube = crash, lol, I'm just taking it one step at a time.

I can't figure out why the textures don't show up. I'm going to tweak some things here and there, and add some more chunks I skipped over for time purposes (Riley says they're not important, but I'll add them anyway).

Re: MeshEx - .msh exportation for Gmax + XSI Mdt's

Posted: Wed Nov 14, 2007 2:25 pm
by MandeRek
Ok create. I'm getting started on GMAX right now....even if this doesn't work, which i don't think because REP your the king in doing this kind of things, i have got some moddeling experience.... So you can convert triangles allready? Great!!!!

Re: MeshEx - .msh exportation for Gmax + XSI Mdt's

Posted: Wed Nov 14, 2007 8:46 pm
by RepSharpshooter
Image
Woot! It exported! (Funny uv's on purpose, it is a test to see if they work, don't worry)

Ok so you know what was wrong with it? For two days I toiled and worked and worked and looked through binary data for hours on end. No textures. I copied the data into another mesh file, textures. Still no textures in my export. So I add a ton of information to it, write new routines, refine some more.

I get to the point where my mesh file is identical in length and content to the one exported by Pandemic. I test it, no textures. I flip back and forth between the two files, no differences. Then, I write a program to compare the content between the two files, and say if there's a difference. It comes up: no differences. Still no textures.

Then I spot a mistake in my program. Instead of loading the two different files, I had it reading the same one, oops. So I run it, and it says: "Difference at: 638". So I go to 638 in the file.

After all this, I had written,

Code: Select all

UV0l
and it was supposed to be

Code: Select all

UV0L
I didn't capitalize the 'L' :faint:

Next step is to refine the polygon stripping algorithms, so it doesn't crash and what-not. Getting there... Getting there...

Re: MeshEx - .msh exportation for Gmax + XSI Mdt's

Posted: Wed Nov 14, 2007 10:17 pm
by Caleb1117
RepSharpshooter wrote:
Then I spot a mistake in my program. Instead of loading the two different files, I had it reading the same one, oops. So I run it, and it says: "Difference at: 638". So I go to 638 in the file.

After all this, I had written,

Code: Select all

UV0l
and it was supposed to be

Code: Select all

UV0L
I didn't capitalize the 'L' :faint:
And That, is why as much as I appreciate what your doing, I'm soooo glad I'm not you.
:mrgreen:

Good work!

Re: MeshEx - .msh exportation for Gmax + XSI Mdt's

Posted: Wed Nov 14, 2007 10:40 pm
by FragMe!
I agree with Caleb you are doing one "L" of a job :funny2:

Re: MeshEx - .msh exportation for Gmax + XSI Mdt's

Posted: Wed Nov 14, 2007 11:28 pm
by Syth
RepSharpshooter wrote:
After all this, I had written,

Code: Select all

UV0l
and it was supposed to be

Code: Select all

UV0L
I didn't capitalize the 'L' :faint:
Now thats a bummer. Good to know that its still moving along though!

Re: MeshEx - .msh exportation for Gmax + XSI Mdt's

Posted: Thu Nov 15, 2007 4:50 pm
by RepSharpshooter
Yep, that really killed me. Thanks for the support. I'm just glad it was a mistake that was easily solved.

Re: MeshEx - .msh exportation for Gmax + XSI Mdt's

Posted: Thu Nov 15, 2007 5:50 pm
by MandeRek
Okay, that would be indeed terrible if all your work would be for nothing just because of a uncapitalized "l" Okay REP good luck on the work you still have to do, and keep us updated won't you? :D Still can't wait! :thumbs:



MandeRek

Re: MeshEx - .msh exportation for Gmax + XSI Mdt's

Posted: Thu Nov 15, 2007 10:00 pm
by Maveritchell
It's always something that simple, isn't it though?