We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Lights (Read 492 times)
Lights
Mar 18th, 2007, 5:25pm
 
Hi,

I'm new to processing and have been working on creating a simulation of firefly synchronisation (http://www.bettstetter.com/publications/tyrrell-2006-minema-firefly.pdf). I've got my 3D environment set up and have my fireflies 'flocking / swarming' using something similiar to the perlin noise technique described here: http://www.flight404.com/blog/?p=67

What I'm now having problems finding is a definitive guide to using light sources (kinda needed for fireflies ^^ ). So far, attempts to create light sources haven't gone so well.
I'm looking to create 'halo'-like light sources, but using pointLights doesn't seem to be working. Can anyone point me to a guide or some example code?



Re: Lights
Reply #1 - Mar 18th, 2007, 9:24pm
 
Lights themselves aren't visible, you only see the light they emit, when it hits objects.

I think you would get a better effect by using a partially transparent image for each firefly.
Re: Lights
Reply #2 - Mar 18th, 2007, 11:21pm
 
Thanks for the help - I see. That kinda confirms what I've been discovering.
That said, would it be possible to apply alpha channels to shapes? What I'm thinking is a solid 'firefly' shape, and an slightly transparent 'halo' - a sphere within a sphere, that is lit up when a firefly, uh, fires (?).
I'll keep experimenting - thanks again.
Page Index Toggle Pages: 1