Dark Bit Factory & Gravity

GENERAL => Challenges & Competitions => Topic started by: Shockwave on June 07, 2009

Title: [MAGNIFICATION] Life through a lense
Post by: Shockwave on June 07, 2009
This is a pretty dirty way of getting a magnifying glass effect.
four magnifying glasses pass over the chequered background, the pattern is magnified inside the "lenses", the magnifying glasses also magnify each other too.

Very ugly colours, rushed and dirty code just to get the challenge started, no doubt there will be much better ideas than this!

[ARCHIVE UPDATED]
Title: Re: [MAGNIFICATION] Life through a lense
Post by: benny! on June 07, 2009
Wow - that was a fast entry.

Nice lense fx. Runs smooth here. N1!
Title: Re: [MAGNIFICATION] Life through a lense
Post by: Shockwave on June 07, 2009
Hehe, it was made in an hour :) I think it will be beaten but thatnks Benny.

I hope to take the time and make something else. too
Title: Re: [MAGNIFICATION] Life through a lense
Post by: Pixel_Outlaw on June 08, 2009
I liked that you didn't have all the lenses at the same height and they overlapped and distorted again.
Title: Re: [MAGNIFICATION] Life through a lense
Post by: Jim on June 09, 2009
A very old effect.  Nicely done, but let's hope we see something new!!

Jim
Title: Re: [MAGNIFICATION] Life through a lense
Post by: Shockwave on June 09, 2009
A very old effect.  Nicely done, but let's hope we see something new!!

I am a very old person :)
Title: Re: [MAGNIFICATION] Life through a lense
Post by: rdc on June 09, 2009
A very old effect.  Nicely done, but let's hope we see something new!!
I am a very old person :)

You're a baby compared to me. :)
Title: Re: [MAGNIFICATION] Life through a lense
Post by: ferris on June 09, 2009
Not compared to me :D :P
Title: Re: [MAGNIFICATION] Life through a lense
Post by: Shockwave on June 10, 2009
Make the most of your youth Ferris :) Getting old sucks.
Title: Re: [MAGNIFICATION] Life through a lense
Post by: Clyde on June 10, 2009
Nice and nifty example for people to brain storm with. And cheers for posting the source too dude.

I wonder what my life would look like through a lense! :p
Title: Re: [MAGNIFICATION] Life through a lense
Post by: Shockwave on June 11, 2009
I wonder what my life would look like through a lense! :p

Do you know anyone who wears glasses that you could ask? :)
Title: Re: [MAGNIFICATION] Life through a lense
Post by: ferris on June 12, 2009
My new glasses are coming in hopefully next week :D
Title: Re: [MAGNIFICATION] Life through a lense
Post by: Hotshot on June 14, 2009
look cool  ;D
Title: Re: [MAGNIFICATION] Life through a lense
Post by: Shockwave on July 23, 2009
I realised that the simple squares texture I had in this did it no favours so I modified the code slightly to load a picture (found it on the net).

Hope u like it!
Title: Re: [MAGNIFICATION] Life through a lense
Post by: Hezad on July 23, 2009
Ah yeah, looks really cool with the picture as the background ! (at least from the screnshot)
Title: Re: [MAGNIFICATION] Life through a lense
Post by: combatking0 on July 23, 2009
Those stacking lenses are really cool! I bet the maths behind this is quite powerful, and it even runs at full speed on my laptop.
Title: Re: [MAGNIFICATION] Life through a lense
Post by: Way.net on July 26, 2009
Blimey nearly missed this one.

Cool effect over a nice landscape :clap:
Title: Re: [MAGNIFICATION] Life through a lense
Post by: Shockwave on July 26, 2009
Thanks Wayne, Ck and Hezad :)
Title: Re: [MAGNIFICATION] Life through a lense
Post by: Shockwave on July 26, 2009
Source code is added here;

http://www.dbfinteractive.com/forum/index.php/topic,4274.0.html (http://www.dbfinteractive.com/forum/index.php/topic,4274.0.html)
Title: Re: [MAGNIFICATION] Life through a lense
Post by: va!n on July 26, 2009
Nice effect... runs extreme smooth here!
Title: Re: [MAGNIFICATION] Life through a lense
Post by: Yaloopy on July 27, 2009
Sorry for not seeing this earlier. Nice effect and props for the source.
Title: Re: [MAGNIFICATION] Life through a lense
Post by: Shockwave on July 27, 2009
People have been very kind to me here, thank you for the nice comments, in truth it's only a hack, it's not even a true lensemap that's why it runs fast, it's just a straightforward horizontal interpolation, a flat square is just stretched between the edges of a circle. It's the way almost all the oldschool lenses had to be made once upon a time. :)

There are better (and probably just as fast) methods for doing this by precalculating a real sphere and just changing the colour of the texels to do a false refraction on the image underneath it, it'd probably look much nicer :)
Title: Re: [MAGNIFICATION] Life through a lense
Post by: Yaloopy on July 27, 2009
Yup, but if this was being judged as part of a competition where you had one hour to hack together a magnification effect, I'm sure you wouldn't have many competitors for first place.
Title: Re: [MAGNIFICATION] Life through a lense
Post by: Shockwave on July 28, 2009
Yup, but if this was being judged as part of a competition where you had one hour to hack together a magnification effect, I'm sure you wouldn't have many competitors for first place.

Hehe, there lies the problem, lots of people here did a better job, I don't expect to get anywhere near the top 5 even. :)
Title: Re: [MAGNIFICATION] Life through a lense
Post by: combatking0 on July 28, 2009
Even though I now understand how it was done, it's still a cool effect.

I don't know how to do it in Flash, though it may be possible.