.obj -> .sur converter
-
Firstly, i said i wouldnāt be back but here i am. The reason for this post is a simple one, to show you what iāve done with Schmackbolzenās utility.
Now i wouldnāt even bother posting this if it wasnāt for one person and one person only, that is Ben_Kai. I got so annoyed at some people in this thread for their know it all attitude and their collective assumption that we should all know how to use this utility. Utter nonsense. Very few people can use this utility properly without some instruction and the information posted so far is ā¦. lacking, at least to someone who hasnāt got a clue about sur files.
The real hero as mentioned is Ben_Kai. He sent me a tutorial on how to use this utility that even my cats can understand, and imho this should be included with the converter because then EVERYONE can use it and get results.
Enough ranting, onto what iāve accomplished. A new asteroid base with flyable interior. Now when i first put this model into my universe, it had the annoying habit of vanishing after about a 60 degree turn. I thought it was the sur file causing this, so i made one with LSās utility, same problem. The model was saved as a single group model.
Next up i thought iād save the model again, this time as a multi group model, five parts to be exact. Now it works fine. Interestingly the sur file is the one i made for the single group model but works perfectly well.
Points of interest, itās detecting every undulation on the surface of the asteroid, also the fly through entrance as well with all the various internal parts properly covered by the sur which the utility accurately finds. There is no cheating going on here with the use of the phantom physics command. Iāve tested this base in a full battle environment and all parts receive hits, external and internal.
Itās a top utility, that with the brilliant tutorial i have and a copy of Lithunwrap, makes perfect surs.
-
You ran the original model through FL Model Resizer? It sounds like it was being culled by the game because it didnāt have a radius.
Great news that youāre able to use this incredible tool.
-
@ Sushi
I donāt remember doing so, but least i know the multipart version worked.
Hereās the tutorial made by Ben_Kai
MODEL PREPARATION
1. Import CMP into MS3D. āauto loadā, is the only box I check. āImport hardpointsā is optional
2. Use DirectX Mesh tools to remove some triangles. Move the slider, for most models it will only reduce by 5 - 10%. Click the save button that has the - sign.
(Note on above: If the model is low poly to start with, you can ignore 2 and move onto 3)
3 . Export as .OBJ. You can try to import back into MS3D and use Dx tools again, but I usually just reduce more triangles with LithUnwrap. Iāve noticed that using DX tools numerous times begins to degrade the model to the point where your SUR will not be very from fitting. For small fighters this is fine. But for larger ships and stations I think It kind of defeats the
purpose. I guess you could delete some triangles manually inside the mesh but Iām not a modeler so I dont attempt it.Close MS3D.
LITHUNWRAP
4. Open .OBJ with LithUnwrap. Go to File - Model - Open. Go to Tools - Optimize model. Check all 3 boxes, click OK.
5. Save mesh as .OBJ. Go to File - Model - Save. Make sure format is .OBJ.
6. Import .OBJ back into MS3D.
7. Go to Edit - Select All. Go to Vertex - Weld Together. Make sure you dont skip this step or your SUR could have huge holesā¦.
8. Export as .OBJ
OBJ CONVERTER
9. Select your .OBJ. I leave 1st option at default. Check 2nd and 3rd boxes then input your hardpoints. I will add that on bases i havenāt had to add in hardpoints
10. Job done
Thanks to Ben_Kai for the tutorial, if i can use it then anybody can.
Programs used, Milkshape, Lithunwrap
-
Gibbon, glad you did come back. Hope you keep coming and keep contributing.
Would you mind posting your sur file and cmp file please, I am curious to see how the interrior surs are constructed, as they are working well for you?
Thanks in advance.
schmackbolzen: Good luck with your exams, best wishes.
-
ST - you made a spelling mistake!
-
Yes, so I did!
Itās hard using that hand in my mouth to hit the keys, itās still fresh and not rigor-mortisād yet!
-
Okay, for the Discovery mod Iāve used this tool to rehitbox 205 custom ships (and counting). So far, no problems, although hitbox testing is still ongoing. Some thoughts:
Someone mentioned shield bubbles. Those are seperate SURs assigned through the shiparch and the corresponding shield entry in select_equip. Would be outside of the scope of this, although I see no reason why this tool should not be able to create a hitbox of a very simple egg shape. Point being itās a seperate model entirely, and not part of the ship itself.
Being able to assign named components so destructable models and hitboxes moving along with animations can exist, would definately be a plus. Thatād make bases with animated bay doors possible.
Iāve fed the tool clusters of convex shapes (basically, when supplied a model, I manually break it up into pieces, use Milkshapes convex tool to wrap a convex untextured shape around them, and delete the original shape). Noticed if I donāt check the box to use convex hull instead of splicing, the SUR tends to get a lot larger. Not sure why.
-
Someone mentioned shield bubbles. Those are seperate SURs assigned through the shiparch and the corresponding shield entry in select_equip. Would be outside of the scope of this, although I see no reason why this tool should not be able to create a hitbox of a very simple egg shape. Point being itās a seperate model entirely, and not part of the ship itself.
So no need shield bubble cause theyāre paired in the shiparch.ini with the selected shield equipement ?
-
So, i made the surfor the station which i have uploaded the CMP earlier, the sur was made using the Ben_Kai Tuto.
Hit detection on station is Very good and operational
Collision detection work, but when i hurt the station, FL began to LAG hardly, and if i go forward slowly, i can pass through the station.So, i think i really have a problem, with the CMP or the SUR. Donāt know which of them
If anyone can take the CMP previously uploaded and make/test the sur using schmack tool and ben kai tuto and see if you can se where the problem can be, it will be very cool.
Thanks
-
Gibbon i think you should write the tutorial in the tutorial section no ?
and at the end you have to add :
"- open flmodeltools, open the cmp, without any modification save it"
if not, the cmp doesnāt have a radius (i think Sushi has already said this) and so your cmp is only visible when you look right to him
-
The tutorial i posted isnāt mine. I made no mention of FLModelTool anywhere either. Sushi suggested that i might have used it somewhere while i was converting the rock base. I might have used it but donāt remember doing so, as i just had a look at the original OBJ file i used for conversion and it went straight to harpointing after i made the cmp. Not really sure what caused it tbh.
-
and ? itās not your tutorial but you can post it for every one and give the credits no ?
for the flmodeltools, trust me itās necessary, iām on the TOWās bases and if you donāt save the cmp at the end, it doesnāt have a radius so you cannot see him if youāre not just in front of him
-
Gibbon, I believe Sushi said the opposite: that you might have forgotten to do it and that that would explain your base disappearing. FLModelTool recalculates the radius and bounding box of the models, which are used by FL for many things including visibility calculations. Basically, if the bounding box is off-screen, it wonāt even bother trying to calculate whether the actual model is off-screen and will just assume it is. If your bounding box is zero, as it often is, then youād need to see the center of the mesh for it to show up.