engine
is an octree-based ray tracer supporting primary and shadow rays.
It's written in C and OpenCL.
Requires GLFW 3.
An OpenCL library is required (1.2 and 2.0 are supported).
To get this working:
- Install
stack
- Install GLFW 3 and OpenCL
- If running Windows, add their include directories to the
CPATH
environment variable, and library directories toLIBRARY_PATH
(semicolon-separated). You can confirm that all variables are set correctly by runningstack exec env
. Reboot in case of problems. - Finally, run
stack setup
andstack install
in the directory containingengine.cabal
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 156 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Solution: add /usr/lib/fglrx
to LD_LIBRARY_PATH