Acid Ray Tracer
Real time ray tracing renderer
This is a real time ray tracing renderer; a proof of concept designed to be work with the Oculus Rift.
As of SDK 0.6.0, this project is no longer maintained.
- OpenCL ray tracer for triangle meshes.
- Simple lambertian material... (texture mapping & materials soon)
- Crappy OBJ loader
- Screen-space antialiasing with FXAA
- Only works in extended mode, for now.
- Lens distortion correction
- Chromatic aberration correction
- Oculus DK2 on Windows.
- OpenCL 1.1
- OpenGL 4.1
- A 64-bit processor
How to build
You will need:
- Windows (Tested on Win7 x86_64 with NVidia 770 GPU)
- Git for Windows (with Git Shell)
- Visual Studio 2013
- OpenCL runtime. On NVIDIA, this means installing the latest CUDA Toolkit.
Place the latest (0.4.4) OculusSDK folder inside the project's root directory.
Open git shell, go to the project dir and run:
... wait until it's done.
Open a Windows Command Prompt and run Visual Studio's
With Visual Studio 2013, this is usually:
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
Make a directory called "build"
$> mkdir build
Use cmake to create a 64 bit visual studio solution.
$> cd build && cmake -G "Visual Studio 12 2013 Win64" ..
build.bat to build the project. It's recommended to do it at least the first time, so that it copies the necessary DLLs into the target's directory.
Build and run the 'samples' project. Left and right arrows switch between samples.
- Cube grid
- Stanford Bunny
- Crytek Sponza
If running from Visual Studio, set
Samples as "startup project" and in the project properties, append
\..\..\.. to the working directory.
To-Do (in no particular order)
- Mesh loader (find third party lib)
- Lighting model
- Texture mapping (?)