GithubHelp home page GithubHelp logo

pytracer's Introduction

##pyTracer - a Ray Tracer in Python

####Vision -> Physics (radiometry) -> Mathematical Model -> Python -> Screen Pixels

##Features

* Camera : Pinhole Camera
* Sampler: Multijittered Sampler, Regular Sampler
* Texture: Image Texture
* BRDF: Diffuse, Glossy Specular, Mirror Specular
* Light: Ambient Light, Point Light, Direction Light, Area Light
* Ambient Occlusion
* Shadow
* Geometry: Sphere, Plane, Rectangle
* Tone Mapping: Ward Contrast-based Linear Scale, Reinhard Spatially Varying Nonlinear Scale

##Examples ####Direction Illumination ####Ambient Occlusion ####Area Light without Tone Mapping ![](https://github.com/hanton/pypyRayTracer/blob/master/Render/Area%20Light without Tone Mapping.png?raw=true) ####Area Light with Tone Mapping ( Erik Reinhard, Mike Stark, Peter Shirley and Jim Ferwerda, 'Photographic Tone Reproduction for Digital Images', ACM Transactions on Graphics, 21(3), pp 267--276, July 2002 (Proceedings of SIGGRAPH 2002).) ####Area Light with Blooming Effect and Tone Mapping (K. Chiu, M. Herf, P. Shirley, S. Swamy, C. Wang, and K. Zimmerman. Spatially nonuniform scaling functions for high contrast images. In Proceedings of Graphics Interface '93, pages 245--253, 1993.) ![](https://github.com/hanton/pypyRayTracer/blob/master/Render/Area%20Light with Blooming Effect.png?raw=true)

##How to Run #####pypy pyTracer - to render a default 740740 with 1 pixel samples picture or #####pypy pyTracer width height pixel_samples - to render a widthheight with number pixel samples picture

If you have not installed PyPy, Python is still OK, but a lot slower... #####python pyTracer - to render a default 740740 with 1 pixel samples picture or #####python pyTracer width height pixel_samples - to render a widthheight with number pixel samples picture

##Reference:

  • Ray Tracing from the Ground Up by Kevin Suffern
  • Physically Based Rendering: From Theory To Implementation by Matt Pharr, Greg Humphreys
  • Advanced Global Illumination by Philip Dutre, Philippe Bekaert and Kavita Bala
  • Mitsuba Renderer : http://www.mitsuba-renderer.org
  • LuxRender : http://www.luxrender.net

GitHub: https://github.com/hanton/pyTracer

pytracer's People

Contributors

hanton avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

sajid-haniff

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.