Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

aurelijusb/CG-models

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

3D objects

Functionlality

OpengGl+Glut example which includes:
  • Model rotation (based on quaternions)
  • Animation (simple face move game)
  • Lighting, materials, smooth shading
  • Rotating objects along line (cylinders on edges)
  • Loading .obj files

Compilation

Libraries
  • OpenGl
  • Free GLUT

To compile program:

gcc src/* -lGL -lGLU -lglut -lm -o U4Aurelijus

User interface

To view object, drag with mouse. Keyboard controllers:

[1] to turn on/off axis
[2] to turn on/off game mode
[3] to turn on/off lightning
[4] to turn on/off skeleton (cilinders on edges, and spheres on vertexes)
[5] to turn on/off materials
[6] to turn on/off smooth shading
[7] to turn on/off loading external (.obj .mtl) object
[Q][W], [A][S], [Z][X] to rotate around red, gree and blue axes.

References

About

Computer graphics: 3D rotation and lightening

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published