Overview
How to setup GUI into VR-headset
Abstract
This document is a manual for configuring the graphical user interface in virtual reality goggles for cars created and added to the simulator using the Steam workshop.
GUI configuring in VR goggles
The graphical user interface (GUI) for VR headsets is partly projected on the windscreen and partly shown on a special tablet in «City Car Driving. Home Edition». The instructions on configuring the GUI for the user’s cars are given below.
Head-up GUI
The following head-up GUI items are added in the VR environment:
- instructor messages;
- repair progress bar;
- transmission;
- factor messages for passenger transportation.
Their position, orientation and size are configured separately for each car and stored in locations with the following paths:
- “dataguiccdlayoutscars<CAR_NAME>WindowMessage.vr.ini”;
- “dataguiccdlayoutscars<CAR_NAME>WindowSubTaskProgressBar.vr.ini”;
- “dataguiCommonlayoutstransmissionscars<CAR_NAME>WindowTransmissionHMD.vr.ini”;
- “dataguiccdlayoutscars\<CAR_NAME>WindowSatisfactionMessageEvent.vr.ini”.
You have to create “WindowSatisfactionMessageEvent.vr.ini” yourself.
The content of these files has the following structure:
“Height” is measured in meters, and width is calculated automatically using the aspect ratio of the original window.
“Position” is position in the car space measured in meters.
“Orientation” is orientation measured in meters.
These parameters can be edited in the file or directly in the software using console commands (Table 1):
Table 1. List of console commands for parameter editing
Windows have the following names:
• instructor message — “WindowMessage”;
• repair progress bar — “WindowSubTaskProgressBar”;
• transmission — “Transmission”.
The following key combinations can also be used for configuring visual parameters (Table 2):
Table 2. Key combinations for configuring visual parameters
Recommended configuration methods
As instructor and progress bar messages are shown on the screen for a short time, there are some recommendations for their configuration.
To configure instructor messages, it is convenient to use car failure messages in case of an abnormal technical situation, as such message is shown on the screen for an unlimited period of time.
To configure progress bar, the console should first be invoked, and the command “vrw_startedit <WindowSubTaskProgressBar>”, entered. Then car repair is started, during which the pause mode is activated, and the item can be edited.
GUI projected onto a tablet
The position of GUI items on the tablet screen is fixed for all cars, but the location of the tablet and its appearance can be configured.
These settings are defined separately for each car in the file “datagamedatacars<CAR_NAME>CarProperty.ini” as follows:
“TabletModel” — path to n2 file of the tablet model relative to the folder “export/meshes” of the software’s root directory without indicating the extension. If you want to use your tablet model, it must be created and placed at the address: “export/meshes/cars/<CAR_NAME>”.
“TabletPosition” — navigator’s position in the car interior.
“TabletLookAt” — tablet’s orientation in the car interior.