Skip to content

ToruNiina/spray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

Screenshot

demo

What is it?

A molecular viewer/renderer.

spray based on the path-tracing method that is a kind of Monte-Carlo ray-tracing algorithm.

What's next

  • 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

Installation

It currently supports Linux only.

Tested only on Ubuntu 16.04 + CUDA 9.2 + OpenGL 4.5.

Prerequisites

The following packages are required.

  • C++14 compatible compiler
  • CUDA 9 or later
  • OpenGL 4.5 or later
  • CMake
  • git

Depencency

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.
  • glfw3
    • you can install it using your distribution's package manager (like apt install libglfw3-dev).
  • glad
    • will automatically be cloned into extlib/ by CMake.
  • imgui
    • will automatically be cloned into extlib/ by CMake.
  • thrust
    • will be found /path/to/cuda/include after installing cuda.

Build

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