 |
Author |
Topic: Interactive Synthetic Lighting (Read 743 times) |
|
Jerronimo
|
Interactive Synthetic Lighting
« on: Oct 15th, 2003, 4:47am » |
|
Okey, so it was shorter than a week. Here's a little toy to let you experiment with synthetic lighting. There are two source images (mouse over the squares at the top of the screen to see them in their original form.) which you can adjust the amount of red green and blue in, using the sliders. http://www.cis.rit.edu/~sdlpci/Software/p5/syntheticLights enjoy!
|
|
|
|
Bijeoma
|
Re: Interactive Synthetic Lighting
« Reply #1 on: Oct 15th, 2003, 5:22am » |
|
awesome effects. each variation makes the the picture jump out more. and the lights are seeminly real like. bryan
|
|
|
|
Elrick

|
Re: Interactive Synthetic Lighting
« Reply #2 on: Oct 15th, 2003, 5:41pm » |
|
.... That's incredible! I've tried something similar to this before (just in Photoshop, actually) but this thing of yours is -perfect.- Blown away.
|
|
|
|
Jerronimo
|
Re: Interactive Synthetic Lighting
« Reply #3 on: Oct 15th, 2003, 6:11pm » |
|
I tried experimenting with this sort of thing in Photoshop, but the problem is that you really need to add the two layers, rather than have one transparent... since the lights add to eachother. So, for each pixel, you basically add each image, adjusted by the RGB value for that light. Then there are some simple checks to make sure that the value is within 0..255 per each of R,G,B, and you're done. (I used P5's "Constrain" operator for this function.) I'd have used original photographs for it, rather than Paul Haeberli's photos, but his were quick to get, and they were made specifically for this purpose.
|
|
|
|
REAS
|
Re: Interactive Synthetic Lighting
« Reply #4 on: Oct 17th, 2003, 9:46am » |
|
jerronimo, which version of processing are you using to compile this code? i'm having some problems viewing it through the web. + casey
|
|
|
|
Jerronimo
|
Re: Interactive Synthetic Lighting
« Reply #5 on: Oct 17th, 2003, 2:17pm » |
|
I used 0065 to build it on OS X ...Although, since I upgraded to Quicktime 6.4 yesterday, I can't build anything with P5 anymore.
|
|
|
|
REAS
|
Re: Interactive Synthetic Lighting
« Reply #6 on: Oct 18th, 2003, 2:03am » |
|
thanks for the info regarding version. declaring your variables as "final" makes your applets not viewable in the default windows applet viewer.
|
|
|
|
Jerronimo
|
Re: Interactive Synthetic Lighting
« Reply #7 on: Oct 18th, 2003, 5:38pm » |
|
that's pretty odd. I only used final variables as a #define/macro type of thing. (Is there a better way?)
|
|
|
|
|