HW 3: Interactive Controls & Geometric Primitives

Source

In this homework I decided to start working on a complete pipeline & scene management for my future projects so my work would be easier later on. This consisted in standardizing object handling into classes, allowing for extensions to provide different types of objects. The barrels for instance are instances of FloatingObject and have some basic "physics". In the next homework i standardize this into a reusable repository: Potato Engine.

In this minigame your goal is to aim the cannon and explode the barrels. Use the elevation & yaw controls to aim the cannon and the power slider to determine the starting speed of the cannonball. Take a guess at what the big red button does... If you find it too difficult try turning the power all the way up and use low elevation values.

Cannon Minigame


Shaders

Vertex Shader
Fragment Shader
Water Vertex Shader