Sharan-Lobana / ComputerGraphics

Windmill Modelling in OpenGL and C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ComputerGraphics

Windmill modelling in OpenGL and C++.

Dependencies

To install the dependencies related to OpenGL refer to the link

Steps to execute the program

Linux

  1. Open Terminal or any terminal emulator(Terminator etc)
  2. Change the directory to location of windmill.cpp
  3. Run g++ windmill.cpp -lglut -lGL -lGLU -o windmill
  4. Run ./windmill

A new window will open up.
USE UP_ARROW_KEY to increase the speed of the wind.
USE DOWN_ARROW_KEY to decrease the speed or reverse the direction of wind.
USE A and D keys to change the direction of wind.
USE LEFT_ARROW_KEY and RIGHT_ARROW_KEY to rotate the view about vertical axis.
USE SCROLL to zoom-in and zoom-out.
USE PAGE_UP_KEY and PAGE_DOWN_KEY to translate view along vertical axis.

About

Windmill Modelling in OpenGL and C++

License:MIT License


Languages

Language:C++ 82.5%Language:C 17.5%