GithubHelp home page GithubHelp logo

disini / tinsel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mmacklin/tinsel

0.0 0.0 0.0 214.7 MB

Lightweight CPU/GPU path tracer

License: zlib License

C++ 50.96% C 29.30% M 0.03% Cuda 13.64% Makefile 6.07%

tinsel's Introduction

Tinsel

A lightweight CPU/GPU path tracer focusing on speed and simplicity. It offers a single flexible BSDF based on Disney's physically principled BRDF extended to specular transmission / subsurface scattering.

Features

  • Uni-directional forward path tracer
  • BSDF based on Disney's BRDF with specular transmission / thin-shell subsurface scattering
  • HDR environment light probes
  • Multiple importance sampling of BSDF / probes / area lights
  • CPU or GPU tracing and shading
  • Interactive OpenGL progressive mode
  • Affine and deformable motion blur
  • Gaussian and box reconstruction filters
  • Instanced triangle mesh primitives
  • AABB tree with SAH and various splitting heuristics
  • Batch mode for animation rendering
  • Simple scene description .tin format
  • Windows / macOS / Linux support
  • Wavefront tracing mode
  • Non-Local Means noise filtering
  • Tungsten scene loader

Images

Instancing test (palette courtesy of https://twitter.com/paniq)

Example Image

Ajax bust in gold (courtesy http://forum.jotero.com)

Example Image

Ajax bust in plaster (courtesy http://forum.jotero.com)

Example Image

Spaceship model courtesy of Benedikt Bitterli (https://benedikt-bitterli.me/resources)

Example Image

Coffee maker model courtesy of Benedikt Bitterli (https://benedikt-bitterli.me/resources/)

Example Image

Glass Buddha with specular transmission (courtesy Stanford 3D Scanning Respository http://graphics.stanford.edu/data/3Dscanrep/)

Example Image

Jade Buddha with sub-surface scattering (courtesy Stanford 3D Scanning Respository http://graphics.stanford.edu/data/3Dscanrep/)

Example Image

Recreation of the Disney Hyperion test scene, https://www.disneyanimation.com/technology/innovations/hyperion.

Example Image

Recreation of Eric Veach's multiple importance sampling test

Example Image

Example Scene

The scene description in Tinsel is very simple, and loosely based off Arnold's .ass format, here is an example:

# This is a comment

material gold
{
	color 1.0 0.71 0.29
	roughness 0.2
	metallic 1.0	
}

material plaster
{
	color 0.94 0.94 0.94
	roughness 0.5
	specular 0.1
}

material light
{
	emission 5.0 5.0 5.0
}

primitive
{
	type plane
	plane 0 1 0 0
	material plaster
}

primitive
{
	type sphere
	radius 0.5
	material light

	position 0.0 10.0 0.0
	rotation 0.0 0.0 0.0 1.0
	scale 1.0
}

primitive
{
	type mesh
	mesh octopus.obj
	material gold

	position 0.0 0.0 0.0
	rotation 0.0 0.0 0.0 1.0
	scale 2.0
}

Command Line

Single Image:

tinsel -spp 100 scene.tin output.png

To convert an animation sequence, e.g.: frame_1.tin, frame_2.tin, ... use the following syntax:

tinsel -spp 100 frame_%d.tin

Todo List

  • Multiple importance sampling
  • Mesh affine transformation support
  • Disc primitive
  • Mesh sampling
  • Multi material meshes or .obj conversion
  • SAH and median split BVH build heuristics
  • Clean up mesh allocations
  • Command line interface
  • Scene sky parameters
  • Scene camera parameters
  • Scene include files
  • Scene camera definition
  • Tone mapping
  • Bloom filter
  • Blackbody emitters
  • Output formats
  • Triangular noise dither
  • NLM noise filter
  • Point sets primitive
  • Scene BVH
  • FFmpeg encoding
  • Reconstruction filter
  • Correctness checks
  • Volume rendering
  • Environment maps
  • Lens modelling
  • Refraction
  • Examples

Supported Platforms

Tinsel includes makefiles and Visual Studio projects for OSX and Windows respectively. Although not explicitly supported it should be relatively simple to build for Linux.

License

Tinsel is licensed under the ZLib license, see LICENSE.txt.

Author

Miles Macklin - http://mmacklin.com

tinsel's People

Contributors

mmacklin avatar

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.