Difference between revisions of "Project4F20"

From Immersive Visualization Lab Wiki
Jump to: navigation, search
(Moving the Astronauts)
(Moving the Astronauts)
Line 33: Line 33:
 
* Apply Toon shading
 
* Apply Toon shading
  
==Moving the Astronauts==
+
==Setting up Collision Detection==
  
 
* Create bounding spheres for all astronauts
 
* Create bounding spheres for all astronauts
 
* Create bounding spheres for the obstacles in the room (3 boxes)
 
* Create bounding spheres for the obstacles in the room (3 boxes)
 
* Create bounding planes for the walls: 4 axis aligned walls are sufficient, no need to implement diagonal walls.
 
* Create bounding planes for the walls: 4 axis aligned walls are sufficient, no need to implement diagonal walls.
 +
 +
==Moving the Astronauts==
  
 
1. Non-player astronauts:
 
1. Non-player astronauts:

Revision as of 20:55, 20 November 2020

Contents

Project 4: Among Us Simulator

UNDER CONSTRUCTION - DO NOT START YET

In this project you will need to build a 3D scene that resembles the activity in the lobby of the popular game Among Us. The lobby, a.k.a. waiting room, is where all players gather before the game starts.

If you are not familiar with Among Us, we recommend that you watch this video clip, which shows a typical game play. Importantly, the first minute of it shows the action in the lobby where the players gather before the game begins.

This video has more active players who keep walking around, which is similar to what you need to simulate for this homework project.

This project implements the following skills from the lectures:

  • toon shading
  • collisions with bounding spheres (when walking around)
  • particle system (when astronauts arrive or leave)

The total score for this project is 100 points. Additionally, you can obtain up to 10 points of extra credit.

This project will be discussed on Wednesday, November 25th.

Ideally, you re-use your scenegraph structure from project 3. But if you are not happy with it you can implement your project without a scenegraph structure.

Rendering the Lobby

  • Load OBJ model
  • set camera parameters
  • create directional light source

Rendering the Players

  • Load OBJ models
  • Assign one of 10 colors
  • Apply Toon shading

Setting up Collision Detection

  • Create bounding spheres for all astronauts
  • Create bounding spheres for the obstacles in the room (3 boxes)
  • Create bounding planes for the walls: 4 axis aligned walls are sufficient, no need to implement diagonal walls.

Moving the Astronauts

1. Non-player astronauts: start in random orientation walk straight, bounce off objects and other players (angle of incidence=angle of reflection) randomize stop/start walking

2. Player astronaut: Control with keyboard (cursor keys or WASD) Use collision detection to keep from walking into objects or other astronauts

All astronauts have to always face the direction they walk in.

The astronauts do not have to be animated (i.e., moving their legs when walking). But there is extra credit for it. They can be "stiff" and look like they float along the floor. They do need to always face the direction they are moving in.

Player Appearance/Disappearance Effect

randomize appearance/disappearance of characters particle system

Extra Credit (10 Points)

You can get up to 10 points of extra credit by adding some or all of the features below:

1. Sound effects: Add the following audio features to your applications:

    • A sound effect for when players join, and a different one for when they leave the lobby.
    • A sound effect for whenever the player character moves (e.g., footsteps)

The sound effects should not cut each other, in other words, they should be able to play at the same time without forcing one another to pause or restart.

2. Shadows

3. Walking animation

Submission Instructions

Once you are done with this project, record a video demonstrating all the functionality you have implemented.

The video should be no longer than 5 minutes, and can be substantially shorter.

Ideally, you will talk over the video to explain what you are showing. Alternatively, you can display text for this purpose.

To create the video you don't need to use video editing software, but you should use software to capture your screen to a video file.

  • For Windows users we recommend the free OBS Studio.
  • On Macs you can use Quicktime to record off the screen.

If this does not work for you, you can hold your phone in front of the screen and record with a steady hand.

Upload this video at the Assignment link on Canvas, and comment which functionality you have or have not implemented and what extra credit you have implemented. If you couldn't implement something in its entirety, please state which parts you did implement and hope to get points for.

  • Example 1: I've done the base project with no issues. No extra credit.
  • Example 2: Everything works except an issue with x, I couldn't get y to work properly.
  • Example 3: Sections 1-2 and 4 work.
  • Example 4: The base project is complete and I did z for extra credit.

Finally, zip up your source code (.cpp, .h, executable and shader files, as well as any .obj files which were not provided to you) and submit the zip file at the Assignment link on Canvas as well.