[Sur Tutorial] Hitbox from 3DSMAX to Freelancer
-
@Buck:
Thx Mirkha
This maybe bad practice but I use
Lod = 0, 999999 for all modelsyour freelancer.exe is hacked ? because if not the limit is about 10000 i think …
@Buck:
So the only downside to using Splines instead of Standard Primitives is the solar flare, but the surface hit detection works better.
no, with the splines and with the shapes, we have the same bug.
fixed by add a particular field to you entier system or just near the base.
but keep in mind that the problem is for bases AND ships, so if you don’t fix for the entire system, you will have the bug for ships. in fact for small it’s not a problem but for big one …
as strartrader has said i think it’s a limitation of the sursplicer…here a video for the use of a spline tool, and a solution for the boolean inside problem ;D
http://files.filefront.com/3dsmax+spline1avi/;12470336;/fileinfo.html
especially for the sphere shapes i thinlk that the splines are useful
keep in mind that spline tool mean also circle, ellipse, arc, ect …Well, here are my findings…
I made a large sphere 200m diameter with a large boolean box removed from the front to the centre of the sphere, making a wide entrance dock in the sphere.
As usual the sphere was not visible in-game until I fitted an HpMount hardpoint.
It also disappeared from view when the centre is off-screen, until I made a sur for it. Resizing the model cmp itself and saving it with the new bounding box (radius) in FL Model Tool did not stop this.you use the cmp exporter V3 ? with this I have not seen this problem, but with the v2.1 yes
The freshly-exported untouched sur crashed FL. Still crashed after using FL Model Tool to resize it x 1 as scenery then as ship/station again. Tried several times and ways, still same. This sur also has bridged the dock entrance with faces, which we knew the exporter does…
Incidentally, FL Model Tool adds the HpMount shield bubble (0xF00FB9DE - “Unknown_Mesh_f00fb9de”) to the sur too when you make the type = ship/station! I found that out a couple of days ago.
Surprise though - after passing a freshly-exported sur (not the resized one) through sur-splicer, the bridging across the entrance is removed, and the dock roof, floor, backwall and sidewalls are properly shaped into the sphere!!
And this sur did not crash FL, I was able to launch and approach the sphere.yes … the only way is to use the sursplicer
But - it’s not working as you described it in your tutorial, guys! You didn’t test extensively enough - tsk! tsk!
i don’t see how … i don’t have write to user flmodeltools.exe for other thing to find the radius of your object.
if i understand well your first sur exported have a bridged entrance ? so you not use the sursplicer and obviously you sur crash the game. just normal …From outside the sphere my ship bounced off everywhere, but passed through when approaching the dock from the front and below the dock floor level. When inside, it bounces off the dock roof and back wall once but still passes through them. There is no collision with the floor or side walls.
use splines and you can do a hitbox who work at the inside too
but i have to said that for me it’s a little problem for a docking part … when you go inside a dock … you dock …
obviously you will find players who love pass througt the dock just for fun ^^ … well you have the choice :).I made an entry for the sphere in concave.ini - no change. I set the sphere as type = MISSION_SATELLITE, PLANET, FIGHTER in solararch.ini - same performance from the sur.
no change at all you’re right
My guess is it is something to do with normals, Lancer mentioned that he spotted that the collision detection method uses normals. So somehow the sur exporter/sur-splicer is almost there but not putting all the info that’s needed into the sur file.
i think too. i have ask for dev (he wrote the sur-splicer) but he doesn’t know why did this …
Sun flare is shining through the sphere.
just fix it with the shield for the system or near your base
it’s not a choice. if you want use this technique you need the sursplicer and if you use the surplicer you need to fix the sun …It seems to be nearly there, it’s likely that the sur-splicer reverses some faces when it constructs the internal sur parts. If only we had someone to make us a new sur exporter plugin! (Hint! Hint!)
^^
if you find somenone, just ask him to make exporter for 3DSMAX too ^^hope this help
-
sorry for the double answer …
more testing and I think yes, the problem seems to be with the sur splicer
if I work with lines or shapes, it’s the same, you pass througt from the inside …
i don’t understand how with the splines, it’s possible … You have saw the video … it’s juste an object … no hole inside in fact
o__________Oat this point, i don’t know more but give you news as soon i find
-
Thx for the video Mirkha
I have found another small issue; it’s with using the ghost sheres to allocate the surs. After building up my model, following the tutorial to the letter, I found that by grouping all the main model groups together I couldn’t allocate invidual mat files to the sub groups. FL just seemed to show the first mat file on all the sections.
I ended up breaking the model down into 9 single group cmps and building the model together in space. Apart from the somewhat random collision detection on the part with the docking holes, it now works as i hoped.
I haven’t tried splines yet, still downloading the vid, I’m in Cambodia at the moment and only have 256kb broadband. It’s like living in the stone age
-
it’s very easy to cut your model with 3dsmax and make several cmp
and your sur will be also more accuratei have test tonight to put the no flare field around my base and it works perfectly
in fact you just need to add the code to you system ini file
you can no put the noflare.ini to the asteroid folder and that works finefor one time a freelancer bug help us xD \o/
for the mat issue i have no answer sorry
i use only one mat file by cmp.but in the tutorial, you have to make x-1 spheres and export with the number of cmp part in the first undergoup in the exporter settings
you can do different
just add x-y (y = the number of cmp group) spheres
and name starting with the last sphere. the last must have the last sur name
then export with the v3 and put the total number of groups and 1 in each undergroupthat works fine too
-
I Finally got my model working 95%, enough to use it although i would love to get the other 5% to make it perfect.
Here’s what i did
My model comprises of 9 parts so instead of building a single cmp (due to the mat file issue I made 9 indivdual cmps, one for each sectionI built each section in 3DS Max and made sure that the centre of the model was at 0 on all 3 planes when imported into MilkShape (3DS use the base line for the X plane)
I then imported it into MilkShape with autoSmooth checked and made sure it was centred exactly. I export the cmp uising v2 and then resized it using FLModel Tool making a note of the radius.
Next I built an exact copy of the model in 3DS (I never used clone) to use as the the sur but using as few faces and vertices as possible, i.e. my model was a cone with 48 sections and 8 slices but the sur is 24 sections and 1 slice.
I made sur it was centred by dividing the height and exported it without converting to editable mesh. I found that this doesn’t matter for surs either way.
I then imported the sur into MilkShape with autoSmooth unchecked and all I had to do was rotate it. I didn’t adjust it in any other way so as not to screw it up.
I then exported the sur using v1 exporter (the only one that seems to work at the moment) and used sur_splice to mate it to the cmp using the radius I got earlier from FLModel Tool.
I then assembled the model in space by adjusting the location to match them up and made 8 of the sections as children to the main section so that it was selectable in space as a single unit
This method has worked perfectly for each section except the one with the boolean holes in, shame but it’s still early.
Using this method I can have seperate mat files for each section plus the radius when approaching is more accurate and the solar flare only shines through when you are withing that radius
As for the boxed holes for docking they work when you initially enter as i bounced off the roof section but then I tried the floor and passed straight through. Once I had passed through the floor i found that I could now pass through the roof that initially bounced me off. Weird
Has anyone been able to make their own animated docking doors?
-
Just a brief pointer or two…
The reason I don’t like to add dummy parts (spheres or dev’s boxes) is that:-
1. I break up my models into sensible names anyway, and use these names with _lod1 on the end.
2. when the ships are destroyed the separate groups break away and spin in space ! Nice!
3. When you group ship parts that use different textures they are combined to use only one texture - messes things up.
4. I don’t want lots of surplus bits if I can avoid it. Duhhh - that’s just me, don’t worry, not criticising.
Hey - I’m very pleased so many of you are now looking into these problems too, maybe a proggie who wrote one of these plugins can help us out to get a better solution? Dev?
Bejaymac?
Where are you?
If you tell us everything you know about the structure of different sur types it may save us a long long time, bud. I might even send you a bottle of Glayva!
(Of course once you’ve done that we’ll have to bump you off!!)
-
Any updates or new experiences anyone?
-
i had a try at crating surs inside and out this is what the results were
http://fl-onslaught.com/maze.zip
i found if your doing a dome shape you have to split it into 4 and use havok to generate the sur
and its fine inside and out -
Well done, Kosacid.
Excellent Mirkha & co., great news all round, I can’t wait to try.
This will let the more serious modders have a few more years of FL invention and exploration!
Thanks for putting in the time and for sharing with us.
-
warning …
just an update to our processthis method work only with the SUR exporter 1.1, cuz the 1.2 don’t have the same algorythm and generate a crash
-
yes and rewarning because i can not reproduce this for the base i’m working on
it works for the i7 but not for the skyhook
i don’t understand how and why for the moment so i have to make testsdon’t waste your time for me moment, i give you news as soon as possible.
sorry
-
sorry for the late …
we tested a lot of 3dsmax tools and unfortunatly we can not reproduce
actually i’m limit to 18 parts as you
what can you do ? cut your original cmp into x cmp and code it with parent/childrenit’s a little boring but works fine
i have made this one in 3 cmp :
http://www.youtube.com/watch?v=lEJ8xkJ6Oak -
Mirkha, that’s fabulous work!
Here’s an idea for bases guys.
Make component modules for your base instead of one large piece. Think carefully about the design so you can position each piece to connect in the right place to the next.
Then you can have up to 18 groups for each module.
Aldebarran made modular station models that can be positioned using FL Explorer.
Why don’t you have a go, I’m sure you will be pleased with the result, especially if you make sensible modules that you can use in several different station combinations like FL does with the habitats etc?
-
Reply to Buck Rogers about baydoor anims (asked back in november oopsy )
Sorry to bust into the convo, was reading and just noticed that particular inquiryHere’s the relevant threads on animations, the last one’s quite lengthy, so bring beer / espresso.
http://the-starport.net/index.php?option=com_smf&Itemid=26&topic=573.0
http://the-starport.net/index.php?option=com_smf&Itemid=26&topic=961.0
http://the-starport.net/index.php?option=com_smf&Itemid=26&topic=462.0
-
i have rebuilt all the modular station from aldebaran with correct hitbox
and yes the other dev code them to build modular stationsscale for the next version of fw
so x2 regarding of the initial modules
i don’t know yet if i have the time to scale it back to the initial size because we can’t do it with flmodeltools
he put all the sur part in the center … instead of the right positionto give you an idea
http://www.youtube.com/watch?v=uc5wo3oDjy0i give you all the materials if you want
the .max, .msd3 ect ectbut you need to redo the last part of the process
scale in 3DsMax, export the 3DS
export sur parts
splice all
and make the cmp.just tell me
-
Very nice mirkha!
If u share the sur’s for the docks, can u upload them for me?
I would like to include them into NU 1.8 and my next modular station pack (it based on aldebarans modul pack).Greetings
Mind -
http://files.filefront.com/Modular+Station+V2zip/;13615864;/fileinfo.html
all scale to the original size
all with custom sur