Difference between revisions of "Project4W21"
(→Stationary Menu) |
(→Radial Menu) |
||
Line 58: | Line 58: | ||
Here is a sketch of the radial menu: | Here is a sketch of the radial menu: | ||
− | [[Image:radial-menu.jpg| | + | [[Image:radial-menu.jpg|250px]] |
===Stationary Menu=== | ===Stationary Menu=== |
Revision as of 13:54, 22 February 2021
Contents |
Homework Assignment 4: Building Blocks
THE PROJECT IS UNDER CONSTRUCTION AND WILL BE RELEASED BY DISCUSSION ON 2/22
Prerequisites:
- Windows or Mac PC
- Unity
- GitHub Repo (accept from GitHub Classroom link)
- VR headset with two 3D-tracked controllers, such as the Oculus Quest 2, Rift (S), Vive, etc.
Learning objectives:
- 3D menu interaction
- Radial and rectangular menus
- Hand-centered menus
- Room-centered menus
- Menu widgets: buttons, sliders, dials
For this assignment you can obtain 100 points, plus up to 10 points of extra credit.
The goal of this assignment is to create a 3D application to create building blocks of different shapes and colors and allow the user to play with them.
All interaction (except otherwise noted) has to be done with the VR system (headset and controllers). The user is not allowed to use keyboard or mouse.
We will give an introduction to this project in discussion on Monday, February 22nd at 4pm.
Concept
Create an application to allow the user to spawn 3D building blocks with a 3D menu and build structures with the blocks. Gravity should be part of your application. The user is assumed to be in a seated position when the application starts, as well as throughout the application.
Implement the following features:
- A radial menu to select the type of block to create.
- A stationary menu on the desk to change color and size of an object, as well as control gravity.
- The ability to move the blocks around with the controller, including putting them on top of one another.
Here is a picture of a childrens' toy which can serve as inspiration:
Components
- Create a large rectangle to serve as a table surface to put the building blocks on. Place it at the height of a typical desk and right in front of the user in the VR space.
- Use the Virtual Hand interaction method for all interactions with the application. You can re-use the one from project 3.
Radial Menu
Create a radial menu that shows up next to your non-dominant hand's controller when the user twists their wrist so that the palm faces towards the user.
- When the radial menu is visible, the user can click on an item with the dominant hand's controller.
- The radial menu should have entries for the four different shapes the user can create: cubes, cuboids, spheres and cylinders. (All are part of Unity's built-in 3D object types or can be derived from them.)
- Create icons for the four different shape types. You can copy images from the internet, or take screenshots of the objects you're creating. Show the icons in the four quadrants of the radial menu.
- When the user hovers over one of the four items it should be highlighted before the user clicks on it.
- When the user creates a new shape with the radial menu, a new block of this shape should show up in the user's hand and it should be colored white or grey.
Here is a sketch of the radial menu:
Stationary Menu
Create a rectangular stationary menu and place it on the table in front of the user (or off to the side of the user's dominant hand). This menu should always be visible. This menu should have the following widgets:
- Four buttons to change the selected object's color to red, green, blue or yellow. The buttons can be round or rectangular.
- A dial to change the size of the block (all three dimensions equally).
- A slider to change the amount of gravitational force: when centered it should be what we are used to on Earth, but you should be able to reduce or increase this force to 1/10th or 10x (respectively) with the slider.
Here is a sketch of what this menu could look like:
Other Requirements
- The most recently selected block should be highlighted with a method of your choice, for instance the same as in project 3.
Notes:
- You do not need to implement any travel method for the user. But all 3D components of the software should be set up so that they can be comfortably reached from a seated position.
- The only button on the controllers you need to support is the trigger on the dominant hand's controller.
Extra Credit (10 Points)
You can choose between the following options for a maximum of 10 points of extra credit.
- Add sound effects to your application for any clicks in menus. Use different click sounds for the radial menu and the stationary menu. Also use sounds that you adjust the pitch of for the dial and the slider. (5 points)
- Create a color selector for proper RGB color selection with sliders or dials. (5 points)
Submission Instructions
Once you are done implementing the project, record a video demonstrating all the functionality you have implemented by using the menu to create various building blocks, place them on the table or on other blocks, and change sizes and gravity.
The video should be no longer than 5 minutes, and can be substantially shorter. The video format should ideally be MP4, but any other format the graders can view will also work.
While recording the video, record your voice explaining what aspects of the project requirements are covered. Record the video off the screen while you are wearing the VR headset.
To create the video you don't need to use video editing software.
- On any platform, you should be able to use Zoom to record a video.
- For Windows:
- Windows 10 has a built-in screen recorder
- If that doesn't work, the free OBS Studio is very good.
- On Macs you can use Quicktime.
Components of your submission:
- Video: Upload the video at the Assignment link on Canvas. Also add a text comment stating 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 expect 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 are fully implemented.
- Example 4: The base project is complete and I did z for extra credit.
- Executable: Build your Unity project into an Android .apk, Windows .exe file or the Mac equivalent and upload it to Canvas as zip file.
- Source code: Upload your Unity project to GitHub: either use the Unity repository initialized from GitHub Classroom or any GitHub repository that you might set up on your own. Make sure you use the .gitignore file for Unity that is included in the repo so that only project sources are uploaded (the .gitignore file goes in the root folder of your project). Then submit the GitHub link to Gradescope by using 'Submission Method: GitHub', along with your Repository link and the respective GitHub branch. (Note: GitHub Classroom is only for starter code distribution, not for grading. Since we don't have any starter code for HW1, you can set up your own repo with Unity .gitignore file we provided and submit to Gradescope too.)
In Summary, submit to Canvas with 1. Video and 2. Zipped Executable files (.exe, .dll, .apk, etc.), and submit to Gradescope with 3. Source Code.