Image:
 Author: hiltropper Group: Default Filesize: 328.52 kB Date added: 2013-11-01 Rating: 5.6 Downloads: 1082 Views: 666 Comments: 4 Ratings: 2 Times favored: 1 Made with: Algodoo v2.1.0 Tags:
|
I made a very simple light script. i have also made one spotlight with focus and everything ,but it is not ready for use now. This one is a simple circular one, but it could be useful ,too. In the scene you can drag the lightbulb around without running the simulation. Of course, you can run the simulation for dynamic use.
Further description in scene.
IF SCENE DOES NOT WORK,type following code into console (F10):
(e)=>{
scene.my.lightfieldCirc = (posA, posB, intensity)=>{
x = posB(0) - posA(0);
y = posB(1) - posA(1);
value = (x ^ 2 + y ^ 2) ^ 0.5;
(1.0 / (math.tofloat(value ^ 2))) * ((intensity * 2) ^ 5)
}
} |
Last edited at 2013/11/01 13:51:31 by hiltropper
Please log in to rate this scene
|