SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
Ray Tracing

Alternatively you can render a scene with ray tracing using the menu Renderer > Ray Tracing. The ray tracer is optimized for the Blinn-Phong reflection model. By default, the resolution 0.5 times the window resolution. You can adjust the ray tracing setting over the menu RT. On the web there is no inter-frame update of the scene. Depending on the complexity you have to be patient a few seconds. The ray tracer is multithreaded and uses a combination bounding boxes and regular voxel grid for fast ray-triangle intersection. The ray tracer is implemented in the classes SLRaytracer and SLRay.

Unfortunately, we can not embed externally hosted WebAssembly code on github.io.
Please open example in new tab

General help:

  • Click and drag the left mouse button to rotate the scene.
  • Click and drag the middle mouse button to move sidewards/up-down.
  • Roll the mouse-wheel to move forward/backward.
  • Double click with the left mouse button to select an object.
  • Click the right mouse button to open the context menu.
  • Open and dock additional windows from the menu Infos.
  • See more example scenes over the menu File > Load Test Scene