Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Donations
Monthly costs: -50€
Income (ads): +25€
Donations (last month): +0€

Current balance: -65€
(last updated 2013/05)

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

Thanks!
Collapse/Expand Random Image
Collapse/Expand Poll
Would you be interested in Star Citizen modding?
Yes.
No, not interested in SC mods/modding.
No, not interested in SC in general.
Total Votes: 278
3 Comments
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Twitter
Collapse/Expand Who's Online
21 user(s) are online (15 user(s) are browsing Forum)

Members: 0
Guests: 21

more...
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 93 users playing Freelancer on 85 servers.
May. 25, 2013

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post

« 1 ... 19 20 21 (22) 23 24 25 26 »


Re: .obj -> .sur converter
Home away from home
Joined:
2008/6/2 10:17
Group:
Registered Users
$$$ Supporters $$$
Senior Members
Posts: 1740
Offline
Schmack, yes would you please explain what this setting does "Only use the outer convex hull as collision mesh"?

I'm not clear on it yet either. Thanks

Posted on: 2011/11/8 22:02
"C" for "Caterpillar"... "Cool"... "Cheesey"!
Report Top
Re: .obj -> .sur converter
Just can't stay away
Joined:
2010/2/17 20:45
From Germany
Group:
Registered Users
Senior Members
Posts: 292
Offline
I think it does the following (based on the comment that it's good for small objects):
If you have a small asteroid and you use automatic hull generation of it (just by not creating a convex hull by hand), only the outer, convex hull that every sur file has (normally used for detection of the sur) is used for the collision.
Means: Autosplice creates a lot of single sur meshes. The convex hull around it just "overwrites" these single sur meshes. Means you just have 1 convex mesh, wrapping the whole model.

Posted on: 2011/11/8 23:32
SUR Tutorial Beginning
Open in new window
Report Top
Re: .obj -> .sur converter
Home away from home
Joined:
2008/6/2 10:17
Group:
Registered Users
$$$ Supporters $$$
Senior Members
Posts: 1740
Offline
Thanks Skotty,

OK so this is the "shrink-wrap" single-part surs the old exporter made then?

Posted on: 2011/11/9 3:23
"C" for "Caterpillar"... "Cool"... "Cheesey"!
Report Top
Re: .obj -> .sur converter
Just can't stay away
Joined:
2010/2/17 20:45
From Germany
Group:
Registered Users
Senior Members
Posts: 292
Offline
Thats a good comparison. You just have 1 convex mesh around the model.

Posted on: 2011/11/9 14:23

Edited by Skotty. on 2011/11/9 14:29:18
SUR Tutorial Beginning
Open in new window
Report Top
Re: .obj -> .sur converter
Home away from home
Joined:
2008/6/2 10:17
Group:
Registered Users
$$$ Supporters $$$
Senior Members
Posts: 1740
Offline
Got it, thanks.

Posted on: 2011/11/9 17:40
"C" for "Caterpillar"... "Cool"... "Cheesey"!
Report Top
Re: .obj -> .sur converter
Quite a regular
Joined:
2008/8/14 5:45
From Fusion's Forge and Factory, Valdez UV
Group:
Registered Users
Posts: 105
Offline
If this has already been discussed, My apologies.

I have been using the msConvexTool.dll for convex surface creation recently, the only version I could find(The ver w/the popup window) and I have a question for your program. I always check the box for static for each group that was made by the convex tool, and use automatic on all. Does Automatic mean XYZ of the center of the model, (root) or does it refer to the XYZ=0 of each group made?

Fus

Posted on: 2011/11/20 7:39
Proud Member of Team [RIP] www.ripteam.com
Open in new window
Report Top
Re: .obj -> .sur converter
Just can't stay away
Joined:
2010/2/17 20:45
From Germany
Group:
Registered Users
Senior Members
Posts: 292
Offline
It is always the center of each single group.

Posted on: 2011/11/20 12:41
SUR Tutorial Beginning
Open in new window
Report Top
Re: .obj -> .sur converter
Quite a regular
Joined:
2008/8/14 5:45
From Fusion's Forge and Factory, Valdez UV
Group:
Registered Users
Posts: 105
Offline
Quote:
Skotty. wrote:It is always the center of each single group.


TY Skotty. If that is the case, if I want the XYZ=0 being the center of the sur model and not each group, what settings should I use? I use the setting of groups=1 in the CMP exporter, and want to make sure that XYZ=0 of the sur file's model is the same.

Side thought:
If I export cmp group=1 and use multiple groups to make the convex shapes for my .sur that gets exported to obj, even tho I label each group name the same as it's source with the _lod1 extension instead of the _convex that gets defaulted to, Do I have to regroup all my sub-components into one group before the export to obj? Or can I leave them as is?

Fus

Posted on: 2011/11/20 23:02
Proud Member of Team [RIP] www.ripteam.com
Open in new window
Report Top
Re: .obj -> .sur converter
Just can't stay away
Joined:
2010/2/17 20:45
From Germany
Group:
Registered Users
Senior Members
Posts: 292
Offline
The best way to use Schmackis sur conveter is in combination with P1p3rs CMP exporter, because both use the same center point calculation. If you use the old CMP exporter, the standard center will be 0. Schmackis sur converter won't move any part, so just leave it where it is.

For the sur, leave EVERY convex group single. Just give all sur groups that belong to the same CMP group the same name.
You have to name the sur group exactly like its cmp group, so everytime add the _lod1 to the end (like you can read them out of your FIX file).
If you use multiple sur groups for a non root group, it may happen that the group gets another center point for its "secundary" group (= the group of the destroyed, cutted off part). In this case set the manual center point of the FIRST sur mesh entry of this group with the negated value of the FIX value of the CMP group. The manual center override will always be added to the automatic center, no override.


It may be that I didnt answer your question on a way you wanted. I really have some problems understanding your questions.

Posted on: 2011/11/20 23:38
SUR Tutorial Beginning
Open in new window
Report Top
Re: .obj -> .sur converter
Quite a regular
Joined:
2008/8/14 5:45
From Fusion's Forge and Factory, Valdez UV
Group:
Registered Users
Posts: 105
Offline
Quote:

Skotty. wrote:
The best way to use Schmackis sur conveter is in combination with P1p3rs CMP exporter, because both use the same center point calculation. If you use the old CMP exporter, the standard center will be 0. Schmackis sur converter won't move any part, so just leave it where it is.

Sorry I can't do that. Pip3r's .dll files don't show up in my File/Import or File/Export of my MS3D 1.8.4, So I have to use CMP export 0.2 and Import 2.7.

Quote:
For the sur, leave EVERY convex group single. Just give all sur groups that belong to the same CMP group the same name.
You have to name the sur group exactly like its cmp group, so everytime add the _lod1 to the end (like you can read them out of your FIX file).

I do.
Quote:
If you use multiple sur groups for a non root group, it may happen that the group gets another center point for its "secundary" group (= the group of the destroyed, cutted off part). In this case set the manual center point of the FIRST sur mesh entry of this group with the negated value of the FIX value of the CMP group. The manual center override will always be added to the automatic center, no override.


Now you lost me. Huh? My CMP's don't have a Cons/Fix node cuz I use the groups=1 default in the CMP exporter. (See SS)

Fus

Attach file:



jpg  Ms3d-CMPexportdefault.JPG (44.76 KB)
343_4ec9aa81d7b42.jpg 848X617 px

Posted on: 2011/11/21 1:34
Proud Member of Team [RIP] www.ripteam.com
Open in new window
Report Top
Re: .obj -> .sur converter
Home away from home
Joined:
2009/9/28 21:13
From Wales
Group:
Registered Users
Senior Members
Posts: 816
Offline
This just get's more confusing all the time.

Posted on: 2011/11/21 1:58
Report Top
Re: .obj -> .sur converter
Just can't stay away
Joined:
2008/7/8 21:15
From Germany
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 292
Offline
Well, imagine then how confusing it was developing that tool for FL

@Fusion: The problem is: If you have a different polygon count than the original model (which is usually the case), you can get a different center point for all groups as whole. You would have to make sure that each center of the group of the model for the .sur file is on the center of the corresponding group of the real model. If you used the convex tool for each group and didn't move them, then you can just move your collision model so that the center point for all groups as whole (meaning the center point of the model) is on the center point of your real model. Usually that also is the case then so you don't have to change a thing. Automatic calculation of my tool will do the rest.

We really need a tutorial for this, I hope Skotty has the time for it anytime soon are someone else is willing to do this.

Posted on: 2011/11/21 9:04
Report Top
Re: .obj -> .sur converter
Home away from home
Joined:
2008/6/2 10:17
Group:
Registered Users
$$$ Supporters $$$
Senior Members
Posts: 1740
Offline
Hardpoints that are included in vanilla sur files should be included in the sur file if they are fitted to your model. If not then you will risk having intermittent crashes during combat if one of them is hit.

These are:

HpCloak01 (-xx)
HpCM01 (-xx)
HpMine01 (-xx)
HpMount
HpShield01 (-xx)
HpThruster01 (-xx)
HpTorpedo01 (-xx)
HpTurret01 (-xx)
HpWeapon01 (-xx)

Hardpoints represented by the usual triangle only and not having a hardpoint sur mesh will generate the following message during the conversion:
"Warning, no matching vector pair found! Adding new Triangle Group."

Here below is an .ms3d file of vanilla hardpoint meshes, to normal vanilla FL scale.

Here is how to use them:

After exporting your model .cmp file, merge this hardpoint sur meshes file with your model in MilkShape, and save it as a new .ms3d filename so you don't overwrite your model file, in case you need to make another .cmp file. I usually add "Surs" to the end of the filename, e.g. "myNewShip.ms3d" and "myNewShipSurs.ms3d".

Make your model groups convex by selecting the ones you want and using the ConvexTool, then move each new convex mesh above the original group to maintain your group and hardpoints order. Ensure that the convex mesh name now has the same name as the original group and with "_lod1" suffix, and delete the original group. Do this with all the new convex meshes.

Then move each hardpoint Sur mesh you need to the place of the triangle representing your hardpoint, rename it to the same name as your hardpoint, and delete the original hardpoint triangle. The hardpoint meshes must be named "HpThruster01" etc, and must NOT have any "_lod1" suffix.

You can resize the sur mesh to suit the weapon or equipment that it is covering.

You can also make your own hardpoint sur mesh if you prefer, just be sure it is entirely convex and very simple.

Copy the same hardpoint mesh shape for more hardpoints of the same type.

Delete hardpoints in your model that aren't in this mesh file, because they don't need sur meshes, e.g. HpEnginexx (the engines use the sur shapes for the engine groups).

Finally, delete any hardpoint meshes for hardpoints that you don't have in your model,e.g. HpCloak01, HpMine01, HpTurret01 etc.

Save again and export your .obj file, then use the obj-sur converter.

Attach file:


zip Hardpoint Sur Meshes.zip Size: 5.19 KB; Hits: 39

Posted on: 2011/12/30 4:42

Edited by StarTrader on 2011/12/31 19:14:46
"C" for "Caterpillar"... "Cool"... "Cheesey"!
Report Top
Re: .obj -> .sur converter
Just can't stay away
Joined:
2008/5/28 21:00
From Muncie, Indiana, United States
Group:
Registered Users
Senior Members
Posts: 249
Offline
He he, way ahead of you there, StarTrader.

Posted on: 2011/12/31 4:47
Report Top
Re: .obj -> .sur converter
Just can't stay away
Joined:
2010/2/17 20:45
From Germany
Group:
Registered Users
Senior Members
Posts: 292
Offline
I attached a hexed version of Milkshapes Convex Tool. It doen't add _convex but _lod1 to the end of the convex model. Its standard polycount is 256 instead of 1024.

Attach file:


zip msConVexTool_lod1.zip Size: 17.05 KB; Hits: 41

Posted on: 2011/12/31 12:32
SUR Tutorial Beginning
Open in new window
Report Top
« 1 ... 19 20 21 (22) 23 24 25 26 »