An open API service indexing awesome lists of open source software.

https://github.com/nqpz/fastcast

Fun sphere raycaster
https://github.com/nqpz/fastcast

futhark gpu raycaster

Last synced: 5 months ago
JSON representation

Fun sphere raycaster

Awesome Lists containing this project

README

          

# fastcast

![Screenshot](screenshot.png)

The screenshot is from a run on an NVIDIA GTX 960M.

This program raycasts spheres without reflections. It uses a naive
(i.e, *wrong*) lighting model where light is never blocked by other
spheres.

fastcast tries to keep it simple, and is compiled into a single map
kernel over the screen dimensions. There is also some bit fiddling just
for the fun of it.

## Building and running

First run `futhark pkg sync` once.

Then run `make` to build and `./demo` to run the default demo.

## Controls

+ Up/Down: Move forwards/backwards
+ Left/Right: Turn left/right
+ PageUp/PageDown: Move upwards/downwards
+ Shift: Move four times faster
+ Minus/Plus: Adjust the view distance to the virtual screen
+ F1: Toggle stats showing

## Requirements

+ Futhark
+ SDL2 and SDL2-ttf with headers.