Git Product home page Git Product logo

raytracer's People

Contributors

cgringmuth avatar maddink avatar

Watchers

 avatar

raytracer's Issues

Travis build is failing due to wrong forward declaration.

/home/travis/build/choffmann/raytracer/src/container.h:18:8: error: forward declaration of ‘const struct Mat3d’
 struct Mat3d;

This is not an error on my local machine: gcc version 7.2.0 (Ubuntu 7.2.0-8ubuntu3) / g++ (Ubuntu 7.2.0-8ubuntu3) 7.2.0

Travis: g++ (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4

Implement BHV

Currently the rendering is very slow because I have implemented some kind of brute force raytracing which calculates intersections with all primitives with all rays. This is very time consuming!

My idea is to use BHVs to partition the scene spatially. This can be used to fast test for which primitives I have really calc intersection.

Some areas are just black.

I figured out that some faces are just black which should not happen. After some investigation I probably found the bug. Some face normals are of [0 0 0] and after normalization [-nan, -nan, -nan]. This cases the problem.

Loading scene from a file

Currently the whole scene is hard coded into the code. Changing the scene requires recompilation and running. This is a mess and I want to change that to load the whole scene from a file.

After some thoughts (~ 5 min.) I figured a YAML description would good to describe a scene. So lets implement this.

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.