Git Product home page Git Product logo

art's Introduction

a Raytracer

Project status: in development

The aRt project aims to create an OpenCL raytracing pipeline implemented as a LuaJIT library (powered by OpenCL for Lua) in order to reach maximum flexibility.

Ideas

The rendering process will be roughly structured as follows:

  • Geometries and materials are loaded, registered and inserted into the program code by the preprocessor.
  • A scene is created and filled with objects.
    • An object consists of a geometry, a material and their properties such as position.
  • A k-d tree is built from the scene and uploaded to the device.
    • Each leaf node will only contain the IDs of the geometry, material and their property structs. While geometries and materials will have to be hard-coded and looked up using a switch-construct, properties are stored as structs inside an array.
  • The program is compiled, uploaded to the device and jobs for rendering small chunks of the image (and then assembling them in global storage) are enqueued.
  • Once all jobs have been finished, the result can be downloaded from global storage, processed and saved.

The scene can be modified (objects added/removed, properties adjusted) without recompiling the OpenCL program, as long as no geometries or materials are added.

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.