Skip to content

3D renderer with rotations achieved by rotation matrices in python using numpy arrays and pygame graphical user interface.

License

Notifications You must be signed in to change notification settings

Serphyus/Rotation-Trigonometry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rotation Trigonometry

This project uses a general rotation matrix to calculate the rotation of a model consisting of [x,y,z] vertices to represent each point in it's shape. The models consist of a sequence of numpy arrays to represent each vertex and a sequence of tuples with 2 indexes to represent the edges of the model. The model of choice is generated at the start and rendered using pygame.

Demo

Setup

clone and install the python requirements

git clone https://github.com/Serphyus/Rotation-Trigonometry
cd Rotation-Trigonometry
pip install -r requirements.txt

Usage

run the main.py located in the src directory

py src/main.py

choose model to render

Available Models:
1  : cube
2  : sphere

> _

About

3D renderer with rotations achieved by rotation matrices in python using numpy arrays and pygame graphical user interface.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages