A molecular viewer/renderer.
spray based on the path-tracing method that is a kind of Monte-Carlo ray-tracing algorithm.
- pinhole camera
- orthogonal camera
- spherical object
- cylindrical object
- triangular object
- spatial indexing
- emission
- lambert material
- metalic material
- transparent material
- volume rendering
- config file
- save state into a file
It currently supports Linux only.
Tested only on Ubuntu 16.04 + CUDA 9.2 + OpenGL 4.5.
The following packages are required.
- C++14 compatible compiler
- CUDA 9 or later
- OpenGL 4.5 or later
- CMake
- git
spray depends on the following libraries.
- png++
- You can install it using your distribution's package manager (like
apt install libpng++-dev
). - It depends on libpng v1.2. If you manually install it, you might need to install
libpng12-dev
also.
- You can install it using your distribution's package manager (like
- glfw3
- you can install it using your distribution's package manager (like
apt install libglfw3-dev
).
- you can install it using your distribution's package manager (like
- glad
- will automatically be cloned into
extlib/
by CMake.
- will automatically be cloned into
- imgui
- will automatically be cloned into
extlib/
by CMake.
- will automatically be cloned into
- thrust
- will be found
/path/to/cuda/include
after installing cuda.
- will be found
To isolate stuff generated by building, I strongly recommend to make a build/
directory and run build script there.
$ mkdir build
$ cd build
$ cmake .. # -DCMAKE_CXX_COMPILER=/path/to/compiler (optional)
$ make