Erik's Zeug

Freelancer - .SUR Creation

#4 - Example: Multi-Part Fighter

Of course, to learn something you need practical situations to use it!
In this case, we will create a new, a bit more accurate .SUR for the Rheinland Heavy Fighter - Valkyrie.

<Picture Not Loaded>

Preparations

Example Files Download

To begin, we need to import the fighter's model with hardpoints! Remove all uninteresting hardpoints (HP_RunningLight, Dp_Whatever), just keep those that need a collision mesh (weapons, shield).

<Picture Not Loaded>
Full View

As teached here, try to cut the ship into pieces to the shapes you want. Because we don't need a very accurate physical model here, it will be enough to cut Root into 3 main components. I also cut those weapon platforms so the convex model of Root won't cover the hardpoints there. For the tail I removed those weapon platforms, because they are so small, nobody will notice.

<Picture Not Loaded>
Full View

For the hardpoints I used cubes of 1*1*1 in size. Place them where your hardpoints are, remove these little hardpoint-triangles and rename your cube to the particular hardpoint.
The tail's hardpoints will collide now at its sides and they can be shot without any obstacle.

<Picture Not Loaded>
Full View

The next step is to make the .SUR meshes convex as shown here. The Convex Tool added endings to every new, convex mesh. You must remove those endings of every hardpoint so their names are identical to those in your .CMP.
I also recommend to sort all parts on a logical way, means: child parts below parent parts.

<Picture Not Loaded>
<Picture Not Loaded>
Full View

Converting

Now export the convex model to .OBJ and open Schmackbolzen's .OBJ to .SUR Converter. Load the file and set all static parts to Static, all hardpoints to Hardpoint. In this case, we will make the Valkyrie's wings Static, not moveable (since the animation is never used and we wouldn't collide as said here).

<Picture Not Loaded>

Now we need to find out what mesh/part belongs to what. For this, open the Valkyrie's .CMP and take a look into the FIX and REV file. As you will see, every Static object is parented to Root, so we don't need to change anything (blank means Root). But some hardpoints are parented to the wings and some to the tail. To find that out you can use for example the HardCMP Editor.

<Picture Not Loaded>
<Picture Not Loaded>

Time to convert the model!

<Picture Not Loaded>

After taking a close look we see a little mistake.
This is because the Valkyrie's wings have an offset. In this case you can find it at Origin (REV, PRIS), because the wings are meant to be animated. Everything in the FIX uses Offset. But in the end, there is no difference!

<Picture Not Loaded>

To solve this problem, do what I already explained here (point 5). Take the offset values and negate them. So they should look, for example, like this:

<Picture Not Loaded>

Now that you did this for both wings, it is time to convert again.

<Picture Not Loaded>

And voilá, it looks exactly as we want it!

That's it. All the magic to create the "perfect" SUR for your ship and every other object.


Downloads:
Last Update: 2016-04-16