Requires PythonExtra runtime to execute.
Raytracer renders a simple 3D scene using sphere tracing and diffuse lighting. Watch as rays intersect spheres and a checkerboard floor, computing normals and shading.
Features
- Perspective ray casting: projects 3D scene to 2D screen
- Sphere primitives: three colored spheres with hit detection
- Diffuse lighting: two light sources with ambient + directional shading
- Dual output: low-res preview + upscaled main render
- Progressive display: screen updates during computation
Usage
- Copy render_raytracer.py to your calculator
- Launch via PythonExtra from Hollyhock launcher
- Wait for render (~15-30 seconds)
- Press EXE, DEL, or EXIT to exit
Technical Notes
- Internal resolution: 64×64, upscaled 4× for display
- Sphere intersection via quadratic formula
- Floor: infinite plane at y=-1 with checkerboard pattern
- Colors: RGB565-compatible 0-31 channel range
Requirements
- CASIO ClassPad II (fx-CP400)
- Hollyhock-3 firmware
- PythonExtra runtime
A compact demonstration of 3D rendering fundamentals on calculator hardware.