1.0.1 • Published 5 years ago

ray-tracing v1.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

Ray-racing

A Senior Year Computer Science I.S. Project.

Screenshots

Screenshot

Features

Basic components

The observer has vision and can move and turn.

The map consists of edges and can be imported through Tikz.

Ray-tracing

Intersection detection and distance calculation between rays (from the observer) and edges (from the map) are done through vector geometry.

Distance-to-height transformation is done through a semi-inverse function based on convex lens optics.

Map display

Fixed-camera mode and fixed-map mode can be toggled.

Controls

Observer control

KeyFunction
WMove forward
SMove backward
AMove left
DMove right
Turn counterclockwise
Turn clockwise

Map control

KeyFunction
-Zoom out
=Zoom in
\|Toggle mode
[space]Reset camera