Allegro.cc - Online Community

Allegro.cc Forums » Game Design & Concepts » Warp effects

This thread is locked; no one can reply to it. rss feed Print
Warp effects
Ariesnl
Member #2,902
November 2002
avatar

I want to make a "go into warp" and "drop out of warp" effect. It will probably be an animated sprite, so it will consist of frames. I already have an "animation" class for such a thing. But how to get the animation frames themselves... there are explosion or fire generators that spit out the frames you need.. but a warp effect..... any ideas ?

Perhaps one day we will find that the human factor is more complicated than space and time (Jean luc Picard)
Current project: [Star Trek Project ] Join if you want ;-)

Audric
Member #907
January 2001

If you mean in terms of visual, have you considered using decreasing opacity, it provokes a feedback effect where images merge with each other. And in the second half you increase back opacity, so everything ends up sharp again.

Ariesnl
Member #2,902
November 2002
avatar

That would be more of a cloacking effect.

Perhaps one day we will find that the human factor is more complicated than space and time (Jean luc Picard)
Current project: [Star Trek Project ] Join if you want ;-)

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Mark Oates
Member #1,146
March 2001
avatar

Have you considered capturing a few screen-grabs from an episode and editing them in Photoshop? The opening credits from TNG might be a good source.

--
Visit CLUBCATT.com for cat shirts, cat mugs, puzzles, art and more <-- coupon code ALLEGRO4LIFE at checkout and get $3 off any order of 3 or more items!

AllegroFlareAllegroFlare DocsAllegroFlare GitHub

Gideon Weems
Member #3,925
October 2003

What do you mean by warp effect? Do you have an example video?

LennyLen
Member #5,313
December 2004
avatar

What do you mean by warp effect? Do you have an example video?

I'm assuming he means something long these lines:

video

Ariesnl
Member #2,902
November 2002
avatar

I need a special effect sprite ( bit like an explosion or fire)
for when an NPC ship leaves or enters the same sector as the enterprise. So you will see a ship appearing or disappearing

Perhaps one day we will find that the human factor is more complicated than space and time (Jean luc Picard)
Current project: [Star Trek Project ] Join if you want ;-)

LennyLen
Member #5,313
December 2004
avatar

So like the effect that appears at 0:57 of the video?

Ariesnl
Member #2,902
November 2002
avatar

Something like it yes..
would there be any algorithm to generate such a thing as sprite frames ? Like a explosion generator, but for warp.

Perhaps one day we will find that the human factor is more complicated than space and time (Jean luc Picard)
Current project: [Star Trek Project ] Join if you want ;-)

Audric
Member #907
January 2001

The original visual effect is similar to a long exposure : As the light sources move, the points illuminated stay illuminated at the maximum level which was ever reached.

With pixel-based units, you have two approaches :
- perform a very precise sprite movement loop, pixel-per-pixel if you can. At each frame, render things with a blending function max(old_pixel,new_pixel).

- Use a system similar to "contrails", where you keep track of lines of segments, over the movement of the craft. Then you draw textured quads alongside this trail, using the same kind of blending function. The good news is that in your scenario, the lines are straight, so you don't have the problem of subsequent segments overlapping each other. Another good news of this system, is that you are able to render the image completely from scratch in one go.

edit: oh, if you mean pre-render them manually, check for example if your painting program has a blending mode like "Maximum", or "Lighten" (in Paint.NET).

Ariesnl
Member #2,902
November 2002
avatar

Thanks all of you.
I think Audric's idea is the way to go..
I'll see if I can implement it this week.
btw: for anyone who is interested, a Linux and a Windows version of the game thusfar can be downloaded here
https://www.allegro.cc/depot/StartrekProject

Perhaps one day we will find that the human factor is more complicated than space and time (Jean luc Picard)
Current project: [Star Trek Project ] Join if you want ;-)

beoran
Member #12,636
March 2011

This is an oldie, and it might be hard to get it to work, but it's really nice:
EGG by Shawn Hargreaves, our famous predecessor. See here: http://www.shawnhargreaves.com/egg/

I'd be tickled pink if someone ported it to Allegro 5...

Mark Oates
Member #1,146
March 2001
avatar

beoran said:

EGG

Man that's incredibly well written! :o

--
Visit CLUBCATT.com for cat shirts, cat mugs, puzzles, art and more <-- coupon code ALLEGRO4LIFE at checkout and get $3 off any order of 3 or more items!

AllegroFlareAllegroFlare DocsAllegroFlare GitHub

Specter Phoenix
Member #1,425
July 2001
avatar

I love Star Trek, and remember when my friends were blown away by me correctly guessing the Enterprise-E was going to be Sovereign Class before they even revealed it. Even wrote a fanfic about the Enterprise-N (trust me it was terrible). Sorry, I know, my usual off-topic rambles, ignore me.

Go to: