Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Topgun on August 14, 2008, 01:19:36 pm

Title: docking bay doors: Possible?
Post by: Topgun on August 14, 2008, 01:19:36 pm
I am designing a ship of corvette size that has a hangar in the back. I want to create a docking bay door that, when it's time to end the mission and enter the hangar, will open so you can just fly in.
is it possible?
Title: Re: docking bay doors: Possible?
Post by: lostllama on August 14, 2008, 03:16:47 pm
I'm sure there was a thread about this very idea posted sometime last year... I think Trashman was interested in implementing it. Have tried searching for the thread but can't seem to find it.

Edit: Found it.  http://www.hard-light.net/forums/index.php/topic,50129.0.html (http://www.hard-light.net/forums/index.php/topic,50129.0.html)
Title: Re: docking bay doors: Possible?
Post by: Topgun on August 14, 2008, 04:15:11 pm
ok, now I just need to figure out how to do it.
Title: Re: docking bay doors: Possible?
Post by: Colonol Dekker on August 14, 2008, 04:38:55 pm
Ask Nuke. His Rumrunner pirate ship has opening doors.
Title: Re: docking bay doors: Possible?
Post by: blowfish on August 14, 2008, 04:54:20 pm
Note that while rotating doors are at least partially possible at this point, sliding doors are not.
Title: Re: docking bay doors: Possible?
Post by: bobbtmann on August 14, 2008, 06:38:33 pm
Would it be possible to make a rotating door that has it's axis of rotation really really far away from the model itself, so that it appears to be sliding? Like how the surface of the earth appears flat when we're standing on it only because the curve is so big.
Title: Re: docking bay doors: Possible?
Post by: Nuke on August 15, 2008, 08:59:23 am
best bet would be to place a hidden subsystem in the docking bay, then fred the mission to toggle the animation code for the doors, then you can fly in, when youre near the invisible subsystem in the docking bay, end mission.

i thought about a landing simulation script, to give you an ils hud gauge, as well as simulate things like runways and working landing gear, arresting systems, etc. but not enought time to work on it. then a successful landing requires following the ils, keeping withing the designated glideslope, touching down in the right orientation and at the right speed then taxiing to the hanger for a successful landing. ****ing up either results in a wave off or your death.
Title: Re: docking bay doors: Possible?
Post by: Bobboau on August 15, 2008, 09:21:19 pm
IMHO the best implementation would be to have some realy cool looking rotational mechinism that moves the door in a more or less linear fashion.
Title: Re: docking bay doors: Possible?
Post by: Nuke on August 15, 2008, 10:22:29 pm
im expirimenting with a garage style door for the carried varient of the ragnarok. essentially its a chain of slats each one child of the previous, with a center at a mutural radius. then just rotate each slat a degree or two, and it would look just like a garage door.
Title: Re: docking bay doors: Possible?
Post by: TrashMan on August 16, 2008, 06:24:30 am
Note that while rotating doors are at least partially possible at this point, sliding doors are not.

Any word on getting sliding doors in the future? Would make things easier, requiring less moving parts and less fuss.
Title: Re: docking bay doors: Possible?
Post by: Hellstryker on August 16, 2008, 07:42:00 am
Note that while rotating doors are at least partially possible at this point, sliding doors are not.

Any word on getting sliding doors in the future? Would make things easier, requiring less moving parts and less fuss.

Agreed, theres several uses I have for it as well
Title: Re: docking bay doors: Possible?
Post by: blowfish on August 16, 2008, 01:29:23 pm
I think it would take significant code changes, as while IIRC sliding doors are possible with scripting ATM, it will break collision detection :doubt:
Title: Re: docking bay doors: Possible?
Post by: Nuke on August 16, 2008, 07:55:38 pm
ive never seen that happen, i seem to hit the rumrunner's doors when i fly into them. of course while their moving is another matter. but ive never seen collision detection so ridiculously bad caused by rotating things with scripting.

theres a meathod for faking sliding doors, so long as their not ridiculously large. simply put the pivot point of the  door far benind it, then rotate a couple degrees. the door should appear to slide open.
Title: Re: docking bay doors: Possible?
Post by: blowfish on August 16, 2008, 08:19:37 pm
ive never seen that happen, i seem to hit the rumrunner's doors when i fly into them. of course while their moving is another matter. but ive never seen collision detection so ridiculously bad caused by rotating things with scripting.

I said sliding doors.
Title: Re: docking bay doors: Possible?
Post by: Vasudan Admiral on August 16, 2008, 09:19:45 pm
Actually there's another barrier to faking sliding animations.

As far as I have been able to determine, having models with a hierarchy depth of 6 or more levels will partially break the rendering engine for some reason. Particle effects (including weapon impacts and spews) will only be rendered from some angles, weapon effects look flat, and a few other glitches. I encountered this on a model where I was trying to get turret recoil happening - it was the most bizzare error I have ever seen, but removing one level (no matter which one) would completely fix it. :\

6 levels is enough to do sliding doors using the invisible folder arm technique, but you're one short of being able to do turret recoil. :(
Title: Re: docking bay doors: Possible?
Post by: Galemp on August 16, 2008, 10:05:57 pm
See my sig quote for VA's reaction to that bug.
Title: Re: docking bay doors: Possible?
Post by: TrashMan on August 17, 2008, 06:18:02 am
I think it would take significant code changes, as while IIRC sliding doors are possible with scripting ATM, it will break collision detection :doubt:

Eh? How's that work anyway?

Don't rotating doors also collide/intersect with parts of the hull? How come they don't break it?

At a glance I'd say that collisions aren't calculate for rotating objects but that makes no sense....then again, I never went too deep into programing (beyond a few simple programs).
Title: Re: docking bay doors: Possible?
Post by: Vasudan Admiral on August 17, 2008, 06:42:40 am
He means scripted animations that set a subobjects relative position frame by frame. That kind of position setting has been known to cause either the submodel or the entire ship or even in some cases all collisions in the mission to not work correctly. I don't know if this is still the case though.
Title: Re: docking bay doors: Possible?
Post by: TrashMan on August 17, 2008, 07:36:02 am
HEh...in essence translation seems simpler, but I know enough about programing that looks can be decieveing.
Title: Re: docking bay doors: Possible?
Post by: NGTM-1R on August 17, 2008, 02:58:59 pm
Note that while rotating doors are at least partially possible at this point, sliding doors are not.

Not true, technically, but the math involved would make your head hurt, as you could fake up sliding by setting the rotation point reaaaallly far away.
Title: Re: docking bay doors: Possible?
Post by: TrashMan on August 17, 2008, 03:51:36 pm
Not true, technically, but the math involved would make your head hurt, as you could fake up sliding by setting the rotation point reaaaallly far away.

Would that mess up targeting and center of mass too?
Title: Re: docking bay doors: Possible?
Post by: blowfish on August 17, 2008, 04:11:22 pm
Not sure about the center of mass.  I know it wouldn't affect the target box though.