Ship dimensions
-
I am looking at a variety of balance issues, especially with regard to physical ship dimensions. Basically I really need the length, width and height of a ship’s hitbox at its biggest point, represented in meters. Eventually I would like to get the volume of a ship’s hitbox as well, but that is not as important.
I was already told that this data is not stored in the model, and I am kind of lost on where to start looking for data that can be turned into a usable format. Some kind of size data must be stored with the models for the game engine to render, but I dont know what the values are, where they are stored, how to extract them, … or what other questions need to be asked.
Any ideas or pointers would be appreciated. Thanks in advance
-
The link should take you to a download for FL Model tool, it’s for resizing CMP files and the Sur files (hit boxes?) if i rmember correctly it also lists model dimensions during the resizing process.
http://the-starport.net/freelancer/download/singlefile.php?cid=2&lid=2618
CK256
-
Freelancers units are always 1 meter. 1 Unit in any system file is 1 meter. Every unit in every modeling program is 1 meter. Knowing this you can find out the exact sizes of a ship.
-
Okay this is good info.
I looked at the SUR data with the FL model tool in the first reply and am a little overwhelmed by the data dump. Also did some more research and the math required to calculate volume of a 3D model from triangles seems pretty intense. It also requires that the model be fully closed, which is not the case with many of the models.
Now that I know the numbers are meters, it seems like a pretty easy thing to get dimensions by adding and moving hardpoints. IE, wingspan, nose-to-tail, etc, can be determined by adding hardpoints and manually recording the offset. Once I have that data I can make oblong spheres for consistent relative size.
Not something that can be automated right away, but at least its a usable technique to get a basic shape. And if I add reference hard-points to each model, then it probably can be automated.