Welcome, Guest. Please Login or Register.  • Help
SMF Underground
+ SHMUP-DEV » SHMUP DEV FORUMS » Training Grounds
|-+ How would you code these effects?

Pages: [1]   Go Down
0 Members and 1 Guest are viewing this topic. Topic Tools  
Read April 10, 2009, 11:34:20 pm #0
jonathanasdf

How would you code these effects?

http://i207.photobucket.com/albums/bb156/jonathanasdf/Untitled3.jpg
http://i207.photobucket.com/albums/bb156/jonathanasdf/Untitled2-1.jpg
http://i207.photobucket.com/albums/bb156/jonathanasdf/Untitled1-1.jpg

I'm talking about the distortion effect where the boss is, where it kinds of distorts space around it.

I'm actually using flash, but I don't think there are that many people fluent in actionscript here, so any language is fine, I'll try to work on porting it to flash. Please explain as much as possible! Thanks.
Offline  
Read April 14, 2009, 12:16:40 am #1
VectorVanDoom

Re: How would you code these effects?

first of all, i dont an answer
secondly to say is, there are 3 incarnations of as, so which do u use?
if you do use action script 3 (why wouldnt you?) i know that theoretically speaking there is a function to do this, but i have no clue how. may be this source code can give you a hint http://wonderfl.kayac.com/code/ea31ed4b0acfa0e6499147d5e0a62009a142a6da
« Last Edit: April 14, 2009, 12:40:37 am by VectorVanDoom »
Offline  
Read April 14, 2009, 12:24:50 am #2
jonathanasdf

Re: How would you code these effects?

ありがとう。これわいい。
Offline  
Read April 14, 2009, 12:32:52 am #3
the2bears

Re: How would you code these effects?

ありがとう。これわいい。

Seems the Flash at wonderfl might help.  The way I would approach something like this is to divide the background (as a texture) into a grid, with each cell part of the larger texture.  Then, you can adjust the vertex coordinates of the texture render accordingly, keeping the texture coordinates the same... this will give it a wave, etc.  This stretches and squishes the texture, creating a fluid like effect.

Bill


the2bears - the indie shmup blog
Offline  
Read April 14, 2009, 12:40:46 am #4
VectorVanDoom

Re: How would you code these effects?


i just found this, which might be of interest to you
http://wonderfl.kayac.com/code/b602bfd18e6d5d45613087e2912ccae8310a8597# i dont know if displacement mapping is the right term, though
Offline  
Read April 14, 2009, 12:54:59 am #5
jonathanasdf

Re: How would you code these effects?


i just found this, which might be of interest to you
http://wonderfl.kayac.com/code/b602bfd18e6d5d45613087e2912ccae8310a8597# i dont know if displacement mapping is the right term, though

hmm I don't think that will be too useful lol.

I think I might be able to figure out some math for a lens-like effect, and that might be enough.
Offline  
Read May 12, 2009, 04:31:46 am #6
Doozer

Re: How would you code these effects?

This might be done by rendering the background to a texture, then distorting the texture. You could do this either by laying the texture on a dense grid and moving the vertices around (while keeping the texture coordinates the same) or by using a fragment shader to distort the texture at a certain point.
Offline  
Read May 12, 2009, 07:50:56 am #7
VilleK

Re: How would you code these effects?

The new Pixel Bender feature included in Flash Player 10 can do all kinds of real-time bitmap filtering and effects:

http://labs.adobe.com/technologies/pixelbender/

Fisheye-example (requires Flash player 10):

http://www.dasprinzip.com/pExamples/p58.html


ZGameEditor - Develop 64kb games for Windows.
Thrust for Vectrex - ROM-file and 6809 source code.
Offline  
Pages: [1]   Go Up
Jump to:  

Page created in 0.128 seconds with 19 queries.