|
-
Jan 21st, 2002, 12:51 AM
#1
Graphics Effect Math
How would you make a bubble lens effect, like looking through a fish-eye lens.
I wanted to know the equations behind the pixel color translations. Anyone know where I can find this? Or have any examples?
-
Jan 21st, 2002, 10:22 AM
#2
-
Jan 21st, 2002, 01:27 PM
#3
ahh, so simple. Very Nice Z! Thanks.
So I'm guessing that this would also work with other equations suck as low amplitude sine/cosine curves. Hmm, that would be an interesting project. Well if I ever finish the project I'll be sure to post it here!
Thanks again!
NOMAD
-
Jan 21st, 2002, 02:46 PM
#4
I forgot to mention =). All of that was out of my own head, so you may want to do a bit more research, but it seems pretty sound to me. Points nearest the center of the image will come out close to the original, while ones nearest the edge will be distorted.
Z.
-
Jan 23rd, 2002, 08:45 PM
#5
Addicted Member
Damn you and your college-level education, zaei!
Btw, there's a very very fast way to apply effects like that... but if I tell you how, my friend who invented the trick will kill me
"1 4m 4 1337 #4xz0r!'
Janus
-
Jan 24th, 2002, 01:42 PM
#6
You need to add 128 to j in the call to GetPixel(). Also, since squaring any value will give you a positive value, you need to determine if the pixel you should be getting is negative or positive.
Z.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|