/WebGL-Armored-Car

WebGL based model of an armored car, fully controllable by the user, developed in the Computer Graphics (CGRA) class.

Primary LanguageJavaScript

Armored-Car-Modelling

WebGL model of an armored car controllable by the user, among other things.

Features

Controllable Armored Car Model

Fully modelled armored car with several geometric shapes such as:

  • Cubes (and its derivates) for the main structure;
  • Semi-spheres for the headlights;
  • Cylinders for the wheels and cannon barrel;
  • Prysms for the frontal armour;
  • Disks for the mirrors and parts of the wheel.

Each part is also fully textured.

cgfimage-tp6-t4g04-2 4

The car can be controlled through the WASD keys (W - Forward, S - Backwards, A - Left, D - Right). This movement is also animated.

Note: The longer the W/S keys are pressed the faster the car will move in the respective direction. If the one of the keys is pressed and then let go, the car will still move with the appropriate speed.

GUI

A functional GUI which allows the user to:

  • Switch on/off the lights;
  • Turn on/off the central axis;
  • Change the vehicle's textures.

cgfimage-tp6-t4g04-5 2

Uneven Terrain

The terrain surrouding the car is not entirely flat, having several hills around it.

cgfimage-tp6-t4g04-6 3

Magnetic Crane

In the scene is also present a magnetic crane. If the user drives the car to the designated parking spot on the map (and the car is within the boundaries), the crane will pick up the car and drop it on the other side.

cgfimage-tp6-t4g04-7 3