Home

Awesome

PtahRenderer

A small software graphics renderer. Offline and online demos available on macOS and Linux (tested on Ubuntu). See Programs for requirements and build instructions. Associated blog post here.

Written with the help of (among other resources) :

Image produced with the software renderer

Programs

The project is composed of two library modules, and three programs:

Apart from PtahRendererDemoOnline, everything can be compiled using the Swift Package Manager on both macOS (tested on macOS 10.12) and Linux (tested on Ubuntu 16.04).

swift build -c release -Xlinker -L/usr/local/lib
 

For PtahRendererDemoOpenGL, GLFW 3 needs to be installed in /usr/local and is accessed through a thin wrapper (macOS and Linux versions). OpenGL is also used through a wrapper, SGLOpenGL, that mainly provides platform independance and types simplification (because of Swift handling of GLenum among other things). If you want to compile the OpenGL demo in Xcode, do a first compilation with the Package Manager so the dependencies are downloaded and setup.

Done

To do