Giter Club home page Giter Club logo

vtt-raytracer's Introduction

VTT-Raytracer

This is a yet another ray tracer program. It may not be the fastest and may not be the easiest to understand.

Project status:
License Build Status
Build Status Build Status

Installation

Preinstalls for building source

For Windows:

For all platforms:

Compiler must support C++11 -syntax!!! Also threading support is required: http://en.cppreference.com/w/c/thread

Required packages:

Building Source

  1. Build source. On main source folder:
premake4 gmake
make config=release
sudo make install config=release

If you encounter HDF5 errors like /usr/bin/ld: cannot find -lhdf5_serial and are sure that you installed libhdf5-serial-dev, you can try to edit the Tracer/premake.lua at line 2 and 12. Try using linker flags hdf5, hdf5_serial or hdf5_cpp and run the premake4 again.

For faster executable without saving of the traced rays use:

premake4 gmake
make config=releasenorays
sudo make install config=releasenorays

For Windows MSYS2 use:

premake4 gmake
mingw32-make config=releasenorays
sudo mingw32-make install config=releasenorays --bindir=/usr/bin

If you want the debug parameters to print out use:

make config=debug_verbose

Running the traycer

  1. On Windows you should add the msys2 bin directories to system PATH. This enables the MMP API to run the tracer 2. Go to System settings in Control Panel 2. Open Edit Environment variables and add to PATH C:\msys64\usr\bin and C:\msys64\mingw64\bin (refer to your msys install location)
  2. Create an input.json -file
  3. Run tracer using the input file
tracer input.json

or

tracer-no-ray-save input.json

Building Documentation

Check out the wiki.

For C++ class documentation we use doxygen. On unix use command line, windows use MSYS2.

  1. Goto /doc directory.
  2. Run doxygen

Documentation is placed inside /doc/html. Open index.html to read it.

Code style

For code contributions please use Google-style C++ code

https://google.github.io/styleguide/cppguide.html

https://github.com/google/styleguide/

For Python use PEP8-style. Formatter: https://pypi.python.org/pypi/autopep8/1.1.1

Acknowledgements

Original project team: Olli Tapaninen, Petri Myöhänen, Juuso Olkkonen.

This research has received funding from the European Union's 7th Framework Programme (FP7-NMP) under NMP-2013-1.4-1 with grant agreement no. 604279

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.