I wrote a raytracer entirely in LSL. It takes a scene in SL (simplifying it all into cubes due to limitations), and then draws it with nice lighting effects.
For those who are interested, a more technical explanation of how it works (a knowledge of SL scripting and raytracing is assumed): The script first runs a sensor to get a list of objects in the scene, and grabs the bounding boxes of them. Then, for each pixel, a ray is shot out to detrmine where it collides, and how that area would be lit by the light source. So far only shadowing is implemented, but I should be able to implement phong, reflections, etc without too much extra work.
Due to LSL being extremely slow, 64 different scripts are in the object to maximize speed. This video takes place in the main grid (where currently there is no Mono support).
http://www.foxular.net/raytracer/ Has a bit more about raytracer, as well as various screenshots.
Wow. I am a very advanced LSL scripter but that just impressed the hell out of me.
T1Brit 1 week ago
Hi,
I am doing my MSC project on wireless ray tracing in opensim(Secondlife) virtual worlds at the university of Manchester.your project is greatly related to mine.I hope that I could contact you to get further information.
Thank you
monademaidi1412 7 months ago
AWESOME !
AtakanNW 1 year ago
Hi, i've try your script (on your site) but it never end to write, stay only debugging, how much time it take in average to render?
MatheusMK3 2 years ago
Step 1: Learn LSL
Step 2: Learn vector math
Step 3: Write it yourself
Hope this helps!
zztzed 2 years ago
OMFG!!!
How'd you make that?!
Please !!!
Tell Me How you made it
Aarona Ragu.
SLGeek 3 years ago
Damn! Awesome script!
psphacker8 3 years ago
That's thinking outside the prim!
kizmart 3 years ago
Great script(s), very interesting.
I would love to see this in person, but I'm on the TG.
J3roonK 3 years ago