Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Second Life - LSL Raytracer

Loading...

Sign in or sign up now!
1,930
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 28, 2008

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.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (11)

Sign In or Sign Up now to post a comment!
  • Wow. I am a very advanced LSL scripter but that just impressed the hell out of me.

  • 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

  • AWESOME !

  • 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?

  • Step 1: Learn LSL

    Step 2: Learn vector math

    Step 3: Write it yourself

    Hope this helps!

  • OMFG!!!

    How'd you make that?!

    Please !!!

    Tell Me How you made it

    Aarona Ragu.

  • Damn! Awesome script!

  • That's thinking outside the prim!

  • Great script(s), very interesting.

    I would love to see this in person, but I'm on the TG.

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more