Skip to content

🟢 Interactive real-time raytracing on the CPU, using OpenMP, SDL2 and C++

License

Notifications You must be signed in to change notification settings

xyproto/spheremover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sphere Mover

An experiment with C++, SDL2 and OpenMP-based realtime raytracing.

  • Move a sphere using either the arrow keys or w, a, s, d.
  • Switch to the next sphere with space or tab.
  • Toggle fullscreen with f or f11.
  • Quit with q or esc.
  • You can also move the current sphere with a joystick, then press a key to select the next one.

Screenshot

screenshot

Building

Build and run using cxx:

cxx run

Just build:

cxx

Or if you wish to generate a CMakeLists.txt file in the process and then build with ninja:

cxx cmake ninja

Tested on Arch Linux.

Written in o.

General info

About

🟢 Interactive real-time raytracing on the CPU, using OpenMP, SDL2 and C++

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published