Giter Site home page Giter Site logo

toruniina / spray Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 336 KB

molecular viewer based on ray-tracing

License: MIT License

CMake 4.95% C++ 57.10% Cuda 37.95%
c-plus-plus cuda opengl raytracing molecular-graphics molecular-viewer computer-graphics

spray's Introduction

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

spray's People

Contributors

toruniina avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

spray's Issues

enable to change material/color from gui

spray::cuda::render function can return the index of the object that the ray going through the pixel hits first.
From that information, we can get the information about the object.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.