Thanks to visit codestin.com
Credit goes to github.com

Skip to content

nqpz/fastcast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fastcast

Screenshot

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.

About

Fun sphere raycaster

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published