jsheedy / punyty

Python rendering engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

punyty

Python rendering engine

punyty is a very simple 3D engine born of a need to rotating draw green wireframe cubes onto numpy arrays. It ships with 3 different renderers:

  • SDLRenderer - renders scene to an SDL window (requires installing extra package punyty[SDL])
  • ArrayRenderer - renders scene to a numpy array
  • TTYRenderer - renders output of ArrayRenderer to ANSI escape codes for TTY display

Polygon winding is left-handed.

Install

pip install -e .

Demo

python demo/sdl-renderer.py
punytty

About

Python rendering engine

License:MIT License


Languages

Language:Python 100.0%