Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: sigtau on June 30, 2009, 12:02:18 pm

Title: Warping out in subspace
Post by: sigtau on June 30, 2009, 12:02:18 pm
Some have argued that this extra step is not necessary, but I feel that it is.  What if I have a subspace mission, and instead of warping out, I want to display some kind of effect or map in front of the ship warping out (as a sort of sprite, think of how the explosions work, they're always facing the camera).  Think about it: Warping out in subspace wouldn't make much sense.

At least, I don't think it does.

Anyway, how do I display an effect or map in this manner?  I also need the ship to no longer be on the map ("departed") when the effect is displayed.
Title: Re: Warping out in subspace
Post by: Snail on June 30, 2009, 12:05:53 pm
I always imagined it as reaching the light at the end of the subspace tunnel. Then it'd envelop your ship in some kind of misty cloud and then you emerge from the warp hole.

Could be done using the fade SEXPs and some tomfoolery with the warp-effect SEXP.
Title: Re: Warping out in subspace
Post by: sigtau on June 30, 2009, 12:07:05 pm
Yes, but that's technically impossible for the engine, considering that the subspace effect is just a skybox.
Title: Re: Warping out in subspace
Post by: Mongoose on June 30, 2009, 03:12:44 pm
What I'd personally love to see is a separate warp graphic defined for subspace missions, just as it is for jumps into and out of a Knossos portal.  And what would that new graphic look like?  A totally dark/black warp map, giving the appearance of punching through into normal space.  Hell, maybe even reverse the direction of the warp model to complete the effect.
Title: Re: Warping out in subspace
Post by: Aardwolf on July 03, 2009, 08:50:01 pm
This has been done.

I can't remember where, but someone made subspace-side warpout effects.
Title: Re: Warping out in subspace
Post by: Dilmah G on July 03, 2009, 10:23:26 pm
Yes, but that's technically impossible for the engine, considering that the subspace effect is just a skybox.
Yeah well you have sexps that change the skybox. As Snail suggested, you could fade, change the skybox and have it fade back into starfield.pof.
Title: Re: Warping out in subspace
Post by: Gregster2k on July 07, 2009, 01:45:21 am
@Mongoose - I remember that thread -- it may have been in FreeSpace Upgrade Project. They had it working and all were congratulating, but when I saw it, I wondered if [V] locked off our jump drives in FS1's final mission for a universe-rules reason (see below).  

I always imagined it as reaching the light at the end of the subspace tunnel. Then it'd envelop your ship in some kind of misty cloud and then you emerge from the warp hole.
@Snail - I think evidence exists to support that: You have to jump into the node right after the Lucifer, can't jump out once inside, and emerge alongside the Lucifer out of one big jump hole.  I don't think it was due to [V] not bothering/needing a warpout effect.  I think they were trying to tell us something about Subspace -- that once you have engaged your jump drive and are enroute to your destination, you have to ride it out (subspace tracking just lets you hijack someone else's pre-existing wormhole).  Well, that's my interpretation.  So here's my idea to aid the "reaching the end" model of subspace exit.

=> At its simplest: Plant a Sun at the 'exit' end of the subspace tunnel, and triggering a Supernova? ~ EDIT: oh wait, we want transitions ~

=> At its most complex:  Speculating here, perhaps we would need a custom Supernova which simply enlarges the first Sun placed in a mission, fades the screen to white after a countdown, and sets off a SEXP of your choice once the screen is totally white.  Complete with a HUD display saying something like "Subspace exit warning."

So once the screen hits white, it sets off a skybox change SEXP, then somehow delete the sun from the mission, spawn an already-open subspace vortex directly behind the player ship which closes after a delay of our choice, and populate the new background with the nebulae and stars the mission designer wants.  Whew.  >_<;  Yeah.  Maybe that idea is doable with LUA, I don't know.
Title: Re: Warping out in subspace
Post by: Aardwolf on July 07, 2009, 10:18:42 am
Interesting idea...
Title: Re: Warping out in subspace
Post by: Dragon on July 07, 2009, 10:28:42 am
It's doable with SEXPs, you will need to use "add-sun-bitmap" operator to enlarge the sun (place bigger one atop it), then "fade-in", then training message with exit warning, "fade-out", then "set-skybox-model", "remove-sun-bitmap"( for removing subspace sun ) and at last "add-sun-bitmap" and numerous "add-nebula-bitmap" to set up the background.
I think it should work.
Title: Re: Warping out in subspace
Post by: Aardwolf on July 07, 2009, 10:37:51 am
Or you could store the final nebula stuff as a skybox.
Title: Re: Warping out in subspace
Post by: Dragon on July 07, 2009, 10:47:12 am
That's also a good idea, it would save a lot of work with "add-nebula-bitmap".
Title: Re: Warping out in subspace
Post by: Aardwolf on July 07, 2009, 03:18:49 pm
That's [...] a good idea...

That's why I said it  ;)
Title: Re: Warping out in subspace
Post by: shiv on July 07, 2009, 05:07:30 pm
What about making black coloured subspace effect for warping out of subspace tunnel?
Title: Re: Warping out in subspace
Post by: eliex on July 07, 2009, 05:43:07 pm
It sounds cool, except it might be going against the aura the subspace tries to project.
Title: Re: Warping out in subspace
Post by: Droid803 on July 07, 2009, 07:30:05 pm
Didn't HT or someone make something like that already?
Title: Re: Warping out in subspace
Post by: eliex on July 07, 2009, 08:05:59 pm
It's not on FSMods. Doesn't mean that it wasn't made though.
Title: Re: Warping out in subspace
Post by: Droid803 on July 07, 2009, 08:10:58 pm
I swear it was done.
There was even a video of the Meridan and Haulian (from Derelict) warping out...
Title: Re: Warping out in subspace
Post by: eliex on July 08, 2009, 03:29:57 am
It is possible to add code into FRED2_Open for the SEXP "warp-effect" to also edit the warp colour apart from standard blue and knossos green? Some other SEXPs like the cutscene "show-subtitle" have similar options for that.
Title: Re: Warping out in subspace
Post by: Colonol Dekker on July 08, 2009, 03:46:55 am
Mid to late last year. Definitely. Search for warpmaps I think. (My wap is c-wap)
Title: Re: Warping out in subspace
Post by: Aardwolf on July 09, 2009, 07:43:46 pm
What about making black coloured subspace effect for warping out of subspace tunnel?

Thanks for ignoring me.  :rolleyes:

As I said, this has already been done. Someone just needs to find the thread.