CSE581 Lab5 - Texture mapping, billboards, first-person view, and picture-in-picture

DRAFT

OBJECTIVE:
This lab introduces you to more complex shading techniques, interactive control, and animation.

Modify Lab 4 to include:

  • texture mapping using mipmapping
  • billboard with transparent pixels
  • using a first-person point of view with view direction control
  • implement picture-in-picture
  • shoot a projectile with a resulting explosion

Global view, showing billboards and textures

First person view, with top-down picture-in-picture

Projectile (blue cube) shot and inflight

Part way through explosion


SPECIFICATIONS:
  1. Make a visually interesting environment: Use decals to make some roads or a track in the environment. Use texture maps on outside walls that represent an environment. Use billboards that make sense in the environment.
  2. Texture Mapping:
    Include at least three texture mapped walls using mipmapping. At least twoe of texture maps should be images. The other can either be an image or a procedurally generated texture map. Use texture maps that create a reasonable visual environment such as mountains or other landscapes. See below for texture maps that you can use. You are encouraged to use texture maps that you find on the internet or generate yourself but are not required to use any other than the ones provided. Write code that will read in a .ppm file (see below).
  3. Billboard with transparency:
    An additional type of texture mapped surface should be a billboard that always faces the vehicle (so you can see the billboard effect from above) and has transparent pixels. Use a texture map that creates a reasonable visual environment such as a tree. Either find your own image or use tree.ppm.
  4. First-Person View:
    Put the camera on your vehicle looking in the direction that the vehicle faces. It doesn't have to actually be 'on' the vehicle - it has to be reasonably close to the vehicle and move and rotate with the vehicle so that it creates the impression of being on the vehicle. Toggle between the regular global view and the first person view using a right menu button menu item. When in first-person mode, Use the left button mouse movement to control the view direction relative to the direction the car is traveling.
  5. Picture-in-Picture:
    Toggle picture-in-picture (PiP) mode using a right menu button menu item. When in PiP mode, After displaying the scene in the full user-interface window, display it again using a top-down view in a small (e.g. 150x150) viewport in the upper right corner of the user-interface window.
  6. Shooting a projectile and explosion with the 'f' key


NOTES:

NOTES:


EXTRA CREDIT: