A simple 3D engine written in Python using Pygame (for learning purposes). This is a work in progress.
git clone https://github.com/donaldnguyen99/engine3d.git
cd engine3dIt is recommended to use a virtual environment to install the dependencies.
Example using venv:
python -m venv env
source env/bin/activateExample using conda:
conda create --name engine3d --file environment.yml
conda activate engine3dThen run the following command to install the package in development mode or just install the package with -e flag:
pip install -e .To run the cube animation demo:
cd examples
python cube.pyTo run the refraction demo, use the following command, then use A and D keys to move the incident ray.
cd examples
python refraction.py