Hard Light Productions Forums

Community Projects => The FreeSpace Upgrade Project => Topic started by: Retsof on May 04, 2008, 05:25:25 pm

Title: In-transit jump out effect
Post by: Retsof on May 04, 2008, 05:25:25 pm
When playing a subspace mission, shouldn't the jump out effect be reversed, like with a starfield behind it instead of using the normal blue-white effect.?
Title: Re: In-transit jump out effect
Post by: Droid803 on May 04, 2008, 05:30:04 pm
Yes, it should.
Good idea.
Title: Re: In-transit jump out effect
Post by: Herra Tohtori on May 04, 2008, 05:32:42 pm
When playing a subspace mission, shouldn't the jump out effect be reversed, like with a starfield behind it instead of using the normal blue-white effect.?
'

Swirling piece of starfield instead of light?

A novel idea and worth some research. It would probably require adding a third subspace jump texture in addition to the normal and Knossos textures. Although, a mod with no Knossos missions could get away with replacing the Knossos effect with the Swirly Starfield effect.

More difficult to change would probably be the fact that the subspace effect uses - to my information - additive transparency blending, which means that black is going to be transparent and you would see through the starfield. I don't know if simply adding an alpha layer to the effect frames would simply switch the effect to use alpha blending...
Title: Re: In-transit jump out effect
Post by: Retsof on May 04, 2008, 05:57:32 pm
This is why I presented it to the fine people of the FSU, because I would have no idea what i was doing.
Title: Re: In-transit jump out effect
Post by: FireCrack on May 04, 2008, 06:07:19 pm
When playing a subspace mission, shouldn't the jump out effect be reversed, like with a starfield behind it instead of using the normal blue-white effect.?
'

Swirling piece of starfield instead of light?

A novel idea and worth some research. It would probably require adding a third subspace jump texture in addition to the normal and Knossos textures. Although, a mod with no Knossos missions could get away with replacing the Knossos effect with the Swirly Starfield effect.

More difficult to change would probably be the fact that the subspace effect uses - to my information - additive transparency blending, which means that black is going to be transparent and you would see through the starfield. I don't know if simply adding an alpha layer to the effect frames would simply switch the effect to use alpha blending...

Or perhaps once there is a proper material system you could switch it to be subtractive.....
Title: Re: In-transit jump out effect
Post by: FreeSpaceFreak on May 05, 2008, 09:48:31 am
It always seemed to me like there was blue-white stuff being sucked into the tunnel.
I don't think the idea of swirling starfields would be good. Just coming out of the tunnel is fine.
Title: Re: In-transit jump out effect
Post by: Aquazorx on May 06, 2008, 02:03:42 am
like a static star texture with a swirling edge
Title: Re: In-transit jump out effect
Post by: Retsof on May 06, 2008, 05:51:59 pm
like a static star texture with a swirling edge
Yes
Title: Re: In-transit jump out effect
Post by: Colonol Dekker on May 06, 2008, 06:47:51 pm
Does SCP Support alpha blending/layering yet??? :confused:
Title: Re: In-transit jump out effect
Post by: Galemp on May 07, 2008, 07:54:59 am
:wtf: FS1 retail supported alpha blending. How do you think explosion effects, weapon blasts and shockwaves were rendered?
Title: Re: In-transit jump out effect
Post by: Colonol Dekker on May 07, 2008, 08:29:38 am
Bah i am a twat...

Ok i'm not gonna feign sounding clever in these matters, Is the realspace.pof gonna be doable at this point :P  is what i should have said :D
Title: Re: In-transit jump out effect
Post by: Galemp on May 07, 2008, 12:27:17 pm
I honestly don't see why not. All you need is to make a starfield image, copy the existing subspace warp into the alpha channel, then apply that to the current subspace.pof.
Swapping it out on a per-mission basis is, I think, a code issue. If someone can do it well maybe we'll see a warpfx.tbl that defines the normal, Knossos, and subspace warp effects. It would be useful for TBP and SWTC too, I think.
Title: Re: In-transit jump out effect
Post by: Colonol Dekker on May 07, 2008, 04:24:20 pm
Mebbe someone can add the feature to the background editor, tack it onto that checkbox which says "takes place in subspace" or something along those lines  :nervous:
Title: Re: In-transit jump out effect
Post by: blowfish on May 07, 2008, 05:20:35 pm
I think Galemp's table idea was good.  It could also be used to add more warp effects, if needed.  Something like this:

Code: [Select]
$Warp: Normal
$POF File: warp.pof
$Texture: warp_normal

$Warp: Knossos
$POF File: warp.pof
$Texture: warp_knossos

$Warp: Subspace
$POF File: warp.pof
$Texture: warp_subspace

Then in FRED, have some field setting the warpin effect and warpout effect.  Also have a sexp:

Code: [Select]
( set-warpout-effect
   "Subspace"
   "MyShip"
   "MyOtherShip"
)
Title: Re: In-transit jump out effect
Post by: Droid803 on May 07, 2008, 05:57:05 pm
Or we could even hardwire it to the "takes place in subspace" thing, to save SEXP lines...
Title: Re: In-transit jump out effect
Post by: blowfish on May 07, 2008, 06:07:35 pm
But hardcoding is bad for future-proofedness.  Let's say you need another type of warp.  What do you do then?

You could also have a set-warpout-effect-all, or a way to set the default warp effect in mission specs.
Title: Re: In-transit jump out effect
Post by: Droid803 on May 07, 2008, 06:48:30 pm
Still use the table entries, just make it so subspace defaults to the subspace warp so people don't forget (and so its more easily integrated without having to re-FRED every mission in subspace).
Title: Re: In-transit jump out effect
Post by: sidious345 on May 11, 2008, 02:30:07 pm
 :yes:

Im up for the idea as well.
Title: Re: In-transit jump out effect
Post by: Herra Tohtori on May 13, 2008, 10:04:33 am
Well, technically it's possible. Proof of concept:

(http://i31.tinypic.com/35lgum8.png)

The problem here is this: the warp texture is scaled up based on the size of the ship making the jump. Stars should remain small dots. Upscaling makes them stretch and it looks dumb. 1024x1024 resolution is barely sufficient for medium-sized ships jumping out at reasonable distance; even on this shot there's some stretching already. Imagine how big blobs those stars would be with a Lucifer or Sathanas-sized ship...

Also, the subspace skybox needs some work on it.  :blah:

So technically it's possible. I just wonder if it's possible to use texture-replacement on warp effect on mission-by-mission basis.
Title: Re: In-transit jump out effect
Post by: Galemp on May 20, 2008, 09:04:24 am
Er... Subspace shouldn't have a starfield behind it. It should look like this.
http://www.flickr.com/photos/32989127@N00/173180298/sizes/o/
Title: Re: In-transit jump out effect
Post by: FreeSpaceFreak on May 20, 2008, 09:47:55 am
IMO, more like this:

(http://staff.hard-light.net/setekh/subspace-trial.jpg)

Just a little less blurry.
Title: Re: In-transit jump out effect
Post by: Herra Tohtori on May 20, 2008, 10:21:29 am
Er... Subspace shouldn't have a starfield behind it.


Oh ye of little faith. (http://www.mediafire.com/?jbolyeu4bax)  ;7

...For those who don't want to download a 7MB short gameplay video of the effect, let it be said that all the stars in previous screenshots are part of the jump "vortex" effect. There are no stars on the skybox background.
Title: Re: In-transit jump out effect
Post by: Galemp on May 20, 2008, 11:22:19 am
My god... It's full of stars!

seriously, that effect is perfect. Perfect! :D Now let's get code support for it. The stretching doesn't matter one iota, it looks amazing as is... we can write off any stretching as being a byproduct of the space distortion resulting from the jump.
Title: Re: In-transit jump out effect
Post by: Herra Tohtori on May 20, 2008, 01:06:09 pm
Delicious Caek (http://www.mediafire.com/?ow1dcoecz1w), 61x1024^2 DDS files + an EFF file. 18.97 MB download...

Overrides the normal jump effect. If you want it to replace the Knossos effect, just rename it to warpmap02* instead of warpmap01*.

Also. I did not post a model file with it because it looks pretty good either with any of the models available, or with 3dwarp disabled... the video used VA's rather recent model, here's a comparision shot using Axem's model (which has a swirly UVmap that makes the black/transparency transitions moving outwards into a spiral but stars stay stationary...):

(http://i32.tinypic.com/2h7m0yc.png)


Looks completely different but strangely appropriate... :)


EDIT: I'm mipmapping the DDS files with another filtering options that doesn't fade the stars out when it resizes the main layer... new file coming up sooner than later. Should keep stars visible from further as well as just from point blank range.

EDIT2: Link updated. For anyone who wants to see the older one for comparision, it's still here (http://www.mediafire.com/?mmketxj9mez).
Title: Re: In-transit jump out effect
Post by: ShadowGorrath on May 20, 2008, 02:12:37 pm
Can you see how it looks on normal space? Should look distortiony, unless I understood something wrong.
Title: Re: In-transit jump out effect
Post by: jdjtcagle on May 20, 2008, 02:35:41 pm
That's cool looking :eek2:

But does subspace make any sense when they are coming from the sides?  I always thought it was point A to point B (one "entrance" to the subspace tunnel and one "exit" - no in-between).  What's your guys thought on that? 
Title: Re: In-transit jump out effect
Post by: Droid803 on May 20, 2008, 06:06:17 pm
Beautiful  :eek2:
Title: Re: In-transit jump out effect
Post by: Retsof on May 20, 2008, 07:33:21 pm
NICE!
Title: Re: In-transit jump out effect
Post by: blowfish on May 20, 2008, 09:34:43 pm
Well, I just looked at the code, and it looks like this would be pretty easy to implement.  It would require a bit of discussion about the finer points of how things should work/interact though.
Title: Re: In-transit jump out effect
Post by: Galemp on May 21, 2008, 08:07:01 am
Well, there's the little tickbox for 'mission in subspace' that turns on a bunch of things like the skybox and ambient SFX. Why not have it use this effect by default, as well?

Oh, and Blowfish... if you're looking for something to do... can you pleeeeeez make it possible to use the Nebula Lightning Storm in subspace missions? :D
Title: Re: In-transit jump out effect
Post by: Herra Tohtori on May 21, 2008, 08:18:23 am
But does subspace make any sense...

...not much actually. :p


Quote
...when they are coming from the sides?

They aren't coming in "from the sides" (of the subspace skybox model, if that's what you meant), it just looks damn much like it. Basically they are jumping into middle of the corridor from a subspace vortext that opens a "window" into the normal space they are supposed to be coming from.

Quote
I always thought it was point A to point B (one "entrance" to the subspace tunnel and one "exit" - no in-between).  What's your guys thought on that?


That's what this is supposed to be... What I'm thinking that for intersystem jumps, the ships jump into a common jump corridor, to which they have access from subspace nodes, and the blue-white swirly light coming from the vortex is a "window" into the jump node. Consequently, it would be logical to think that from the corridor, you should see normal space through the jump vortex.

Small distance, intra-system jump drives probably generate a ship-specific, limited jump corridor that behaves pretty much like the jump node-connecting big corridor, but disappears after use and can only be used for limited distances (d'oh). Same lighting dynamics apply though - you see into a corridor from normal space, and that means that in normal space, the effect should be swirly light vortex.
Title: Re: In-transit jump out effect
Post by: jdjtcagle on May 21, 2008, 08:30:28 am
But does subspace make any sense...

...not much actually. :p


Ahh... ok :p
Title: Re: In-transit jump out effect
Post by: Herra Tohtori on May 21, 2008, 08:45:09 am
Hmm, I wonder if this should be moved to FreeSpace Modding, as this isn't actually about upgrading an existing effect but rather change the philosophy behind a certain effect group (jump vortices) from what it was in FreeSpace and FreeSpace 2.
Title: Re: In-transit jump out effect
Post by: Solatar on May 21, 2008, 01:49:17 pm
I could see how this could turn into a thread discussing other ways to upgrade the subspace mission system (adding lightning storms, making it look more like FreespaceFreak's picture, etc.)
Title: Re: In-transit jump out effect
Post by: Galemp on May 21, 2008, 04:40:03 pm
Since (as an FSU upgrade team member) I would like to see this integrated into the core Media VPs and actuvated by default in all subspace missions, I'd like to keep it here.
Title: Re: In-transit jump out effect
Post by: Herra Tohtori on May 21, 2008, 05:03:42 pm
Since (as an FSU upgrade team member) I would like to see this integrated into the core Media VPs and actuvated by default in all subspace missions, I'd like to keep it here.

We talked about it in IRC with VA and he brought up an interesting point - canonically we don't ever see what the jumping out (or in for that matter) from a jump corridor looks like. Or, well, in one mission you do jump out if you phail the mission, but canonically that mission cannot be failed so clearly that is non-canon and we're free to change the effect for our purposes if we so want.

(rationalization for the win.) :p

So let it stay... I'd like to see this in MediaVP's as well. Especially as there's no canon evidence against it as was just proven.
Title: Re: In-transit jump out effect
Post by: blowfish on May 21, 2008, 05:08:23 pm
It needs to be coded first ;)
Title: Re: In-transit jump out effect
Post by: WMCoolmon on May 22, 2008, 04:49:23 pm
It'd be pretty cool if you could make it look as though the ship were actually flying into the effect, too, rather than disappearing at the horizon. A pseudo guess as to how you might do this:

Code: [Select]
if((dotproduct(normalized(Viewer - Warper), Warper->fvec)) > 0)
{
     do_effect();
     do_clipping();
}
else
{
     gr_buffer_set(READ_ONLY);
     do_effect();
     gr_buffer_set(READ_WRITE);
}

do_ship();
end_clipping();

Which would clip the ship if you were viewing it from the other side. Which would look pretty friggin' cool.

EDIT: Doh, on second thought, that wouldn't work at angles were the ship was longer than the apparent width of the effect. Oh well...
Title: Re: In-transit jump out effect
Post by: Goober5000 on May 22, 2008, 10:39:44 pm
My god... It's full of stars!
Most. Appropriate. Quote. Ever. :D

And yeah, this effect looks really cool. :yes: I vote for it to be included in the mediaVPs, with SCP support.  (It should be handled in the same way as the apply-loadout-to-wing and scrollable-command-briefing features: activated depending on whether the media file is present.)
Title: Re: In-transit jump out effect
Post by: blowfish on May 22, 2008, 10:51:04 pm
activated depending on whether the media file is present.

Or maybe weather or not its defined in fireball.tbl
Title: Re: In-transit jump out effect
Post by: Cobra on May 26, 2008, 03:15:55 pm
What the hell are you talking about? Subspace vortexes aren't defined in the fireball.tbl. :wtf:
Title: Re: In-transit jump out effect
Post by: Herra Tohtori on May 26, 2008, 03:22:04 pm
What the hell are you talking about? Subspace vortexes aren't defined in the fireball.tbl. :wtf:


Yes, they are...

You can name the texture in the warp.pof to anything you want (I tested by naming it to "boogaloo", should it matter any bit at all) and the game will use the textures defined for the effect in fireball.tbl... namely warpmap01 and warpmap02 for normal and Knossos effect respectively.

Excerpt from retail fireball.tbl:

Code: [Select]
...
$Name: WarpMap01 ; Used for the warp in / warp out effect
$LOD: 4

$Name: WarpMap02 ; Used for the KNOSSOS warp in / warp out effect
$LOD: 4
...
Title: Re: In-transit jump out effect
Post by: Cobra on May 26, 2008, 04:12:09 pm
That's odd, I just looked in the fireball.tbl before posting and found only explosion entries.
Title: Re: In-transit jump out effect
Post by: neoterran on May 26, 2008, 04:33:10 pm
Oh god, let's get this. This is awesome. I just got my old pc back up and running for freespace after giving up on a solid mac version. And it took me a half day to figure out what the optimal versions of everything were again. I settled on normal maps with 1112 and 1119 double shader setup (to avoid the nameplate issue) and the march Xt build. And the 3.6.10 betas. And it's significantly nicer than I remember, especially the new beams and the shivan shield effects, they look excellent. And thank GOD widescreen/reticle weirdness is fixed. That really sucked for a long time.

But this.... oh, the majesty.
Title: Re: In-transit jump out effect
Post by: Mobius on May 26, 2008, 04:46:17 pm
like a static star texture with a swirling edge

:welcomesilver:

Welcome to the HLPBB!!! :D

I think the effect should be boosted by a texture distortion...please note that the jump effect shows up many waves...
Title: Re: In-transit jump out effect
Post by: chief1983 on June 06, 2008, 10:23:13 am
Actually goober's complaint was my only one as well, it would be cool if the ship didn't disappear when you can see it going in, but did when viewed from behind the effect.  I'd hope to see that fixed somehow.
Title: Re: In-transit jump out effect
Post by: taylor on June 06, 2008, 12:26:21 pm
Actually goober's complaint was my only one as well, it would be cool if the ship didn't disappear when you can see it going in, but did when viewed from behind the effect.  I'd hope to see that fixed somehow.
I tried to do something like that with shaders, but it's not really possible in a compatible way with the current capabilities of the code.  What I was trying to do was to fade the ship away as it approaches the clip plane rather than having it disappear.  It would basically give the illusion of fog or something that the ship is passing into.  I never was able to get it working properly though.
Title: Re: In-transit jump out effect
Post by: Herra Tohtori on June 06, 2008, 05:31:43 pm
Well, this is what it should look like IMHO:

(http://i28.tinypic.com/35bcbqa.png)

Get it on full size, then watch it with eyes crossed; it should look as if the stars are at infinite* distance (along with subspace surroundings) and the subspace vortex is closer to the viewer so the parallax between the viewpoints shows that the stars are not glued onto the vortex' surface but instead are seen through the vortex...

Is it possible to somehow make a model that is only visible from the inside, then have an outside texture that is also see-through except on the vortex's place you could see to the "inside" of the sphere...?

Like this:

(http://i32.tinypic.com/511r0z.gif)
Title: Re: In-transit jump out effect
Post by: WMCoolmon on June 06, 2008, 06:15:06 pm
Actually goober's complaint was my only one as well, it would be cool if the ship didn't disappear when you can see it going in, but did when viewed from behind the effect.  I'd hope to see that fixed somehow.

I think that's the first time I've been mixed up with Goober...

I was thinking that it would be possible if you took advantage of RTT to render the ship once in the mission, and then again on the texture of the warp effect. The problems would be, first of all, you'd have to render a starfield, then the ship, and then clip the render using the effect (ie replace the alpha channel of the RTT texture with the effect texture). Second of all, I don't understand the math well enough to know right off how to make it look as if you were looking through the node, rather than at a flat texture. I think you'd have to move the 'camera' rendering the ship onto the texture.

But if you were able to do all that, especially the latter, you would have a very good starting point for doing Portals like in Portal or Prey. I'd say that it's worth undertaking, but I'm not taking it on right now.
Title: Re: In-transit jump out effect
Post by: Herra Tohtori on July 27, 2009, 03:53:18 pm
:necro:

Does anyone happen to still have this effect somewhere? I seem to have removed the file from my MediaFire account (if I even had an account at the time) and I don't have access to my own PC at the moment.

I could just make a new one of course, but still...
Title: Re: In-transit jump out effect
Post by: Colonol Dekker on July 27, 2009, 03:54:54 pm
What's an "in-transit jump effect?"
Title: Re: In-transit jump out effect
Post by: Herra Tohtori on July 27, 2009, 03:58:03 pm
It's a subspace vortex, except how it would potentially look while jumping OUT from the subspace, not into the corridor.

Basically, a swirling vortex of alpha masked piece of starfield. I had the effect uploaded along with a video of it in action, but MEdiaFire has eaten the links.

Zacam graciously offered to upload it as soon as he gets home, so it's being taken care of.
Title: Re: In-transit jump out effect
Post by: Colonol Dekker on July 27, 2009, 04:06:05 pm
Oh ok :)
Title: Re: In-transit jump out effect
Post by: High Max on July 27, 2009, 05:55:30 pm
;-)
Title: Re: In-transit jump out effect
Post by: Kolgena on July 28, 2009, 11:39:45 am
Eh? Wrong thread if we're discussing subspace mechanics.

One thing that struck me though, is the possibility of using the ends of the corridor as suns. I mean, it bothers the heck out of me when ships are pitch black (with no emissive light) in subspace corridors, even though the walls are swirling white/blue.
Title: Re: In-transit jump out effect
Post by: Dragon on July 28, 2009, 11:52:18 am
Increase ambient light in mission editor, it should help.