Windmill modelling in OpenGL and C++.
To install the dependencies related to OpenGL refer to the link
- Open Terminal or any terminal emulator(Terminator etc)
- Change the directory to location of windmill.cpp
- Run
g++ windmill.cpp -lglut -lGL -lGLU -o windmill - 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.