LWJGL + GLSL = Fun

Started by Funkapotamus, June 12, 2005, 06:53:38

Previous topic - Next topic

Funkapotamus

A long long time ago Funkapotamus decided to start messing with shaders.  He had fun, however, his options were limited.  He was unable to do anything "really badass" since he didn't know very much about shaders.  And so, one day when Funkapotamus was messing around with things, he created this nifty effect:

http://i15.photobucket.com/albums/a363/Funkapotamus/zerobehindglass.jpg  

Funkapotamus liked this effect, however, it involved just two textures.  "If only the whole screen were a texture!", he thought.  And so, Funkapotamus soon learned of Pbuffers and the wonderful glCopyTexture2D command.  The result made him glad.

Ladies and Gentlemen.  I give you Pbuffers + Shader:

http://i15.photobucket.com/albums/a363/Funkapotamus/frame2.jpg
http://i15.photobucket.com/albums/a363/Funkapotamus/frame3.jpg
http://i15.photobucket.com/albums/a363/Funkapotamus/frame4.jpg
http://i15.photobucket.com/albums/a363/Funkapotamus/frame5.jpg

The effect is animated by the way- the ring grows.

Mwahhahaha!

(I'm using a desktop background .gif as the backdrop scenery.  Hence the watermark at the bottom.)

spasi

Quote from: "Funkapotamus"And so, Funkapotamus soon learned of Pbuffers and the wonderful glCopyTexture2D command.  The result made him glad.

And the fun gets even better with GLSL + EXT_fbo. Last week I implemented HDR rendering with bloom, all in less than 300 lines of (Java) code. It's getting so easy to add more and more effects that you can't even resist it! :lol: