COMP3271 Computer Graphics

This is my code repository for HKU course COMP3271.

Instructor: Prof. Taku Komura

TA: @Huancheng Lin

Instruction

Environment Setup

Macos

  • Install Homebrew using the following commands
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • Install cmake, make, git, glfw(We need install glfw here because the code didn't provide static library for ARM for now)
brew install cmake make glfw git

Linux

  • Use your package manager to install cmake, build-essential(This is a meta package that contains the tools we need for compiling cxx projects)
sudo apt install cmake build-essential

Windows

  • Download and install Visual Studio Community, "Desktop development with c++" should also be installed.
  • Download and install Git and Cmake
  • Alternatively git and cmake can be installed with winget
winget install Git.Git
winget install cmake

Compile and run the code

  • Get the latest version of this repo
git clone https://github.com/HKU-CG/COMP3271_Computer_Graphics.git
  • Compile and run

Linux/Macos

cd COMP3271_Computer_Graphics/<AssignmentFolder/PartX>
mkdir build
cd build
cmake ..
make
./<project_name>

Windows (PowerShell)

cd COMP3271_Computer_Graphics/<AssignmentFolder/PartX>
mkdir build
cd build
cmake ..

Then open the .sln file under build folder using visual studio, set <ProjectName> as Startup Projects.

Replace <> with the actual folder/name.

  • Don't hesitate to seek helps with issue workspace