Yes! The ripples return! What's different this time round is that I'm using a tiled plain created using a memblock, and with slightly curved normals. This allows me to apply sphere mapping with a constantly changing coloured texture to make the ripples look even cooler than before! Memblock meshes need a lot of setting up and manipulating, so I'm amazed I managed to stuff the whole lot into 20 lines exactly, it was originally about 250 lines. Btw I'm still keeping to the '5 commands per line' rule because I like a challenge
. Watch the code get completely messed up because of my comparison operators. You can download a .zip file containing the exe here:
http://www.mikeyben.org/darkb/ripples20.zip
Oh, there aren't any lights this time round because the effect looks cool enough on its own, and there wasn't any space to add more commands.
Your comments please!
EDIT: this won't work in dbc, because of the long lines
EDIT: added screenshot
Once I was but the learner,
now, I am the Master.