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: 730

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: XY MECHANISM
Rating: 5
Filesize: 445.89 kB
Downloads: 624
Comments: 0
Ratings: 1
Date added: 2013/12/11 03:58:25
Made with: Algodoo v2.1.0
Rating: rated 5
download
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: Black hole feeding on White hole
Rating: 5
Filesize: 375.35 kB
Downloads: 2549
Comments: 2
Ratings: 1
Date added: 2021/08/16 07:54:22
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: The Absorber tutorial
Rating: 6.3
Filesize: 242.45 kB
Downloads: 687
Comments: 3
Ratings: 4
Date added: 2010/11/22 17:49:55
Made with: Phun
Rating: rated 6.3
download
Title: my big question (inclueding ChaDomSom)
Rating: 5
Filesize: 20.38 kB
Downloads: 369
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
Responses to this scene:
Title Author Rating Downloads Comments Date added
Dynamic shadows (easier code) lololoer 5.9 (3 votes) 1332 10 2013/11/05 17:28:19
show grid
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: