Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Random Image
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
54 user(s) are online (20 user(s) are browsing Forum)

Members: 0
Guests: 54

more...
Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +5€
Donations (last month): +10€

Current balance: -300€
(last updated 11/2017)

Please make a donation if you want to help keeping The-Starport online:

Bitcoin address:
Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 61 users playing Freelancer on 29 servers.
December. 11, 2017

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post



SURs - How to: #3 - The .OBJ to .SUR Converter
Just can't stay away
Joined:
2010/2/17 20:45
From Germany
Group:
Registered Users
Senior Members
Posts: 468
Offline



.OBJ to .SUR Converter - How To:

#3 - The .OBJ to .SUR Converter



To use all things I told you about we need to know the Converter first. Understanding the way it works gives us the opportunity to do everything you just read about.
Here is the summary of what important things are doing what:

Open in new window


1

Theoretically you don't have to change anything here.
The only checkbox of interest is "Bind to none instead to root". You must use this when using a .3DB model that doesn't has any groups (and of course all SUR meshes are parented to Root).


2

All equipment (weapons, countermeasures, shields etc.) hardpoint names should be added here if there is no SUR mesh definied! One per line.
To prevent possible crashes, always add HpThruster01, HpCM01 and HpMine01 here, if used.
Equipment here will not suffer damage from guns. Just explosions will harm them (general behaviour of equipment without SUR group).


3

Here you can enter coordinates where the center of your ship is. This affects the crosshair if you target the object. NPCs always use this coordinate to fire on, too.
Just manually enter this value if your objects center (for example Tradelanes or Kusari Destroyer) is outside of the hull (or NPCs/players will aim into space).


4

Here you can check what type of SUR group each mesh is. All checkboxes clear means it is Root.
All Root meshes will get merged into one big object (the name is of no interest here).

In general, all meshes sharing the same name will be merged into one group!


5

Each separate group has its own center. By default, it gets calculated by the so called "bounding box".
If the CMP is using offsets in the FIX, PRIS or REV (highly recommended! This position is always the central point a separated/animated group is rotating/moving around!), you will have to define the center position of your SUR group by hand. To do this, add every single offsets of your groups parent and its parent etc. and finally negate the values and use those here.

This works best when using P1p3rs Milkshape CMP Exporter (recommended!).
If you use the old CMP exporter and you didn't created offsets in the FIX, PRIS or REV, use 0, 0, 0 here.


6

Here you can select the parent of the SUR group.
Do never use this to create a single group consisting of multiple meshes! All meshes using the same name will be merged automatically to one group.



If you merge multiple meshes of the same name into one group, the Center and Belongs To of the first one will be used always!


Tips, Bug Workaround And Known Bugs

To improve readability for yourself you always should sort all groups and hardpoints in Milkshape so it looks similar like in the screen above. This could avoid mistakes made by you.

The Converter is still not perfect since the SUR format is still not perfectly copied by Schmackbolzen.
There are two major bugs:

  • Moveable groups must be always on the bottom of the list or it will randomly transforms meshes of separate groups to Root.

  • Do not use Moveable groups consisting of multiple meshes. Belongs To could help, but is not recommended.

In rare cases a SUR can be bugged (means, sometimes you can fly through parts of it). Try to change meshes of your SUR a bit (change position, resize just a little, create new convex model etc.) This could help.




Any questions? Ask!

Alternative links to P1p3rs Milkshape CMP plugins (mirror uploaded 8. November 2012):
CMPImporter.dll
CMPExporter.dll

Posted on: 2012/11/8 0:16

Edited by Skotty. on 2012/11/8 0:24:53
Edited by Skotty. on 2012/11/8 0:37:50
Edited by Skotty. on 2012/11/8 0:40:09
Edited by Skotty. on 2012/11/8 0:42:33
Edited by Skotty. on 2012/11/13 15:49:44
Edited by Skotty. on 2012/11/19 20:16:18
Edited by Skotty. on 2014/8/26 16:21:31
How to create .SUR files - Tutorial
Top