Skip to content

zuno1218/interactive-renderer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

glskeleton

This is template OpenGL cmake project for project for Computer Graphics course in GIST.

Due to the scope of the lecture, the OpenGL version is intentionally set to 3.1.

Result

Installation

git clone https://github.com/interactive-renderer.git

Build

For windows user

  1. Create build folder in project root

  2. Run cmake gui(Configure and Generate)

You need to re-run cmake whenever you add more source files (*.h, *.cpp)

  1. Set path for build and source folder

cmake-gui-setup

Set source code directory to project-root.

Set build directory to project-root/build.

  1. Configure

Alt text

  1. Generate

Alt text

  1. Build the project
  • Go to build folder
  • Open glSkeleton.sln file
  • Make glSkeleton as startup project and build it

For linux user

  1. Run cmake

You need to re-run cmake command whenever you add more source files (*.h, *.cpp)

cd <PROJECT_ROOT>
mkdir build
cd build
cmake ..
  1. Build and compile
make -j4

Dependancies

You should install CMake and Git on your system. Other libraries will be installed automatically.

Controls

Lighting

  • 1 / 2: Toggle Point Light (On / Off)
  • 3 / 4: Toggle Directional Light (On / Off)

Camera

  • Q / W: Adjust Field of View (Zoom In / Out)
  • Mouse Scroll: Adjust Camera Radius (Dolly)

Interaction

  • Left Click + Drag: Trackball Rotation

System

  • ESC: Exit Application

About

Renderer with track ball camera based on glskeleton

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors