This lab stands to prepare the moderngl development environment. Below the steps and requirements for initial coding tasks. Please make sure to edit the python provided files; for dependencies, you can add the files you need.
- Install moderngl and its dependencies
- Make sure that the following programs run
01_hello_world.py
06_multiple_objects.py
09_models_and_images.py
- Modify this program to change the box's texture to a correctly aligned TEC logo
- Document how to execute the 3 programs in the section below.
- For documentation and missing dependencies, follow these links:
As a first requirement, you will need to install Python on your operating system, whichever it is. You can find multiple downloading links for these here>
After downloading, be sure to follow all the instructions from the Installing Wizard and then, restarting your PC to succesfully complete the installation and be able to run the Python environment.
In order to run this first program, you will need to install the following dependencies:
pip install moderngl
pip install pygame
Keep in mind that is better to run all this commands in a terminal located in the folder where your this repository is on your PC, Then you will need to use the following command to run the program (this is necesary to be located in the same path that is your program):
python 01_hello_world.py
In order to run this second program, you will need to install the following dependencies:
pip install moderngl
pip install pygame
pip install numpy
pip install PyGLM==2.7.3
Keep in mind that is better to run all this commands in a terminal located in the folder where your this repository is on your PC, Then you will need to use the following command to run the program (this is necesary to be located in the same path that is your program):
python 06_multiple_objects.py
In order to run this second program, you will need to install the following dependencies:
pip install moderngl
pip install pygame
pip install pillow
pip install PyGLM==2.7.3
pip install pywavefront
Keep in mind that is better to run all this commands in a terminal located in the folder where your this repository is on your PC. Then you will need to use the following command to run the program (this is necesary to be located in the same path that is your program):
python 09_models_and_images.py
NOTE: This 'happy path' was created, scripted, tested and ran in a Windows 11 OS environment
- 25% -
01_hello_world.py
is running with no errors - 25% -
06_multiple_objects.py
is running with no errors - 25% -
09_models_and_images.py
is running with the requested change (TEC logo texture) - 25% - Documentation on how to run your programs