![opengl 4.3 wall collision opengl 4.3 wall collision](https://image.slideserve.com/466547/numerical-integration-l.jpg)
See example of a spaceship made from 2 triangles, your design can be different.ġ.4 – Starting Location (5pt): The Player Starting Position should be set at the center of the arena whilst facing upwards. The spaceship must have a fill and an outline color of different values. When rendering your spaceship, the triangles must NOT overlap.
![opengl 4.3 wall collision opengl 4.3 wall collision](https://www.vtupulse.com/wp-content/uploads/2020/05/Rotating-Flower-3.png)
Setup your viewing parameters according to the above guidelines.ġ.3 – Ready Player 1 (5pt): Draw your Player Spaceship with an outline using a drawing primitive of your choosing (GL_TRIANGLES, GL_GEOMETRY) etc… You have creative flexibility to choose the spaceship color and shape. If the viewport aspect ratio is different to your arena ratio, the arena must span the entire length of one dimension and be centred in the other dimension. The camera is looking down the z-axis in the negative z direction. All z coordinates in this assignment will be 0. The arena and action will be on the x/y plane (x is horizontal left to right, y is vertical bottom to top). The size and dimensions of the arena, and the measurement units you use in your world coordinate system, are up to you – but you must set up your OpenGL viewing parameters so that the entire arena is visible in your viewport. Pick an appropriate background color of your liking.
#Opengl 4.3 wall collision full
Use the appropriate GLUT and OpenGL commands to initialise the full screen mode and display mode (RGB mode with double buffering and a depth buffer).ġ.2 – The Arena (5pt): The action takes place in a rectangular arena in deep space. You must dodge the asteroids and shoot them to survive for as long as you can.ġ.1 – Screen Mode (5pt): The game must run in full-screen mode. You are on a mission to explore an uncharted region of space when you detect an impenetrable force-field appear all around your ship.Īll of a sudden, Asteroids start hurtling towards your ship from somewhere beyond the force-field. HINT: You will NOT be penalised if your game elements contain geometry > 8 triangles, but keep things as simple as possible! HINT: (optional) If having trouble deciding on colors, use online tools to generate color palettes to use for your various game elements such as arena color, spaceship color, bullets, missiles etc. Different instances of the same element can have the same color, for example the asteroids, bullets etc…
![opengl 4.3 wall collision opengl 4.3 wall collision](http://www.ozone3d.net/public/jegx/201407/glslhacker-opengl-4-3-shader-storage-buffer-demo.jpg)
For example, don’t use the same color for the spaceship as you would for the arena or asteroids etc. Colors must be different for the game elements. Keep the 2D geometry for your game elements simple, preferably less than 8 triangles (except the asteroids). This assignment gives you creative control for deciding the look/feel of the game such as rendering spaceships/game elements and color picking.