Browse Search Popular Register Upload Rules User list Login:
Search:
Very simple lightfield script

Image:
screenshot of the scene

Author: hiltropper

Group: Default

Filesize: 328.52 kB

Date added: 2013-11-01

Rating: 5.6

Downloads: 1116

Views: 726

Comments: 4

Ratings: 2

Times favored: 1

Made with: Algodoo v2.1.0

Tags:

Scene tag

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
edit
Similar scenes
Title: Move/Jump Script
Rating: 5
Filesize: 342.1 kB
Downloads: 426
Comments: 0
Ratings: 1
Date added: 2015/05/29 16:50:25
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Bob the Script 1
Rating: 5.7273
Filesize: 19.28 kB
Downloads: 860
Comments: 3
Ratings: 5
Date added: 2009/07/08 22:08:44
Made with: Phun
Rating: rated 5.7
download
Title: my big question (inclueding ChaDomSom)
Rating: 5
Filesize: 20.38 kB
Downloads: 368
Comments: 14
Ratings: 1
Date added: 2016/03/18 02:32:56
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: car turned on/off with script
Rating: 6
Filesize: 32.46 kB
Downloads: 568
Comments: 0
Ratings: 3
Date added: 2010/12/02 16:27:37
Made with: Phun
Rating: rated 6
download
Title: onLaserStop event
Rating: 5
Filesize: 31.7 kB
Downloads: 582
Comments: 6
Ratings: 1
Date added: 2014/12/03 23:44:49
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Please Help Me
Rating: 5
Filesize: 7.33 kB
Downloads: 943
Comments: 14
Ratings: 1
Date added: 2011/12/05 03:14:42
Made with: Phunlet
Rating: rated 5
download
Responses to this scene
show list
Title: Dynamic shadows (easier code)
Rating: 5.8889
Filesize: 53.6 kB
Downloads: 1332
Comments: 10
Ratings: 3
Date added: 2013/11/05 17:28:19
Made with: Algodoo before v1.8.5
Rating: rated 5.9
download
Nice work!:tup:
Nice effect! I did something similar about a year ago. In my case, the light follows the mouse cursor: ARRAY COLOR FOLLOWS MOUSE

By the way.... WELCOME back to Algobox! I hope to see more of your awesome scenes in the future!:tup:
Last edited at 2013/11/01 16:23:52 by Xray
thank you :tup:

and Xray : I have made so many new scenes but since I want them to be "good enough" for upload I haven't uploaded anything for a year :bonk:
hiltropper - No need for perfection here on Algobox. I estimate that about 60 to 80 percent of the scenes being uploaded are pure garbage. So, even reasonably good scenes are very welcome! Don't worry that your scenes might not be "good enough", as I'm sure they are much better than that! :tup: