Skip to content

transformations

JayDee-github edited this page Feb 5, 2019 · 3 revisions

Transformations and spaces

This implementation applies transformation and coordinate-system concepts to create a 3D environment.

A smily face is created with boxes that rotate and change color over time.

Clown-face front Clown-face side Clown-face blackened

The code follows examples outlined in:

Changes over example code

  • Changed the positioning of the cubes in the world to form a clown face.
  • The boxes rotate with time. Each box rotates at a different rate.
  • The boxes are colored. A fading effect is used to fade between a color and black with time.
  • Added the ability to move up and down.

Running the implementation

  • Navigate the Solution Explorer to path:

    Solution -> 01.getting_started -> 07-09.transformations_and_spaces

  • Left-click the project name and select Set as Startup Project from the pop-up window.

  • Press F5 to run the project.

Interfacing with the implementation

Exiting

Press the ESC key to exit the implementation.

Movement

The movement key-bindings follow an FPS-style scheme:

  • W move forward
  • S move back
  • A move left
  • D move right
  • Spacebar move up
  • Left-Shift move down
  • Mouse-movement look around the world.

Clone this wiki locally