coldfog / simpleRender

This is a toy project for learning the theory of 3D render. Single File!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Render

996.ICU

Introduction

This is a toy project for learning the theory of 3D render. I'm tring to add every necessary step into only one file. For simplifying and performance, all math operation are implemented by numpy and the window management are implemented by pyglet.

Features

  1. World, view, projection transform
  2. Simple texture mapping
  3. Backface culling
  4. Z-buffer
  5. Diffuse direction lighting

Screen shoot

demo.png

Dependencies

  • numpy for fast math computation
  • pyglet for window management

Note

Because I have chosen Python as the main programming language. so there is a huge performance issue.

About

This is a toy project for learning the theory of 3D render. Single File!


Languages

Language:Python 100.0%