Python raycaster
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
demo.py
raycast.py demo stuff Mar 3, 2012
readme.md Added image rendered with raytracer Apr 5, 2012
vectormath.py

readme.md

Raycasting

Features:

  • Ambient, specular, and diffuse light

  • Spheres, planes

  • Multiple views

To Do:

  • more flexible checkerboard (checker size based on defining vectors)

  • finite planes (triangles, squares)

  • Optimize diffuse light (no need to look up at each bounce) fuzzy light hashing - right now light gets calculated many times for very similar intersections.

  • Optimize until realtime ascii rendering is possible

  • refactor to use origin, vector representations instead of rays, and factor out everything mathy

  • figure out proper way to add light - logarithmically, I imagine?

Not planning to impement at this time:

  • Color - light emitted from an object - color = green