📌 This repository originated from here.
🔹 The content is identical to the original repository.
This is a baseline code for SNU Computer Graphics (4190.410). This code uses Pyglet which is a cross-platform windowing library under Python 3.8+. Supported platforms are:
- Windows 7 or later
- Mac OS X 10.3 or later
- Linux, with the following libraries (most recent distributions will have these in a default installation):
If you haven't installed an IDE, download VSCode or PyCharm
If Conda is not installed, download Miniconda (recommended) or Anaconda:
After installation, verify Conda is installed correctly:
conda --version
git clone [email protected]:SNU-IntelligentMotionLab/SNU_ComputerGraphics_.git
If you don't have Git,
- Click "Code" → "Download ZIP"
- Extract the ZIP file and open the folder.
Once inside the project folder, create a Conda environment using environment.yml:
conda env create -f environment.yml
Then, activate the environment:
conda activate snu_graphics
If you have installed additional packages, be sure to update environment.yml manually.
# environment.yml
name: snu_graphics
channels:
# - conda-forge -> you can install pyglet from conda-forge
- defaults
dependencies:
- python>=3.8
- pip
# Install Pyglet here if you encounter any issues
# - pyglet
# You can add more Conda packages here
# - numpy==1.23.1
# - scipy
- pip:
- pyglet>=2.1.0
# - another-pip-package You can execute the code easily by:
python3 main.py
