Skip to content

TomCodesCode/CowSimulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tom's Farm- a Cow Simulation

This is summary of the project (Computer Graphics).

An extra feature was added: the legs move (using sin() for smoothness) as the cow walks.

The project:

  • implements OpenGL functions to create shapes, lighting, a menu and user controls (via keyboard and/or mouse.
  • Uses an external asset- stb_image.h for loading texture files onto the cow and floor (grass).
  • Implements some basic math functions to control the view and object (cow) transformations. Main libraries used: GL/glut, cmath.

Controls:

  • Left-drag: rotate
  • Right-drag: pan
  • Scroll: zoom
  • Space: toggle first/third person view
  • i/k: head pitch | j/l: head yaw
  • 1/2/3/4: tail pitch/yaw
  • Arrow keys: walk
  • w/s/a/d/x/z: move light
  • r/f: rotate light
  • v/c: tilt light
  • q/e: increase/decrease light intensity
  • Click Help again to hide

Menu layout:

Main Farm View Ambient lighting intensity can be controlled by the user.

Help layout:

Main Farm View All controls are shown.

Main farm screenshots:

Main Farm View

Main Farm View

Shiny light-silver window (metallic, you know... for security):

Shiny Window

About

3D interactive application in C++/OpenGL featuring a fully animated cow model. Real-time user controlled lighting effects, movable objects, and multiple perspectives (1st and 3rd person views).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors