.obj -> .sur converter
-
Schmackbolzen wrote:
@Sushi: I never checked this. If you are absolutely sure (means that you can reproduce that on all your models), then i will have to include real geometry for the weapons, thrusters etc. For now I just insert the hardpoints crcs into the .sur file to prevent crashes, but in the vanilla .sur files there also is real geometry for them.Ya, I’m getting Adoxa to help with this problem, too. But that would be great if you could possibly include that for future updates.
-
OK. So this is a video showing the problem. The first video is with the old hitbox we custom made (took forever) for the ship. Turret hitboxes were applied appropriately. The second part of the video is with Schmacks amazing new hitbox maker with our old hitboxes for the turrets.
http://www.youtube.com/watch?v=NDe2_fqLhmU
You can see the projectiles no longer register. This issue is ubiquitous in the mod. Would be great for someone else to confirm this issue, though.
Adoxa applied the turret to the .sur like you’re suggesting, Schmack and it worked. So, ya, when you can work on the hitbox exporter, that would be awesome
-
Well I guess then we know now what the HP geometry in the .sur files is for: To further speed up collision detection. I have an idea how to include it, I will try to implement it in the next version.
-
Schmackbolzen wrote:
Well I guess then we know now what the HP geometry in the .sur files is for: To further speed up collision detection. I have an idea how to include it, I will try to implement it in the next version.Awesome, Schmack. Thanks for everything thus far. Get to it when you can, no rush
-
Pretending for a moment that i know nothing about sur files (which i don’t) and cooing like a pigeon when LS’s sur builder and now Schmack’s utility came out for making surs, can someone explain to me in laymans terms why the turret hitbox is needed.
From my perspective, if a custom turret model has it’s own sur, like in vanilla and many custom models, (i make a point of having custom turret models where possible), surely the fact that these models have custom surs and are therefore independent of say a base or capship sur, means that they should work as they are seperate from each other?
-
Yes, that’s that what we assumed initially. But now we can assume that the geometry for the weapons etc. hardpoints in the ship .sur file is used for further calculation speedup, since just adding them without geometry results in them not being hit after all. For a full understanding you would have to look up of what data the .sur format consists of. But I guess that’s not what you want
Please understand that the converter is not final, which means for now it is written for people who understand what they do, since I was not sure how well it would work in the first place. There are still some bugs and there is still the possibility that you have to redo all your .sur files you converted.
Once the version is stable enough I will try to make it more usable for the common modder.
-
Your utility has already allowed me to make surs for some very peculiar shapes, including asteroid bases you can fly into and odd shaped ships and all the surs work fine, (have to check this turret thing as i’m curious now). So take your time, between your utility and Lancers, can make just about any sur i like, (well almost )
-
Hmm, I created a hitbox for this base using the converter.
http://i352.photobucket.com/albums/r330/SilentAssassin82/Untitled-5.png
I actually had to splice the parts together because the doors where animated. In doing this I deleted the HPIDs section of the sur and all the turrets do register hits. I dunno why but the turrets on that model are fine ingame.
-
On stations (stationary objects) the surs of the weapons itself will be used.
On ships the surs of the hardpoints will be used.
(I think) -
SilentAssassin82 wrote:
Hmm, I created a hitbox for this base using the converter.http://i352.photobucket.com/albums/r330/SilentAssassin82/Untitled-5.png
I actually had to splice the parts together because the doors where animated. In doing this I deleted the HPIDs section of the sur and all the turrets do register hits. I dunno why but the turrets on that model are fine ingame.
Interesting. So, in all my ship models, like the ISD in the video, I added HPID section for the hardpoints. I wonder if that’s the issue? Because when we made custom hitboxes, we never had to add that section before…
Interesting. How would I go about deleting this from the .sur, Schmack, to test?
And Skotty, no, I don’t believe it does work like that. The big ship in the video I made is a “station”.
-
OK, that did it. You remove the HPID section from your .sur, and the turret hitboxes magically appear.
So, with that said, what are the hardpoints that must be in the HPID to prevent crashing?
I remember HpCM01…what else was there?
-
Actually I added the option just because of crash reports. See it as a quick fix until I can include real geometry. My hope was to avoid this step, but it seems to be unavoidable
-
Damn. Just so you know, these were the hpid hardpoint sections I was adding, in general, to the hitboxes. Might have been a bit excessive.
Capital Ships
HpMount HpCockpit HpShield01 HpShield02 HpShield03 HpShield04 HpShield05 HpShield06 HpCM01 HpTractor_Source HpTractor01 HpThruster01 HpTorpedo01 HpTorpedo02 HpWeapon01 HpWeapon02 HpEngine01 HpEngine02 HpEngine03 HpEngine04 HpEngine05 HpEngine06 HpEngine07 HpEngine08 HpEngine09 HpPower01 HpPower02 HpPower03 HpTurret01 HpTurret02 HpTurret03 HpTurret04 HpTurret05 HpTurret06 HpTurret07 HpTurret08 HpTurret09 HpTurret10 HpTurret11 HpTurret12 HpTurret13 HpTurret14 HpTurret15 HpTurret16 HpTurret17 HpTurret18 HpTurret19 HpTurret20 HpTurret21 HpTurret22 HpTurret23 HpTurret24 HpTurret25 HpTurret26 HpTurret27 HpTurret28 HpTurret29 HpTurret30 HpTurret31 HpTurret32
Starfighters
HpMount HpCockpit HpShield01 HpCM01 HpTractor_Source HpThruster01 HpTorpedo01 HpTorpedo02 HpWeapon01 HpWeapon02 HpWeapon03 HpWeapon04 HpEngine01 HpEngine02 HpEngine03 HpEngine04
-
Can’t remember which hardpoint was causing crashes for Startrader but i’ve only been adding in HpThruster01, HpCM01, HpMine01 to my ships.
On bases, maybe why i’ve been able to hit my turrets, i don’t add any hardpoints at all in the sur, no problems so far.
-
I’m guessing that Schmack is right and that this really is just used to speed up calculations, whereas if you just don’t specify them the game reverts to the actual, more complex turret SURs.
Does make me wonder whether those turret SURs are used at all if you list them in the hardpoints list. Maybe they get used for calculations if and only if the simple turret is hit?
-
FriendlyFire wrote:
I’m guessing that Schmack is right and that this really is just used to speed up calculations, whereas if you just don’t specify them the game reverts to the actual, more complex turret SURs.Does make me wonder whether those turret SURs are used at all if you list them in the hardpoints list. Maybe they get used for calculations if and only if the simple turret is hit?
I think it works this way: If a beam is inside the general sur radius, the overall sur gets checked. Now, every hardpoint “rough” geometry is checked. If the beam intersects one, the actual sur of the equipment mounted at that hardpoint is checked.
So, if all your equipment is simply a sphere or a very simple geometry, I think there is basically no speed-up. But as soon as you have a lot of equipment that is rather complex, I think there can be quite a speedup.
-
Actually the speedup would be there in any case, because of the BSP tree. That’s why I think it made perfectly sense for the developers to also include simple geometry for the hardpoints. You just navigate through the tree until you hit one and after that look what is actually mounted there.
-
Adding hardpoints is a mistake, for me, I didn’t use this featur yet, but if it’s done the same thing that vanilla models, the doms you can see on station, I’m sure you can’t hit turrets on your ship. I’m probably wrong, if I’m, can you tell e where? Please, cause I’m not an expert of modding.
-
SilentAssassin82 wrote:
Hmm, I created a hitbox for this base using the converter.http://i352.photobucket.com/albums/r330/SilentAssassin82/Untitled-5.png
I actually had to splice the parts together because the doors where animated. In doing this I deleted the HPIDs section of the sur and all the turrets do register hits. I dunno why but the turrets on that model are fine ingame.
How did you “splice the parts together”? What tools / method did you use?
-
http://i352.photobucket.com/albums/r330/SilentAssassin82/Untitled-5.png
What version of HardCMP is that? I want it.