ErosOlmi
30-04-2011, 17:55
http://www.dbfinteractive.com/forum/index.php?topic=5113.0
Check this all: http://www.youtube.com/watch?v=myz9rZEmmg4&feature=player_embedded
Petr Schreiber
01-05-2011, 16:47
Very impressive,
it seems the chromatic aberration effect (visible on kkapture: ASD - Rupture demo), that is:
type of distortion in which there is a failure of a lens to focus all colors to the same convergence point
(Wikipedia) (http://en.wikipedia.org/wiki/Chromatic_aberration)
is more and more popular. I have seen it used even in common games, such as DIRT 2 or Tomb Raider: Underworld.
It is also achieveable in ThinBASIC, by rendering scene 3 times, each time one color channel to texture, and then composing it together using blending.
I attach example here, you should be able to use F1 to see default rendering, F2 to see ugly "purple fringing" you can see on lower quality lenses and F3 to see effect used commonly in games to make scene "look different".
The code is not state-of-art, it is just proof you can get it working with TB, and the effect is slightly exaggerated to be more visible.
Petr