Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

CMP export/import

Here you can find the postings on the different editing utilities found for Freelancer

Post Wed Jun 25, 2003 5:01 pm

CMP export/import

Hi All,

I'm currently fiddling a bit with the CMP files. I'm following thetips given by HCl, but get stuck somewhere. I'll try to explain:

Ok, I wrote a small prog to read the CMP file, specifically, the VMeshData block;
It seems that I get the headers correctly, then the triangles alright, but the vertices data looks bad. I use the dralthi example, imported it into milkshape, exported it to ms3d ascii format, and try to compare the output of my prog to the dralthi.txt.
This way I can check the functionnality. But I got different values for the vertices.

edited;

Ok, some more explanation;

I start by reading the UTF header,
then follow the nodes until I catch a VMeshData node;
then I read the header (16 bytes), then the mesh header (12 bytes), then all the triangles (got the number frommesh header), then i'm supposed to find quuite a lot of floats, 8 for each vertice. There comes the problem. The values found here are quite different from what is in the dralthi ascii file.

Any idea ?

Marc.

Edited by - marc on 25-06-2003 18:15:24

Post Thu Jun 26, 2003 1:27 am

It sound like you are reading the header, then one mesh, then trying to read the triangles for that mesh. It doesn't work that way. You have the header, then all the meshes together in the mesh segment (as many as the header specifies), then all the triangles together, then all the vertices.


[[iEx Turbo Modestum[[/i

Post Thu Jun 26, 2003 6:43 am

Reven,

No, i wasn't that. I just found that there is a multiplier to apply. 92 looks correct for the example.
It was so simple I didn't even tought about it...

Thanks;

Post Thu Jun 26, 2003 6:58 am

Ok, then,it's working
Well sort of.
The prog works fine with the dralthi example, but exhibit strange result with other models. The corellian corevtte is funny, and the li_elite makes ms3d crash when loading

More work to do




Edited by - marc on 26-06-2003 07:59:58

Edited by - marc on 26-06-2003 08:00:36

Return to Freelancer Editing Utilities Forum