Skip to content

Performant octree-based ray tracing demo in OpenCL

Notifications You must be signed in to change notification settings

bgasiorzewski/engine

Repository files navigation

Engine

What is this?

engine is an octree-based ray tracer supporting primary and shadow rays. It's written in C and OpenCL.

gif

Setup

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 to LIBRARY_PATH (semicolon-separated). You can confirm that all variables are set correctly by running stack exec env. Reboot in case of problems.
  • Finally, run stack setup and stack install in the directory containing engine.cabal

Troubleshooting

    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

About

Performant octree-based ray tracing demo in OpenCL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published