GithubHelp home page GithubHelp logo

tinyrenderer_python-1's Introduction

Python port of ssloy/tinyrenderer in Python3

To install just download the code. Make sure to have python3 running and the following libs are installed:

pip install pillow

What is special about this fork?

For the general idea please visit https://github.com/ssloy/tinyrenderer

This fork is intended to be a starting point of teaching programming in python3 to everyone as I consider the content to be tough but motivational for beginners. With this in mind I tried to follow ssloys tutorial closely and chose some guidelines:

  1. Simplicity over perfection
  2. Readability over performance

To accomplish these goals I included a special linear algebra module geom.py instead of using numpy. Numpy is undoubtly more universal and elaborated but harder to read for beginners. The geom.py module contains some basic vector and matrix classes and supports indexing via '.x', '.y' and '.z' notation based on namedtuples.

After finishing the fork I am going to be working on course material and structured lessons to roll out this exciting course of 3D animation and programming sometime in the future. To motivate students even more I plan providing some short Blender tutorials on how to prepare custom models for this renderer.

Here are some examples generated by the renderer

Rendered image with shadows, ambient occlusion and specular lighting (current optimum)

Rendered image with shadows and specular lighting

Rendered wire mesh

Rendered wire mesh

Rendered randomly colored filled mesh triangles

Randomly colored filled mesh triangles

tinyrenderer_python-1's People

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.