Creating a Steam VR Environment
Now that you have created or captured some 3D content for virtual reality (VR) (post), the next logical step is to experience it in VR. This is particularly useful for visualizing information about cultural heritage, since the information is easier to manipulate and distribute in a digital form. Additionally, it allows scholars all around the world to develop creative ideas using VR technology that would otherwise be impossible. For example, the University Hall (U-Hall) building, the former home of the University of Virginia’s basketball teams, was scanned before its recent demolishment. After processing, this data could pave the way to creating an entirely virtual U-Hall experience for new students who have never seen the building, alumni who want to remember old memories, or researchers studying the architecture and history of U-Hall.
To get started, creating a SteamVR environment is a relatively straightforward way to get spatial content into a multiuser VR environment. The default setting for the SteamVR environment is the SteamVR Home, but SteamVR allows users to change it to a custom environment that can include a virtual representation of their 3D content. Even though the example below uses a zebra fish model, the steps can be applied equally as well to any other model, like a building of historic architecture.
To create a custom SteamVR environment, follow the steps below:
-
Click on the SteamVR icon from the desktop (as shown in the picture) or in the upper right corner of Steam.
-
Make sure your VR headset is connected by ensuring that the headset icon is green.
-
Before beginning the process to create the SteamVR environment, check some settings to make sure everything is configured correctly.
-
Make sure that the check box for the “Use SteamVR Home” setting is on.
-
To start the SteamVR environment process, go to the “Create/Modify an Environment” action under the “Workshop” category.
-
If there isn’t an addon already, click “Create Empty Addon” to create the overall project for this environment.
-
Once the addon has been created and named, click on it and click the “Launch Tools” button to initiate the project.
-
Two windows will open. The first one is the SteamVR preview window.
-
The second one is the master window for all the tools. Click the third icon from the top left, which is the one that looks like a person, to launch the Model Editor.
-
For this tutorial, we will be using the Zebra Fish model’s .FBX files from Google Poly found at this link (https://poly.google.com/view/elRLfCW4QZB).
-
In the .ZIP file download (second item in the folder), there is a .FBX file (first item in the folder) that will be imported into the environment. Extract that file from the .ZIP file.
-
Click “New VMDL From Mesh File” to create a new Valve Model (VMDL) file from the 3D content’s file (or in this example, the .FBX file of the zebra fish model).
-
Find the mesh file of the 3D content and click on it.
-
A warning box should pop up. Click “OK” to ignore it and resume the process.
-
This screen is the next window that opens. The default values should be similar to the ones in the picture. A few settings need to be changed here. First, click on the button next to the “Destination Directory” text field, which should be empty.
-
It should automatically direct you to the correct folder. In this folder, create a subfolder.
-
Click on that subfolder that was just created.
-
Upon returning to the model creation window, give the Valve Model a new name if desired. The collision type should be changed here if needed as well. The “No Collision” setting does not apply physics to the 3D model. The “Hull” setting applies a coarse boundary, like a cube or a sphere, which saves on processing power. The “Exact” setting follows the exact geometry of the 3D content, which is very resource-intensive.
-
This window is what should open after completing the instructions for the previous window.
-
With the Model Editor still open, go back to the main screen and click on the Hammer (Map Editor) tool in the top left corner.
-
The screen will be blank at first, so create a new map by clicking on File and New.
-
A new, blank SteamVR world map has opened up now. The top-center window is the 3D view and the bottom-left-center window is the 2D overhead view.
-
Find the file path to the Valve Model file. The picture should show the default file path.
-
Once in the correct folder, drag the Valve Model file into the top-center window (the 3D view).
-
The model should appear in both the 3D and 2D views.
-
Zoom into the view until the model appears more clearly.
-
Click the light bulb icon to the left and search for the “info_player_start” item.
-
Click in either of the view windows to place the selected item. The views should now have a person that is visible.
-
This step is optional. To restrict the movement possibilities around the object, click on the light bulb icon again and search for the “vr_teleport_marker” item. Click around the view windows to place the icons. With these markers, the user can easily jump around between the designated teleport spots. Without these markers, the user can teleport to any spot around the model, which is less restrictive, but also more power-intensive for the computer.
-
Once finished placing any necessary teleport markers, exit the light bulb icon and click the markers that are already placed to move them around in the X-, Y-, and Z-axes.
-
Go to File → Build Map to construct the VR map, or just hit F9.
-
When the Build Map window pops up, click the Build button to initiate the process of constructing the VR environment.
-
Once the process is completed, the SteamVR preview window in the Step 8 picture should change and the window should change to show a part of the 3D view of the built environment. Now put on the VR headset and enjoy your very own custom SteamVR environment!