Dark Bit Factory & Gravity

PROGRAMMING => Freebasic => Topic started by: Dr_D on December 11, 2006

Title: Here's a lens mapping thing...
Post 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. ;)
Title: Re: Here's a lens mapping thing...
Post by: MrP on December 11, 2006
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...
Title: Re: Here's a lens mapping thing...
Post by: Shockwave on December 11, 2006
Really smart.
I like that. Have some Karma :)
Title: Re: Here's a lens mapping thing...
Post by: .:] Druid [:. on December 11, 2006
Very nice!  Karmaaaaa! :)
Title: Re: Here's a lens mapping thing...
Post by: Clyde on December 12, 2006
Cool Dr D. :D
Title: Re: Here's a lens mapping thing...
Post by: Dr_D on December 12, 2006
Thanks guys. ;)

By the way, what does the karma do? Can I buy stuff with it?  :clap:
Title: Re: Here's a lens mapping thing...
Post by: Jim on December 12, 2006
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
Title: Re: Here's a lens mapping thing...
Post by: Dr_D on December 12, 2006
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.
Title: Re: Here's a lens mapping thing...
Post by: Ghost^BHT on December 14, 2006
Quote
By the way, what does the karma do? Can I buy stuff with it?


Only in the afterlife.
Title: Re: Here's a lens mapping thing...
Post by: DrewPee on December 14, 2006
Nice piece of work!

Drew