Dark Bit Factory & Gravity
PROGRAMMING => Freebasic => Topic started by: Dr_D on December 11, 2006
-
It's more of a tutorial than anything. It was a little less detailed before, but I decided to add a couple more effects to it. The code is pretty well commented, so if anyone wants easy lens mapping, here it is. ;)
-
Sweet. I was thinking of using something like this in my upcoming prod.... Now it looks like like I have the perfect learning material..... Nice One...
-
Really smart.
I like that. Have some Karma :)
-
Very nice! Karmaaaaa! :)
-
Cool Dr D. :D
-
Thanks guys. ;)
By the way, what does the karma do? Can I buy stuff with it? :clap:
-
http://dbfinteractive.com/index.php?topic=986.0
Thanks for posting the source code, karma :P. Had you thought about pre-computing the effect? Basically for each pixel in the square containing the lens, you could store an x,y offset which tells you where to get the pixel from.
Jim
-
Yeah, it would surely be faster using an array to store pre-computed coords, but I was afraid it wouldn't be as easy to understand.
-
By the way, what does the karma do? Can I buy stuff with it?
Only in the afterlife.
-
Nice piece of work!
Drew