Author Topic: Invisible ship warpin effect  (Read 2280 times)

0 Members and 1 Guest are viewing this topic.

Offline JSRNerdo

  • [`_`]/
  • 29
  • Gone!
Invisible ship warpin effect
Hello! I want to do a dumb thing again! In short, I want to use warp-effect to make a great big portal, then have lots of ships come out that portal at once. Right now, I don't think this is very possible because all those ships have their own warp effect. I could use other warpin types, but they would just make them appear without the speedup-speeddown sequence. So what I'd like to do is make just the warpin effects for those ships invisible, and just once. How would I go around doing this?
Former Inferno lead, BTA fredder-ish and DE fredder. Driven out by ordinary fascists the_e, aesaar and general battuta. Will return if they're ever removed.

 
Re: Invisible ship warpin effect
Color me interested in learning how to do this as well -- could be useful for some stuff I'm working on. I imagine you might need to do some table editing at the least!

 
Re: Invisible ship warpin effect
I thought there was a feature introduced for jump gates and capships with fighters out in hyperspace in TBP that can do that, but I don't know what it's called.
There are only 10 kinds of people in the world;
those who understand binary and those who don't.

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
Re: Invisible ship warpin effect
I had proposed something like this for TBP some time ago.  I suggested that there be an option in the ships editor when showing no warp effect, to preserve the acceleration and deceleration effects.
The Trivial Psychic Strikes Again!

 

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: Invisible ship warpin effect
Now this is an interesting question!

I know of no way to actually alter the warp itself other than changing the warpin/warpout type. All other warp changes, afaik, are game wide affecting all ships always.

You have a couple problems to solve.

One is the warpin speed. You want ships to "come through" the portal at higher than max velocity and then slow down. This may be something you can do with the coordinate manipulation SEXPs, but I'm unsure. And they can be tricky to understand. Either way, I'd start there.

The second problem is the clip plane. Ships that come through subspace have a "clip plane" that is what the code uses to cause the front of the ship to gradually be visible as it comes through the warp. Depending on your usage, this may not be an issue. If this is a cutscene or other "controlled camera" situation, then you can be sure that the camera doesn't see behind the warp. This, in effect, nullifies the issue as the player could never see behind the warp. If not, then you need some way for them to gradually become visible. FSO has a cloaking effect that could approximate the gradual appearance and, iirc, the effect is based on an internal sort of shader or animation that could possible be altered. I don't know of anyone who's actually done that, but it's worth a bit of research. Another, and more performance costly, option is to texture swap the ships to an animated texture that wipes from transparent to not transparent. That could get really tricky with UV maps, though.

Now, none of this includes ideas or thoughts that use LUA or other more advanced modding. Those things are the things I still hire out to Axem. :)

Of course, the last option is to request a new feature as Trivial Psychic suggested.
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Invisible ship warpin effect
FSO has a cloaking effect that could approximate the gradual appearance and, iirc, the effect is based on an internal sort of shader or animation that could possible be altered.
It wouldn't be a very good starting place since the cloaking effect applies to the whole ship at once and just makes it shimmer out of view (once the animation is finished, FSO simply doesn't render the cloaked ship, rather than continuing to render it and just making it invisible with the shader... just in case anyone was wondering how that worked, internally); you might think that the FS2 loadout animation would be a better starting point (after all, it actually performs a "wipe" effect similarly to subspace portals); unfortunately it also uses a clip plane, and they're defined in the code rather than in the shaders.

Another, and more performance costly, option is to texture swap the ships to an animated texture that wipes from transparent to not transparent.
I would expect that not to work right because of FSO's issues regarding transparent textures, and specifically replacing a non-transparent texture with a transparent one, or vice versa.

Of course, the last option is to request a new feature as Trivial Psychic suggested.
Honestly, I think doing this code-side in some way would probably be the easiest.
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: Invisible ship warpin effect
A hacky idea of approaching that would be to replace the "knossos" warp animation with an invisible texture. Then you could set the ships to use it and they'd do what you want. Of course, you'd lose the ability to use the knossos (green instead of regular blue) warp effect. If you don't intend to use it otherwise, you may try that.

 
Re: Invisible ship warpin effect
Can you clone that effect and create an invisible version, perhaps? Like with a tbm used to clone and modify a ship or weapon?

 
Re: Invisible ship warpin effect
Seems odd that this was never made a feature for TBP, though. I was sure they had something for the jump gates, but I guess it's just my memory playing tricks. Might be a good idea to look into coding this as a feature though, since TBP is being worked on again, regardless of IPA's outrageous claims in the matter.
There are only 10 kinds of people in the world;
those who understand binary and those who don't.