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 vmesh format

The general place to discuss MOD''ing Freelancer!

Post Sun Mar 30, 2003 8:35 pm

CMP vmesh format

I have figured out some of the VMeshData format in the CMP files but am having some trouble with a section. I believe I have the indices and the vertices but I am not sure how the submesh groups work.
Has anyone else figured this out?

I can post what I have so far if anyone else is interested.

HCl

Post Sun Mar 30, 2003 10:09 pm

I'm finishing a document describing the VMesh format for upload tonight, should be ready in a hour or so. In case you're curious tho, here's the information i have on mesh chunks, taken from the document i'm writing:

mesh
{
dword materialID
word start_vertex
word end_vertex
word number_of_referenced_vertices (as before, number_of_triangles * 3)
word unknown (always 0xcc, may be a padding value, for dword allignment)
} = 12 bytes

(edit) corrected a small mistake

Mario

Edited by - HCl on 30-03-2003 23:10:27

Post Sun Mar 30, 2003 10:36 pm

or so ..

HCl

Post Mon Mar 31, 2003 2:30 am

LOL well, IM and friends barging in slow me down

It's up now tho, here

Post Mon Mar 31, 2003 3:10 am

Thanks.
I have all the data but I am having trouble when I draw the model using Direct3D. I get a polygonal mess.
Could you elaborate a bit on how to use this info to draw the mesh?

-dizzy

Post Mon Mar 31, 2003 4:37 am

HCL, do you by any chance know of a way to extract ship mesh's from the .TRE files from Privateer & Wing Commander etc?

- All we see or seem, is but a dream within a dream. -

Post Mon Mar 31, 2003 1:41 pm

I am building a model viewer for freelancer models. I have been able to display the tigershark and dralthi models uploaded by HCl. Any other game models do not display correctly. Am I missing something here?
Each vmesh in the CMP file is a different LOD for the ship correct? So if I only take the first vmesh for LOD 0 that should be the model with the greatest detail.
Is there any references I need to look at that references the meshes of the VMesh?
Any help would be appreciated.
Thanks.

-dizzy

Post Mon Mar 31, 2003 9:18 pm

Nevermind I think I figured it out.

-dizzy

Edited by - dizzy on 31-03-2003 22:18:24

Return to Freelancer General Editing Forum