Project time frame: Sept - Dec 2017
|
Executable download: LINK
|
Project type: Coursework
|
There are 3 cameras in the scene, free moving is set as default (controls to all cameras will be explained in the readme.txt in the download). The free moving camera can be used to navigate around the scene. When the fixed camera is selected, the user can change the position of the spotlight to see the effects of light attenuation and reflection coming from the balls. Lastly, the scrolling camera simply goes left and right through the scene showing all the platforms.
|
|
To demonstrate the use of shadows I have used the default ship.obj file supplied by the university as a default asset. For the actual shadow I have used a planar shadow technique. This technique creates a shadow by calculating a 4x4 projection matrix from the provided light source and the vertices, in this case the vertices of the ship. This technique effectively creates another instance of an object, sets the colour to black and just flattens the instance onto specified coordinates to create the illusion of a shadow.
Moving onto the stencil buffer. To demonstrate the use of the stencil buffer I decided to create a mirror, in other words reflection. |