Built with CMake and edited within Visual Studio on Windows.
- Download CMake and OpenGL.
- Download tutorial code from [website]http://www.opengl-tutorial.org/download/.
- Drag and drop
common
folder files from this repo to the downloadedcommon
folder. - Drag and drop
source
folder files from this repo to the downloadedmisc05_picking
folder. - Move the
models
folder from this repo tomisc05_picking
folder. - Make a separate
build
folder to use for CMake. - Open CMake and add pathnames to respective folders.
- Open Visual Studio code and build
misc05_picking_easy
project. - Open the executable.
- Interact with program!
- Base: Select the base using key
b
. The whole model slides on the XZ plane according to the arrow keys. - Top: Select the top using key
t
. The top, arms and pen rotate around Y axis when using the left and right arrow keys. - Arm1: Select arm1 using key
1
. The arm (and the other connected arm and pen) rotates up and down when using the arrow keys. - Arm2: Select Arm2 using key
2
. The arm (and pen) rotate up and down when using the arrow keys. - Pen: Select the pen using key
p
. The pen rotates when the arrow keys are pressed, and←
,→
,↑
,↓
are longitude and latitude rotations, andshift + ←
andshift + →
should twist the pen around its axis.