.CMP file format clarification
-
The material CRC is a dword, the start vertex, end vertex and vertex count are all words, so the pad is used to bring the total to 3 dwords. It’s strange that the pad is 0x00CC, but there’s lots about FL that’s strange…
Mesh type and surface type go something like this:
if (!(mesh_type & 1)) Log( "mesh in old format" ) int get_face_count( int surface_type, int vertex_count ) { switch (surface_type) { case 0: return 0; case 1: return vertex_count; case 2: return vertex_count / 2; case 3: return vertex_count - 1; case 4: return vertex_count / 3; case 5: return vertex_count - 2; case 6: return vertex_count - 2; } return 0; } ```Why would you think the .3db timestamp is related to the exporter version? Run UTFXML with the timestamps option and you'll see.
-
Alright, so with surface type = 5, it doesn’t really make quads it just subtracts 2 from the vertex count and messes up the model, strange that case 6 is the same as case 5 rather than following the pattern and dividing by 4, but who said it had to make sense? Does Mesh type use this as well?
Yes you are right about the time stamps sorry, I assumed that Exporter Version was an actual time stamp for the model, don’t know why though, kind of silly now looking back at it
Great to get all this info, keep it coming guys, i still need to know what a sphere constraint does.
Any feedback for the CMP readme? A think it’s around 1200 words so far and haven’t gone into animation or the Part files
Ozed
Edit: Ok a couple thing I’ve come up with, that i don’t know what do:
First with hardpoints, what does the Axis node do?
What does the Offset do in the Revs node?
What does the bounding box do in VMeshRef?
With animations, does the Sc_end anim get played after every animation to return it to it’s original position? or is the animation to say open the bay doors played in reverse to close them?Ozed
-
Any feedback for the CMP readme?
Run it through a spell checker…
First with hardpoints, what does the Axis node do?
I thought it determines how the hardpoint moves, but after doing some testing for the hardpoint display in the UTF Editor, it doesn’t seem to do anything.
-
Run it through a spell checker…
Ha yeah i’ll do that once i get everything written down.
OK, the questions that i still need answering are:
What does sort of movement does the sphere node control.
What does the Offset do in the Revs node?
What does the bounding box do in VMeshRef?And their are a couple things that i have come up with that some will find interesting.
1. Their are several models that use/have FVF’s that aren’t standard, such as li_01_manhattan_cityscape.cmp and repair.cmp, they both have FVF’s of 0x212 and both contain 2 sets of UV coordinates. Note that manhatten has more vertex’s and tri’s in the 0x212 version when compared to the 0x112, but in repair the 0x212 version has considerably less vertex’s/tri’s.
2. In the animation nodes, the header’s types section doesn’t change from 1, whether rev or pris, with one exception. In Manhattan again, the one joint map that controls banner3 which is the only one which is under the sphere node has a type of 4. Furthermore, the header says it has 16 frames and an interval of -1 (variable frame timing) but the frames node has 80 lines, read that again 80! What does this mean, well there where 5 lines per frame, the one for the variable timing and the four controlling well i don’t know, four variable controlling movement, maybe, i don’t know. But the important thing is that the four lines is the same as the type value.
Ok i think that’s it…
Maybe some of that info will help other’s but i still need those questions answered that are above.
Ozed
-
2. In the animation nodes, […] But the important thing is that the four lines is the same as the type value.
Coincidence. It’s a bit mask - have a look at UTFXML\channel.cpp in the XML Project. I got distracted before adding this to the UTF Editor.
-
Looking at channel.ccp seems to back what i though that it effects the number of values for each frame, just that the number wasn’t an exact reflect-ant of the number of floats per frame. Anyway the questions that still need answering, and remember I don’t want to rely on adoxa for all the answers, are:
What does sort of movement does the sphere node control.
What does the Offset do in the Revs node?
What does the bounding box do in VMeshRef?
Are the values in the Axis rotate a decimal percentage of the measure written in the frames?
Does freelancer actually use the switch2 values for LoD switching, or are they just ignored for the value in the ini’s?Thanks
Ozed -
I’ve started this where I will place all of the stuff I decompiled out of the UTF format, feel free to add to it, I will link it in when I see the post.
http://digitalbrilliance.com/modules.php?name=Forums&file=viewtopic&p=3482#3482
-
Yeah sure i can help you out Lancer, but first i want to get at least the .CMP file format finished and hopefully shiparch.ini (shiparch should be a lot quicker than CMP since it is far more understood). Again guys going over everything (and there’s a lot) i am missing a couple extra things, all the stuff before and extra:
What does sort of movement does the sphere node control.
What does the Offset do in the Revs node?
What does the bounding box do in VMeshRef?
Are the values in the Axis rotate a decimal percentage of the measure written in the frames?
Does freelancer actually use the switch2 values for LoD switching, or are they just ignored for the value in the ini’s?
Mesh type, still don’t know what that does (sorry adoxa, understood surface though!)
The .cam node and everything that is under it, that is just the values for the camera when in cockpit mode right? Can you explain how they work?Lancer you can look at what i’ve got done for the CMP and find all the things you need to add to your site! Be warned, i haven’t done a spell check and some explanations will need simplifying but you should get the idea.
Ozed
-
Ha that’s all i needed for Mesh type!
the .cam files/nodes only exist in .cmp file that are used for cockpits, for example in:
DATA\COCKPITS\LIBERTY\MODELS\li_elite_cockpit.cmp
There is a node called “cockpit cam020620232716.cam”, which is the cockpits .cam node, in it, it has fovx, fovy, Znear and Zfar values and i need to know what these do.
Also looking at the manhatten cityscape there is a MaterialAnim node, i’m guessing this is a whole new can of worms, does anyone understand Material Animation?
So the question’s are:
What does sort of movement does the sphere node control.
What does the Offset do in the Revs node?
What does the bounding box do in VMeshRef?
Are the values in the Axis rotate a decimal percentage of the measure written in the frames?
Does freelancer actually use the switch2 values for LoD switching, or are they just ignored for the value in the ini’s?
Mesh type, still don’t know what that does (sorry adoxa, understood surface though!)
The .cam node and everything that is under it, that is just the values for the camera when in cockpit mode right? Can you explain how they work?Thanks
Ozed