CMP to SUR Conversion Tests
-
Thank you very much guys, appreciated.
BW - its hard to tell on a fighter like this one. The problem will come on large ships where the missed part could be the size of a base.
So it is important to find out what is causing this problem - remember Bbalazs had it too.
If it is the knife edge then of course we can avoid this in a model, or if it can be done by the builder, to set a minimum sur thickness of 0.1 unit (10 cm) at any single-vertex point, then that would fix it every time for everyone.
Get LS back on his head one last time
Many thanks again guys.
-
If it works then there is nothing wrong with it.
-
When I make an automatic shed-building machine I wonât be happy if it leaves the door off, even if it is only now and then.
There are bits missing from the sur files, BW.
Not only from this model which is not important, but from BBalazsâ blooming great landscape. So it is a common problem, and the cause needs finding.
As I already said, in a small 5 metre ship itâs no deal.
BUT on a 3,000 metre dreadnought ship a missing hole 200m is a BIG problem.
Give me an ear here, I am not being pedantic just for myself - I know the use this is needed for, it is VERY important to FL modders, but it is not 100% done just yet.
Thanks for understanding, I realise you may not have the knowledge to find it, and like I said before many times I am not criticising, but on the contrary I am very grateful to you for your work.
But please talk to LS or others and try to make this perfect as possible, we have far too many 90% utilities where we need to know the âget-roundsâ to avoid many hours lost.
Thanks.
-
I am not ignoring your report, StarTrader, but ⌠I think that you are trying to do something that you should not.
The fact that you are able to make a CMP that fools the SUR Builder does not mean that there is anything wrong with the SUR Builder. It simply means that you should use another tool, such as splicing together some cylinders.
If the SUR works in-game, and is vaguely near the correct size, then it is âgoodâ. A SUR is not supposed to look like the model.
You did not show a picture of your SUR, but it looks very much like the ship, which is above expectations for the SUR Builder:
Remember that a SUR is the computerâs view of the hit and collision area of a ship. In general, that should be a rough ellipsoid:
The fact that the SUR Builder is capable of making close-fitting SURs is great, but SURs should NOT look identical to the CMP. A SUR should look like a rough blob made up of a minimal number of polygons.
-
Ok, i also checked Bbalazs landscape. No bad geometry on first view, Fl-SurBuilder created 5 groups but left out the big plane. So the âerrorâ must have been there. I tessalated a few more faces into it and âvoilaâ, you have a proper sur. See the attached file.
So, yes, the surbuilder isnt perfect. But differently ânot perfectâ. It is building the sur on a part when the geometry is ok and enough polys are there. The bad thing is it just stops when it encounters a geometry on a part that it cannot handle and dont says nothing about. So you have to dig into it and look at all parts where no sur is build and find the reason behind. Bad thing about this is also that you dont know about the order it does that. So when it stops on a part which it cannot handle, you dont know which part that is and therefor also if the following parts are ok.
Basicly telling here, that it would be cool if the Sur-Builder would do at least a check if the amount of groups in the .cmp matches the amount of groups in the .sur and giveout a warning. Same on the order of building up the sur, if it tells you where it was on building up and it stumble, it makes it just way more easy to identifiy the part and fix it.
just my 2 cents
But again, THANK YOU Lancer & Bullwinkle for such an amazing tool, it just save a a hell of a lot time.
Slight hint : tell them that leaving out parts of the sur is a feature not a bug. M$ does the same.
cheers
CURSOR -
cursor wrote:
it would be cool if the Sur-Builder would ⌠check if the amount of groups in the .cmp matches the amount of groups in the .sur and giveout a warning. Same on the order of building up the sur, if it tells you where it was on building up and it stumble, it makes it just way more easy to identifiy the part and fix it.Thank you for that report, Cursor, and for completing the answer to BBalazâs question.
(also thank you to Schmackbolzen for giving BBalaz a working SUR)
I will look into the possibility of reporting mismatches in the number of groups. I am not sure whether it will be feasible to flag where a mismatch begins, because I am not sure the program will know that. But I will look into both for a future version.
Thanks!
-
iâm not sure to understand correctly so donât hesite to correct me please
from now and if we want to use the sur builder, we have to redo a cmp with x groups ? right ?
so to use the sur builder we need a very good knowledge on the cmp format and uses of milkshape, import/export freelancer model, eventually in rebuilding a mat file alsoso clearly itâs not a ânoob toolâ if i can say, no ?
understand me well, i spent, spend and will spend a loooooooooooot of hours making sur, the most perfect i can in 3dsmax
for who donât know iâm working on TOW, overfiend and me have done the hitbox, so i know how itâs hard to deal with those devilsso iâm very gratefull for all the work you can do but in my mind the tool is in first, done for all who donât want to take a loooong time to learn how the sur works
therefore ideally, noob wants to launch the tool, select the ship/base, choose betwen bubble or wrapped and clic âmake a surâ
believe me, i really appreciate any initiative to put myself unemployed
thank you to enlighten me
-
Mirkha wrote:
ideally, noob wants to launch the tool, select the ship/base, choose betwen bubble or wrapped and clic âmake a surâGood question, Mirkha!
Actually, the SUR Builder is very good for novices. It needs some work on the user interface so that it will be more obvious, but the default single-part SUR is a good approximation for most purposes.
The only time that you need to create your SUR in groups is when you want to make a multi-part SUR (shrink-wrap). And the most common case when you would want to do that is for a station. Or perhaps for BBalazâs very cool terrain.
Sometimes there might be a purpose in a shrink-wrap SUR for a capital ship, but it would be the exception rather than the normal case.
Instead of creating a bubble-shaped SUR, the Builder wraps the outline of the model:
For most purposes the single-part SUR is an excellent compromise between bubble and shrink-wrap (multi-part). And it is the default, so just open your model and build the SUR. Two button clicks!
-
guess i have to disagree slightly with mirkha though it might have something to do with differences of experiences. fortunately gentlemen from TOW actually have figured out the cmp file structure and shared their knowledge. everyone who is used to basics of modding and usage of e.g. the utf editor and the model importers and exporters, can quickly deepen his knowledge of models in a way he can create qualities far above the expected possibilities of the old engine. i mean now models with hundreds of thousands of polys, LODs, wireframes and of course, surs. the sur builder is likely made for and nearly only good for small ships and solars as in many cases splicing a model into model parts is not worth the result. of course, such splicings could also be used for breakable parts and stuff like that but if we talk about efficiency, there is a safe way and it is called sur_splice. use a huge model and run the builder above it and you see what i mean. the amount of sur polygons is far too high and lets ignore that some pcâs get stuck for hours due to its resource consumption. yes, the splicing method has its issues and especially on large ships this might become very annoying while on small ships you can use the sur builder. maybe the splice codec has to be updated to the current knowledge of the sur file format. together with the sur builder these two would be the source of surs for every mod.
honestly, we wonât get a proper automatic sur creation tool. there will always be a model that will be surred differently than the artist wishes, if we talk about large models. we need a possibility to model surs ourselves making them working surs (isnât it here in that topic, a geometry to sur converter in development?). the sur builder should be more a solution for minor unimportant works and/or lazy asses but not the main solution of sur creation. -
thanks Bullwinkle, but in my case, star wars ships, i assure you that for the moment one group sur is not good
imagine a x-wing or a tie like this :at the left the actual model done with the surbuilder and at the right by hand, done by Overfiend for TOW
so what i call ânoob toolâ is what is the tool ok, but doing the right one without any milkshape manipulations
-
Gisteron wrote:
-
the amount of sur polygons is far too high and lets ignore that some pcâs get stuck for hours due to its resource consumption.
-
honestly, we wonât get a proper automatic sur creation tool. there will always be a model that will be surred differently than the artist wishes
In general, YES, that is exactly my point, Gisteron.
Two minor details:
-
The default Single-Part SUR created by the SUR Builder uses far fewer polygons than Multi-Part. Single-Part SURS should be a good compromise for most purposes â both novice and expert.
-
We will not get a PERFECT automatic SUR creation tool. But I think that the current SUR Builder does a âproperâ job for most purposes.
-
-
Mirkha wrote:
thanks Bullwinkle, but in my case, star wars ships, i assure you that for the moment one group sur is not good
imagine a x-wing or a tie like this :Your pictures do not display, Mirkha. You might try attaching them to your message.
However, I know what an x-wing and a tie fighter look like, so I can imagine what the single-part SUR would look like. And, from the computerâs point of view, I can tell you that the single-part SUR will be just fine.
You are looking at this the same way that StarTrader is; from a human POV. And that is simply not the intention of a SUR.
A SUR is the computerâs Point of View, and the computer does not care what your shipâs wings or accessories look like. The only thing the computer cares about is a blob in space that is quick to calculate. Hits are very approximate, so the precision of the SUR is unimportant.
If you want your wings to be blown off, then you will need to create your CMP in parts. In that case, a multi-part SUR will be fine.
But the single-part SUR is more than sufficient for the vast majority of models.
EDIT: A single-part SUR would even be OK for an Imperial Cruiser in most situations. An exception might be if you want to be able to destroy the shield generator bubbles behind the bridge, then you might want to create a multi-part CMP and SUR.
Another exception would be if you want to be able to land on the rear of the bridge superstructure (as Han Solo did in the Millennium Falcon), then you might want a shrink-wrap SUR.
Otherwise, the only thing that matters is that you can hit the SUR with your weapons and you bounce off if you get too close.
-
so here : http://img256.imageshack.us/img256/5662/tiecomp.jpg
for fighters youâre right i agree, the combat mod in freelancer is not really accurate ⌠we always try to shoot the center of the ship
but i think also about the capships,http://img101.imageshack.us/img101/9498/nebbcomp.jpg
the same, at the left with surbuilder and at the right by hand
excuse me, but for me human or computer pov doesnât mean anything
the only point of vue i can take in consideration is the players point of view
and the players want to flight near a capship, to be âcloser to the actionâ if i can sayand i donât talk about who want to fly through a base
http://img138.imageshack.us/img138/3397/depotcomp.jpg -
Mirkha wrote:
to fly through a baseMaybe ImageShack is down⌠your pictures still are not working.
However, as I said in my edit above, a single-part SUR is adequate even for an Imperial Star Destroyer, unless you want to land on it. Remember, a Star Destroyer has a shield, so the actual âhit boxâ is a bubble shape!
If you want to have more detail, then you can have it. It just takes more work, to make your CMP in groups.
Either way, the SUR Builder is easy to use (or will be somewhen).
As for flying through a base, yes, that is a case where you will want your CMP in groups and you will want a multi-part SUR. It is an âadvancedâ model, but it can be done (and has been done).
-
The sur builder requires a minimum of 5 vertices to even attempt to build a sur. You might get one out of 4 vertices if your lucky. It is due to the way the convex hull routine is madeâŚ.
-
Bullwinkle wrote:
Remember, a Star Destroyer has a shield, so the actual âhit boxâ is a bubble shape!no, in SW, the shield is a projection between the atoms of the hull
as you can see in the Empire Strike Back, the millenium falcon is able to pass very close to the isd and stick to it
for exampleanyway i have my answers, thx
-
Mirkha wrote:
-
in SW, the shield is a projection between the atoms of the hull
-
as you can see in the Empire Strike Back, the millenium falcon is able to pass very close to the isd and stick to it
-
OK, that is consistent with some of the action in Star Wars, such as shooting off turrets and shield generators. Cool.
-
Yes, that is what I meant by âlanding on the back of the superstructureâ. As you say, that effect would require a close-fitting SUR.
-
-
LancerSolurus wrote:
The sur builder requires a minimum of 5 vertices to even attempt to build a sur.I assume that you mean 5 vertices per group? That might explain the leading tips of StarTraderâs Goran Wings.
Thanks, LS, I will add that to the documentation.
-
OK, stop, forget all of the above bloody nonsense!
I have made many tests including remodelling my ship more than 30 times, but we donât need those.
Itâs not to do with the ship. It fails to generate sur parts for boxes too. (And Bbalazsâ model had no sharp shapes either, all soft spherical).
Here is the problem better definedâŚ
1. From 14 simple box shapes with 8 vertices each, only 6 boxes had surs made! This is the problem that needs fixing.
2. Secondary issue: The fin of the Goran test ship as you may remember, the forward vertex of the base is missed when the sur part is generated. The fin base is open but the wing ends were also open and those were generated correctly.
That is not a modelling problem, it is sur builder not reading all vertices, and this could be part of the 1st problem.
3. Bullwinkle, I have had it with you, donât offend me any more, you have done that enough already and Iâm really not a nice guy when I am goaded to the limit.
I am not trying to fool the tool, I need to understand why something happens, and I go to great lengths to get to that, instead of pooh-poohing it as STâs or someone elseâs whims because I am so overproud of the little that I have done and donât want to do more, or donât like the thought that something I have made isnât 100%.
LS got the sur builder to where it is and it needs a little more debugging. Why ruin it for him and everyone else too?
Sur Builder does have a fundamental problem and it took some defining, because I was foolishly over-convinced that it was a problem in the model.
There is a formula / calculation problem in Sur Builder. It does not generate surs for certain simple boxes, dependent on where they are located in respect to the Origin.
So either get some help to fix it or dump it to someone else who is prepared to put in the effort, and stop trying to shift the focus on to me, I can simply throw the towel in and find better things to do with my fing time than play "dodge the sht" with you.
You seem to want to do the absolute minimum. That is not acceptable if you have taken on this project for everyone.
And as for telling them itâs the way they are doing it, or âthey donât need itâ?
Bullshit!
Donât want it /canât be bothered? Give it to someone else who can and will, so others can get the benefit of a good tool.
A box sur around a small ship is fine, the distance from the hull is minimal. But on a huge ship of thousands of meters, the detection will be hundreds of metres away from the hull and that is not acceptable.
You seem to not want to understand that the problem is a huge problem for big ships when the sur builder makes surs with F*ing great holes in the detection. It will be useless as a tool. Get your head around it.
Thank you.
â------------------------------------------------
Files attached below.
Once Sur Builder can generate the sur part for every box in this file it should be able to generate for every shape too.
Note - I have not tested for vertical position of shapes, there may be room for testing that too.
-
It also fails with âfat triangleâ shapes too - I use a box with two corners welded together to make one. Those have 6 vertices each.
And again it depends on which side of the centre-line that the shape is on.
So there could well also be similar problem in vertical position of shapes too.