Page 1 of 2

MX vs ATV Unleashed (PC) - DXG Model Format

Posted: Wed Apr 12, 2006 11:05 pm
by Kamshaft
Here's a sample DXG file...I'm sure it's a DirectX Geometry file.

You guys are doing so well with everything with this game!

It's an outhouse. :wink:

Thanks again guys.

Posted: Tue Apr 18, 2006 12:46 pm
by Kamshaft
Any luck this 3D format?

Posted: Wed Apr 19, 2006 12:32 am
by Extreme
I found the perfect example they left 2 of the same models in there but in different formats one is SLT (the 3d format)
And the other is DXG (the game file) so if someone can work out how to convert the dxg 2 slt and back again that would be it

3d files
http://www.mcm2extreme.com/uploads/monstertruck6.zip

And the golf cart is in there lol
Image

Extreme

Posted: Wed Apr 19, 2006 5:29 am
by Mr.Mouse
Could it not be that the SLT is the actual model that refers to textures in the DXG?

DXG format

Posted: Wed Apr 19, 2006 7:37 am
by Hunter
I personaly have not heard of a directx geometry format, however the dxg file you have here is most definately a model format.

if you jump to offset 0x014E you'll see:

Code: Select all

word VertexCount;
word TriangleStripLength;
following these data will be a triangle strip style list of faces. Each item in this list is a word(unsighed short) vertex buffer index. The length of this list is described as above(in this case 0x01B0 items, 0x0360 bytes).

Next up will be the list of vertices(in this case 0x011B verts). Each vertex has 8 floats (in this case total size of vertex buffer is 0x2360). I'm going to make a wild assumption, and say that the vertex format is as follows:

Code: Select all

float x;
float y;
float z;
float normalx;
float normaly;
float normalz;
float tu;
float tv; 
This is the most standard format for simple verts, I'd be very surprised if it was incorrect.

I haven't looked much at the data in the header before these data. I'm guessing it will list name of model, bounding box, material properties(including a link to a texture or two), possibly scaling and/or origin, and maybe other properties used for physics. To make a converter from this point, one would only have to figure out the header data.

Hopefully this helps.

Posted: Wed Apr 19, 2006 1:44 pm
by Extreme
Hunter it looks like u know what u r talking about but u have lost me a bit there sorry, I don’t even know how to look In the header.
all this code is very new to me
I know the SLT is the geometry and it looks like its inside the dxg we have a max plugin that exports to SLT its use for a game called mcm2
Iv got a small program that converts a slt 2 lwo if that would help anyone?



P.S whats the best program to look into the headers and the code
Thanks


Extreme

Posted: Wed Apr 19, 2006 2:29 pm
by Mr.Mouse
Try Hex Workshop from BreakPoint Software

Posted: Wed Apr 19, 2006 2:55 pm
by Kamshaft
Extreme, I don't think these guys know what MCM2 (like you and me) is...what he mean is a game called... Motocross Madness 2 by Microsoft, which was developed by a company called Rainbow Studios. Which are the same people who made MX vs. ATV Unleashed.

Hope this clearified things.

Posted: Wed Apr 19, 2006 5:01 pm
by Extreme
Yeah sorry about that.
My head is in a shed reading all this code
and i dont have a clue what im looking for lol

Thanks Mr.Mouse
Iv got that program now I need to learn how to work it now :)

Extreme

Posted: Wed Apr 19, 2006 6:48 pm
by Mr.Mouse
FYI:

Tutorial about those SLT files:

http://www.harmoniccycle.com/hc/3d-g-mcm2-tut-obj01.htm

Posted: Wed Apr 19, 2006 8:33 pm
by Extreme
Yeah Iv made a few hundred of them on my site
http://www.mcm2extreme.com/files/pafile ... egory&id=6
The slt isn’t the problem its getting the dxg to slt
Thanks

Posted: Wed Apr 19, 2006 8:34 pm
by Mr.Mouse
By the way, Extreme is absolutely right. The DXG files look to be binary SLT files. The similarities are right there. It should be possible to convert the DXG2SLT.

Posted: Wed Apr 19, 2006 9:28 pm
by bruceatk
In MCM 2 they had an SLT(ext) and SLB(inary) files. I believe the DXG is an SLB with more capabilities.

Bruce

Posted: Wed Apr 19, 2006 9:52 pm
by Kamshaft
Mr.Mouse wrote:By the way, Extreme is absolutely right. The DXG files look to be binary SLT files. The similarities are right there. It should be possible to convert the DXG2SLT.
Awesome! Then we'll be able to add our own object to the game! yay!

Posted: Thu Apr 20, 2006 5:43 am
by Mr.Mouse
Well, I'mnot saying *I* could write a converter,I'm just saying I see there's similarities that should make it possible, theoretically. Bruce's comment however makes it more difficult, as extra capabilities are unknown to me.

There are more coders out here though, perhaps anyone can give a shot at creating a converter.

I'm not really that much into graphic formats, others should perhaps qualify more?