Basketball
The Basketball project is a virtual reality game for the HTC Vive. You can grab a ball and throw it through a hoop. The aim is to get as many points as possible in the given time. There are multiple rounds with increasing difficulty.
How to Start
- Start SteamVR and make sure all controllers are detected.
- Start Basketball.exe. (set the first command line parameter to ‘true’ if you want the short version with 2 rounds)
- Put on the head mounted display, controller loops and earphones.
How to Play
- Pull the trigger (at your pointing finger) when the controller is near the ball to grab it.
- Release the trigger to throw the ball.
- There are several rounds:
- The warm-up phase is free time to play around. The game starts after you scored 3 times.
- The hoop does not move. Each of the following rounds gives you 60 seconds to maximize your score.
- The hoop jumps after each hit.
- The hoop moves from left to right and back.
- The hoop moves in a circle.
- The hoop moves in a circle twice as fast. Afterwards, your final score is displayed and you’re back in the warm-up.
Grabbing Test
The grabbing test is a virtual reality game for the HTC Vive. You get a point every time you throw the wanted ball through the hoop. The wanted ball, 1 out of 4, is displayed at the hoop. The aim is to get as many points as possible in the given time. There are multiple rounds with increasing difficulty.
How to Start
- Start SteamVR and make sure all controllers are detected.
- Start GrabbingTest.exe directly or with command line parameter for certain types of feedback. There are .bat files in the solution directory for every combination of feedbacks.
- Put on the head mounted display, controller loops and earphones.
How to Play
- Pull the trigger (at your pointing finger) when the ball is within the selection volume to grab it. If enabled, haptic feedback (vibration) and optical feedback (highlight) show you if the ball can be grabbed.
- Release the trigger to throw the ball.
- The ball at the hoop shows which ball is required to score.
- There are several rounds. The selection volume shrinks after each round approaching the controller’s collidier.
- The light is yellow during the warm-up phase. Also, there is a short green flash when a new round begins.
Pointcloud Editor
The point-cloud editor is a virtual reality application for the HTC Vive. The aim of this application is to enable users to mark points. For example, you can select outliers and vegetation in laser scans of buildings.
How to Start
- Start SteamVR and make sure all controllers are detected.
- Start PointcloudEditor.exe directly or with command line parameters. The parameters are:
- Rendering quality: float, 0.0 - 1.0 (not used at the moment)
- Pointset file: string, path + file name + extension to a pointset file; 1st line is number of points, other lines are: pos.x pos.y pos.z intensity red green blue
- Reference operations file: string, path + file name + extension to an XML file containing the reference operations
- Load reference: bool, should load the reference operations and compare the current selection with it, or save the current selection to the reference file
- Storage path: string, path where the compressed cache of the pointset should be stored
- Auto compare in sec: float, time after which the comparison is automatically performed; 0 to disable
- Put on the head mounted display and start
How to Use
- To rotate and move the point-cloud, hold the trigger of a controller down and move it.
- If you hold down the triggers of both controllers, you can also scale the pointcloud like with a pinch gesture from touch-screens.
- You can select and un-select points when pressing the trackpad left or right respectively.
- You can scale the selection volume when pressing the trackpad top or bottom.
- When you press the application menu button, your current selection is compared to the reference selection or your selection is saved as a future reference selection, depending on the command line parameters.
- Comparison results are stored in ‘bin\Release\output\’.
Notes
How to Build
- Get the source
- Open cmd in a new project folder
- git clone https://github.com/ErlerPhilipp/VR_DA.git
- git clone https://github.com/vrvis/aardvark.rendering.git
- cd aardvark.rendering
- git checkout philipp
- Install OpenAL if you haven’t before
- Download dependencies and build
- Open a command line window in the VR_DA directory.
- Execute “build”. The build script will now download and install the dependencies.
- The executables are created in “VR_DA\bin\Release\”
- Run in Visual Studio
- Open the solution in Visual Studio (2015).
- Set the desired project as start-up project.
- Build and run the application. Better start without debugger and attach later. Otherwise, the shader compilation can take more than 5 minutes.
Credits
- We use textures from http://www.textures.com/. The textures are converted to compressed formats.
- Ball textures:
- Hoop model and textures:
- Sound effects exported as wav with Microsoft encoding
- Pointcloud dataset by VRVis