This document is used to show how to run the source code.
first version: surrounding environment is only the coordinate system
The following technics are included in this project:
- Texture
- skybox
- Light
- Multiple ModelViews Handling
- Animation
- Keyboard control
Python needs to be installed. The latest version is recommended. The version I tested on my machine is Python 3.9.7
. More information on how to install Python can be found here (https://www.python.org/)
The following packages are also needed:
- PyOpenGL
- pygame
- Pillow
- numpy
pip
is the package installer for Python. You can use pip to install packages from the Python Package Index and other indexes. The following command can be used to check if pip is already available in your machine.
python3 -m pip --version
If you installed Python from source, with an installer from python.org, or via Homebrew you should already have pip. If you’re on Linux and installed using your OS package manager, you may have to install pip separately, see Installing pip/setuptools/wheel with Linux Package Managers.
After making sure pip
is available, following can install the packages:
pip install PyOpenGL
pip install pygame
pip install Pillow
pip install numpy
Go to the directory of the main file: skeleton.py
Run the following command:
python3 skeleton.py
Here is link for demo video of this project.