Semi-Translucent Colored Object Filters Light?

Suggest changes and improvements to Algodoo.

Semi-Translucent Colored Object Filters Light?

Postby Twinkle » Wed Sep 09, 2009 3:24 am

The new "laser" objects are definitely fun to play with. I was wondering how hard it would be for objects with opacity<1 and saturation>0 to filter the various colors of light based on hue and value. For instance, a very red, translucent object could filter out much of the other colors, especially depending on how long the light stays within the object.

Or, if the other colors would be reflected more, we could demonstrate sunsets with a bunch of air particles that reflect blue and transmit other colors. Shining white light into the particles should disperse blue in random directions while allowing for a "yellow" sun beam to pass through. The deeper the beam has to travel through the material, the more orange/red it would become.

The acts of absorbing certain colors and reflecting vs. transmitting certain colors actually seem to be two different variables to consider. I'm not sure how they could be combined, so I guess this is really two different suggestions.
Twinkle
 
Posts: 9
Joined: Tue Sep 08, 2009 10:42 pm

Re: Semi-Translucent Colored Object Filters Light?

Postby admin » Wed Sep 09, 2009 8:32 am

Well, this filtering does occur and should work in moste cases. Start with white light and you should find that different wavelengths are affected in different ways. We use a generic model for this, that may not representative for all materials of course.

However, some phenomena, like when light passes through small particles (or the size of the wavelength of light) in the atmosphere (dust, pollen, smoke, water) are real hard to simulate since they require a really large number of internal reflections to give the correct result (this is referred to as "Mie scattering theory" and it relies on a infinite sum of reflections).

We certainly want to improve all kinds of things to get more precise physics, including light and optics. The concept of a "model" is essential in physics, and there is no model that is even close to reproducing all phenomena at all scales and under all circumstances, but we will always work on improving our models!

It would be really helpful if you could create a scene that is supposed to reproduce a certain physical property of light and matter, submit the scene to algobox, and describe what goes wrong (bug) or what is missing from our physical models.
Image
User avatar
admin
Site Admin
 
Posts: 168
Joined: Thu Jun 11, 2009 2:17 pm

Re: Semi-Translucent Colored Object Filters Light?

Postby Chronos » Wed Sep 09, 2009 9:15 am

viewtopic.php?f=16&t=97 this has been suggested ;)
TheWinkits wrote:They both looks of cuking amazing
User avatar
Chronos
[Most Active Member 2010]
 
Posts: 4457
Joined: Mon Aug 31, 2009 6:00 pm
Location: Californania

Re: Semi-Translucent Colored Object Filters Light?

Postby Twinkle » Wed Sep 09, 2009 3:24 pm

admin wrote:However, some phenomena, like when light passes through small particles (or the size of the wavelength of light) in the atmosphere (dust, pollen, smoke, water) are real hard to simulate since they require a really large number of internal reflections to give the correct result (this is referred to as "Mie scattering theory" and it relies on a infinite sum of reflections).


I would think an approximation would suffice. Kids can extrapolate rather well.

The way I see it, there are three basic effects that can be simulated: reflection, refraction, and absorption. Each of these effects can be dependent on the wavelength of the light involved. Right now, refraction is modeled exactly like that... hence the spectra from prisms, etc. Absorption as a function of wavelength, as Chronos mentioned, has been suggested elsewhere. Reflection is modeled, but not as a function of wavelength.

admin wrote:It would be really helpful if you could create a scene that is supposed to reproduce a certain physical property of light and matter, submit the scene to algobox, and describe what goes wrong (bug) or what is missing from our physical models.


Here is the best I can do so far:

Image
Author: Twinkle
Title: Why The Sky is Blue
File Size: 98.45 kB
Rating: Image
ImageImage

The example has to use refraction instead of reflection, which is a sort of all-or-nothing way to redirect the light (I notice that your reflections can be partial... allowing some light to be transmitted). Because of this, I've had to use many laserpens of the same color. I originally made two different kinds of material and red, green, and blue sources, since the amount of reflection should be a function of wavelength. However, I think that since I'm using refraction in the example (which is already a function of wavelength), that wasn't really necessary.

The better implementation would be similar, but with a single laserpen of white light. As the light struck a particle, a portion of it, based on wavelength, would be reflected (some of the blue, a smaller amount of the green, none of the red). The rest would be transmitted. This would keep the transmitted wavelengths going in the same direction (more or less), becoming more and more yellow, then red. The reflected wavelengths would demonstrate why the sky is blue. If the light passed through a thin layer of particles, it would come out the other end yellow. If it passed through a thicker layer, it would come out orange or red.
Twinkle
 
Posts: 9
Joined: Tue Sep 08, 2009 10:42 pm

Re: Semi-Translucent Colored Object Filters Light?

Postby pixartist » Thu Sep 10, 2009 12:36 pm

Image
Author: pixartist
Title: Colorfilter for suggestions
File Size: 42.01 kB
Rating: Image
ImageImage
Image
pixartist
 
Posts: 65
Joined: Wed Sep 02, 2009 5:30 pm

Re: Semi-Translucent Colored Object Filters Light?

Postby KarateBrot » Fri Sep 11, 2009 4:13 am

Image
Author: KarateBrot
Title: Gravitational redshift
File Size: 34.44 kB
Rating: Image
ImageImage

There's a physical effect to change the color of the laser depending on gravitation. It's not as cool as real filters but anyhow you can get the red or the blue color of any color you choose.
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany


Return to Suggestions

Who is online

Users browsing this forum: No registered users and 6 guests