CMP to SUR Conversion Tests
-
You are welcome, Forsaken.
I keep reading what I can find about SURs and I pick up little bits here and there, but I still find them to be half mysterious.
Also, there seem to be multiple schools of thought about what the builder should create.
If the SUR Builder needs more work (aside from the user interface) then my largest obstacle is in understanding exactly what might improve it. That is where I need help from those of you who use it.
If I could release the source then I would – this project could benefit from community review.
-
BW:
I thought you are working on resolving the problems with asymmetric sur generation with some models? e.g. the Klingon destroyer I posted earlier?
These are unusable surs, and we have seen them with several different symmetrical models, both small and large. I have rebuilt one of the models completely a couple of times but still get asymmetric surs for it - the ship has forward-swept wings, the left wing’s sur connects the left wing forward tip directly to the nose of the ship. The right wing’s sur is correct. So the ship looks like the Phantom of the Opera or Dracula from above, with its left wing holding a cape up to its nose!
So sur builder is not finished.
I will try to define that model’s problems more accurately for you and will post it up if I can find what in the model is causing the asymmetry in sur builder.
And yes I have been waiting for the darned thing since LS first revealed he was working on it, it is a very important utility for almost every FL modder.
I appreciate this is a spare-time project for anyone who takes it on.
But it’s many months of “just round the corner” for me and some others.
My verbal diarrhoea is a) to be explicit in describing my findings or queries, b) to clarify something for others, and c) to cover my frustrations with lack of progress and then with LS unexpectedly throwing in the bloody towel before the sur builder is finished.
I don’t think you would like my alternative-thoughts posts much.
So my digressions, are trying to keep some humour and at the same time indirectly egg you on to complete the darned thing without upsetting anyone too much.
If the builder’s problems will not be fixed, I am not criticising you for that, on the contrary I appreciate your abilities and your involvement and your efforts very much, and I fully understand that you may not know enough to fix the builder to where it is reliably producing good surs for more models.
- but I need to know so I don’t wait here any more for something that will not come, and I will go back to my old tedious frustrating manual methods.
At times like this I feel like that donkey, led along with a carrot on a string in front of his nose that is tied to a stick that is tied to the saddle on his back. No ROFL and no smiley for this one.
-
StarTrader wrote:
If the builder’s problems will not be fixed…
What problems?
I am not being facetious here… I really do not have any clearly defined problems to address (other than UI).
My understanding of the discussion that we had about the builder occasionally creating bad SURs was that the models were flawed.
If the SUR Builder handles the majority of models correctly, and only one or two need to be done by another method, then that is a good track record for an automatic tool, don’t you think?
If I do not understand correctly, then explain it to me again. Use screen shots, sketches, and/or listings, as appropriate. I will do my best to help you, but you need to explain what you want, in a way that I can understand.
Damn it, Jim, I’m a doctor, not a bricklayer!
(or something like that)
-
StarTrader wrote:
I have rebuilt one of the models completely a couple of times but still get asymmetric surs for it - the ship has forward-swept wings, the left wing’s sur connects the left wing forward tip directly to the nose of the ship. The right wing’s sur is correct.
So the ship looks like the Phantom of the Opera or Dracula from above, with its left wing holding a cape up to its nose!
I will try to define that model’s problems more accurately for you and will post it up if I can find what in the model is causing the asymmetry in sur builder.
OK? Couple of days.
-
ST, you old bag, quit harassing the guy. I didn’t just throw in the towel, I threw in the kitchen sink, the laundry basket and detergent to clean them
Actually I have been quite surprised at how well he has continued this project, if you saw the code you would know what I meant.
Ok, since you have mentioned it, I have been contemplating on releasing source code for every project that is FL related I’ve made, would that make ya happy?
Anyways messing with ya Star Trader, I just couldn’t resist, btw, I still have that hedge trimmer for your beard just waiting on ya…
BTW, one reason Ive never released my code is that in the wrong hands, it can be very dangerous. There is code that could easily wipe your hard drives in a matter of seconds, send all of you personal info to any ftp site, rewrite entire folder structures, wipe your registry and even more malicious stuff. This is why I only want to release it to those I know who wouldn’t use it in that manner. If Bullwinkle wanted to he could write a short routine to put swirlies in Star Traders beard JK…
Compentent programmers plz send me a pm on the project you would like to take over.
-
Well if it’s just that I would be interested in the code snippet that creates the tree of the Bitsection, so that I can compare it with my approach. Would that be possible?
-
StarTrader wrote:
Couple of days.OK, Cool.
The goal of the SUR Builder is to quickly create decent SURs for most of your models. If you have an oddball model that requires a hand-crafted SUR, then that is outside the scope of the Builder. Why hold up development of your mod just for one model?
All other reports are either that the Builder works as expected, or the model was bad to begin with.
My understanding is that there are at least three other workable techniques:
- Resize vanilla SUR
- SUR-splice
- Hand-made SUR in a modeling program
If there is more to it, then teach me.
-
Oi!
Hold on a mo LS, stop running away - the sur builder is connecting vertices of two entirely separate cmp groups!!
That’s what is causing this problem on several of my models, not only one or two, and large and small ships alike. I am trying to investigate if it can be prevented by regrouping the model.
I have focussed on one model and completely regrouped the ship twice, and it still fails, producing the “Phantom of the Opera” sur! The left wing and nose are in separate cmp groups and sur builder is still connecting them. It should not do so, am I right?
I will post the model once I know it is not a model problem.
-
I ain’t harassing, just want to get the builder to be better. As I said I appreciate BW’s work, I always do of anyone who puts so much effort into a spare-time no-earner project.
-
No I don’t want your source code, but others who want to develop new releases or sur utilities or exporters will, or they will be starting from scratch every time, am I right?
And you will agree that the sur builder is the most problematic to create, so far? No-one has helped anyone else in this until now, hence we have 2 sur export plugins that don’t work reliably, and sur builder may be easily improvable once we define the problem better…
At least I am trying, and it’s not only for my own benefit.
I could give up, but it’s in everyone’s interest if I can find the cause - if it’s a group naming problem, then it could be an easy fix in the builder. If it’s the way the groups are structured, it will be good for everyone to know so they can fix their models.
So don’t get on my case so darned fast! Walking away is easy, don’t tempt me more.
Eeee-bloody-yaw!
-
-
Hey I like giving you a hard time, Im from the volunteer state and volunteered
Anyways, I haven’t even looked at the code in over 2 months so I couldn’t even begin to know whats causing it.
One possiblility is if it isn’t reading the mesh properly out of the model, don’t know, it never happened to me.
BTW, I have to keep your wits sharp, can’t have you getting dull on me
-
It’s OK, no probs.
Just hang around a bit to help if needed bud.
I hope to find a way to regroup or rename the cmp groups that helps sur builder to make a good sur for the same ship, If I’m not successful then I’ll pass the model to BW, so you guys can try to find it. I’ve done the obvious - fuselage, left wing, right wing, fin - but as I said the sur is the same, bridging the left wing to the fuselage nose.
I’ll try to get the diagnosis completed asap.
Thanks.
-
Hi guys, here’s the diagnosis and findings…
I do have a problem with the sur built by the sur builder for the Goran, my test ship that had the “Phantom of the Opera” look.
It’s not making all of the sur parts for all of the Goran’s cmp groups, just as with Bbalazs’ terrain model.
The initial problem that I had was most likely due to some unwelded vertices and open cmp groups that I found on the ship model.
That is not happening now, I fixed those by removing all unnecessary model parts and regrouping until I have only 6 distinct and simple, welded cmp groups:- hull, left wing, left wing tip, right wing, right wing tip, and fin.
Then I ran sur builder and there are two problems in the generated sur file (I tried altering the Sort selections and Duplicate radius values and remaking the sur but the problem remains)…
1. The “right wing tip” sur part is missing entirely.
2. On the fin sur part, the front vertex at the base of the fin is missed, so the sur sweeps back to the next 2 vertces and the front part of the base of the “real” fin is exposed.I attach a zip file with the ship model .cmp, the generated sur, and the ms3d model with both the ship groups and the imported sur parts using adoxa’s sur importer, and the sur importer log too.
Look closely at the fin with the fin sur part selected and you will see the problem with that.
Hope this helps to find the cause of these problems.
Thanks guys.
-
Does it work in-game?
-
ST even if they were created they wouldn’t register properly in FL, in my experience single vertice edges like your wing tips always act like a knife and cuts through every other sur, and would probably only be stopped from going clean through when the main body hit the other sur.
You need to split the “knife edge” on the sur model and move the top and bottom vertices apart, then fill in the holes with a couple of polys.
I haven’t used the sur builder and I probably won’t as I no longer mod, but it wouldn’t surprise me if it doesn’t like “knife edges” either.
-
I tried a bit on your model. I tweaked a bit on your model and got the SUR-Builder to do a proper sur.
I rebuild the model a bit on the front bottom cause it had there some strange poly´s, same on the cockpit. On the Fin i closed the object. On the tip´s of the wings i tessalate the poly´s to have a few more vertices and faces.
I attached for you a zip containing the .cmp, .sur, .ms3d so you can take a look for yourself.
Hope this helped.
cheers
CURSOR -
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.