Drag: orbit · Right-drag or Shift: pan · Wheel: zoom · Click: select · Del: deleteDrag: orbit · Two fingers: pan and zoom · Tap: select
WebGL2 is not available
The live render needs WebGL2. The editor still works: change values on the right, then export the .rt file and run it in your own miniRT.
A scene builder for miniRT
miniRT is the 42 school project where you write a ray tracer in C. This studio is the same idea in the browser: a small renderer that traces every pixel against spheres, planes, capped cylinders and cones, with ambient light, point lights, hard shadows and Phong shading.
How to use it
Click a shape to select it, then drag its handles. Arrows move it along an axis, the square moves it across the floor, the squares on the shape change radius and height, and the yellow diamond points the axis or normal anywhere. Drag empty space to orbit the camera. Every change is undoable.
Real .rt files
Import a scene from your own project and edit it with the mouse, or build one here and export it. The file uses the standard identifiers A, C, L, sp, pl and cy, plus co for cones, so it loads in a miniRT that follows the subject. Studio-only extras such as mirrors and checkerboards stay out of the export.
How it renders
A WebGL2 fragment shader runs the same ray-sphere, ray-plane, ray-cylinder and ray-cone intersection math as the C version, one ray per pixel on the GPU. While you drag it draws a fast draft, then refines with jittered samples once you stop. Colours are clamped linear values, like the original.
Share and save
The share link packs the scene into the URL. Your latest scene is also kept in this browser, and PNG saves a 1920 pixel wide render. The source of the C project is on GitHub, and the case study sits on the portfolio.