Visual effect - not sure what you call this.
by Nathan Huffman · in Torque Game Builder · 10/18/2006 (9:54 pm) · 11 replies
F.E.A.R. comes to mind first. When rockets or bombs explode, the area effected has the light distorted (is this called 'distortion'?)
More/less, camera's view of the explosions location has 'bent light' - it's a reall neat effect.
Anyone know what I'm talking about - and the quickest way (if anything existing) to have this happening in my scenegraph?
More/less, camera's view of the explosions location has 'bent light' - it's a reall neat effect.
Anyone know what I'm talking about - and the quickest way (if anything existing) to have this happening in my scenegraph?
#2
10/18/2006 (10:42 pm)
Of course, to actually implement this, you'd need to implement per-pixel shaders in T2D.
#3
10/21/2006 (6:16 pm)
Of course, it is simple as that ^^
#4
10/21/2006 (6:38 pm)
There are some distortion Photoshop filters that could be used. Be creative.
#5
The distortion I need is scenegraph wide (excluding only the GUIs).
10/24/2006 (4:09 pm)
I don't suppose anyone has already done this or is offering to do it for a price?The distortion I need is scenegraph wide (excluding only the GUIs).
#6
10/24/2006 (4:12 pm)
No, but I doubt it would be very hard. CG TGB would be neat or you could wait for TorqueX.
#7
Heres how is done (in flash at least)
First we need a mask (a filter that will only let a portion of the image to be seen) in this case for a ripple we could use a ring, since we need the image to animate our ring will be animated as a ring that grows and fades away the larger it gets.
Then we need a background image (ussually a non moving image)
Make a copy of that image and modify it per example scale it 110% of the size. (or just move it)
Now place the copy of the image on top of the original image
Use the animated mask to show only a ring portion of the distorted image.
Presto! ripple effect! use several rings with different distortion sizes for a more convincing effect.
10/25/2006 (8:37 am)
Actually you can do this in flash by using a mask that presents a slightly modified scene in size or position. this is the famous "ripple effect" you've seen everywhere.Heres how is done (in flash at least)
First we need a mask (a filter that will only let a portion of the image to be seen) in this case for a ripple we could use a ring, since we need the image to animate our ring will be animated as a ring that grows and fades away the larger it gets.
Then we need a background image (ussually a non moving image)
Make a copy of that image and modify it per example scale it 110% of the size. (or just move it)
Now place the copy of the image on top of the original image
Use the animated mask to show only a ring portion of the distorted image.
Presto! ripple effect! use several rings with different distortion sizes for a more convincing effect.
#9
10/25/2006 (9:44 am)
Azrael, that'll only allow you to affect the background, and won't affect foreground elements (at least not convincingly). In order to affect the foreground elements, you'd need to modify the pixel data in realtime (ie, pixel shaders).
#10
but hey if you know how to apply pixel shaders in TGB then please share that as a resource or something ;)
10/25/2006 (10:16 am)
Well.. I agree, but sometimes is good to be resourceful , look at geometry wars (or gridwars for PC) they did the "ripples" by simply modifying the grid they are drawing each frame. ;)but hey if you know how to apply pixel shaders in TGB then please share that as a resource or something ;)
#11
10/25/2006 (10:37 am)
Ha, I wish. :) I'm an artist pretending to be a programmer, who doesn't have the first clue about adding shaders (though the shader languages themselves are pretty neat, from what I've seen).
Torque Owner Matt Vitelli