I have developed this experiment framework for update the labs of the Computer Graphics course, offered at Jilin University.
The framework comprises 14 concise exercises, guiding you through the process of creating 2D graphics and rendering 3D objects on your personal computer screen from scratch.
If you have any advice, please feel free to contact me. Let's work together to make the Computer Graphics more engaging and accessible.
You should make sure your python environment has been set up firstly, and I suggest you using conda to create a pure python virtual environment. Then, you need to install denpendencies for our lab. numpy
and matplotlib
is all you need.
For example:
conda create -n graphics_lab python=3.10
conda activate graphics_lab
pip install numpy matplotlib
Secondly, you'll need a tool to run the ipynb
file, such as jupyter notebook, vscode etc.
- Draw a Line
- Draw a Bézier Curve
- Draw a Rectangle
- Draw a Polygon
- Draw a Circle
- Fill Polygon with Color
- Fill Circle with Color
- Translation Transformation
- Rotation And Scale Transformation
The Graphics3D library is constructed as a pipeline:
- Complete MVP Processor
- Complete Vertex Processor
- Complete Rasterizer (Allows visualization of a 3D object)
- Complete Lighting Processor (Implement Blinn-Phong Model)
- Complete Texture Processor
Additional instructions can be found in the lab.ipynb
file.