Skip to content

Decamark/glab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

glab: OpenGL Laboratory

Sample

Usage

Build with:

$ make <math|physics|misc> no=<experiment number under each directory>

Each experiment number corresponds to the prefix of a file under ./lab/<genre>/. For example,

$ make physics no=08

and run produced a.out to see the result.

Manual

Most of the experiments support the following user input.

Input Operation
🖱 Look around
W Go forward
A Go left
S Go backward
D Go right
T Take a picture
P Switch projection matrices
0️⃣-9️⃣ Switch cameras

Experiments

Math

No Category Experiment
01 Geometry Draw a single line. math_01.png
02 Geometry Draw a triangle. math_02.png
03 Geometry Draw a tetragon. math_03.png
04 Geometry Draw a sphere. math_04.png
10 Geometry Multiple rotations math_10.png
11 Geometry Detect intersections between a ray and a triangle. math_11.png

Physics

No Category Experiment
01 Mechanics Time simulation. The motion of the cube only depends on time: the longer the interval between frame changes, the more the clock advances. physics_01.png
02 Mechanics Simulation of free fall physics_02.png

Computer Science

No Category Experiment
01 CG Learn how matrices is like in each space cs_01.png
02 CG Orthographic projection. Play with different projection matrices by pressing "P". cs_02.png

Misc

No Category Experiment
01 - Take a picture
02 - Multiple cameras. Switch cameras by pressing numbers.
03 Art You can "touch" a cube with mouse. misc_03.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages