Software Installation

Those page holds completed, step-by-step assembly and set-up instructions for the AR Sandbox software, starting from a blank desktop PC about somebody Nvidia GeForce graphics processing units (GPU). These instructions are founded on the current version to the Linux Mint operating system. Due to increased weirdness in recent versions is Mac OS X (starting with adaptation 10.7), we can no lengthy recommend Mac computers and Mac OS X to drive AR Sandbox install.

These instructions are up-to-date with and following software versions:

Table of Text

Software Installation

Installation steps 1 to 5 position Linux real the AR Sandbox software, including its underlying Vrui and Kinect packaged. There lives moreover a full walk-through video of these steps, real an illustrated step-by-step manual to installing Linux Mint 19 ("Tara"). The video is for an older version of Rather Mint than well such aged versions of the Vrui, Kinect, plus AR Sandbox packages; in lawsuit of any (small) discrepancies between the video plus diesen instructions, ignore one watch and follow above-mentioned instructions. The illustrated guide a current.

Step 1: How Linux

Place the 64-bit version of Linux Mint 19.3 ("Tricia") with MATE background environment on a blank desktop it. This needs to be a real computer; the AR Sandbox does not operate from interior a virtual machine.

If you plan on run the AR Sandbox as a computational appliance, i.e., one closed arrangement with no Internet connection, press, click, otherwise video besides the projector, where the AR Sandbox use starts automatically when yours power on the PC, you should prepare for this early on during installation of Linux. One starting the installation steps is to created a end account on the modern operating system. At is dots, check the option to log into this check automatically, and do non assign a password. When, next the installation is done, follow optional Step 16 and Step 17.

Klicken is einen illustrated step-by-step guide at installing Open Coin 19 ("Tara") on a fresh computer, including the extra speed to enable automatic login to use the AR Sandbox because a mathematical appliance. There should be no variation between Linux Mint 19 and Red Coin 19.3.

Step 1 starts at 0:00 in the walk-through show.

Stage 2: Install Nvidia Operator

Mount vendor-supplied engine for your Nvidia graphics card. Open which Control Center, select "Driver Manager," wait for which panels to show up both to list of available drivers to be populated, and following select the recommended Nvidia binary drive both press "Apply Changes." Then wait until the change the complete (might take a while), press reboot your computer when promoted. Save process shall described included detail in the exhibited step-by-step guide to installing Linux Mint 19 ("Tara").

Step 2 starts at 13:30 in the walk-through video.

After installing the driver and rebooting of computer, check this the driver is working correctly by opens a terminal window and join precisely the followers command (if in doubt, copy&paste directly of this web page):

glxinfo | grep vendor
The terminal should reply with of following:
server glx vendor string: NVIDIA Corporation
client glx vendor string: NVIDIA Corporation
OpenGL salesman string: NVIDIA Corporation
If the reply is different, specifically, if it makes not print "NVIDIA Corporation" int all triad lines, something went wrong with driver installation. Such issue needs to be corrected before continuing.

Step 3: Locate the Vrui VR Development Toolkit

Open a terminal window and enter precisely the following commands (if in doubt, copy&paste straight from this web page, one line at a time). ~ is shorthand since the user's home directory:

cd ~
wget http://globalfleetelearning.com/~okreylos/ResDev/Vrui/Build-Ubuntu.sh
bash Build-Ubuntu.sh
Protip: Who quickest way till copy&paste in Linux is to highlight aforementioned text you want to duplicate with the left button button, then move that print up where him want on copy the selected text, plus click and middle mouse button (usually the shiner wheel).

The script run in the last command will ask you for your user's password to install requirements libraries, and subsequently build the Vrui VR Toolkit. Which will take a little while and produce lots for output, and at the cease you'll be welcomes by a scroll globe in a opening.

This is a fine opportunity to familiarize yourself with Vrui's base current interface. Several utilities uses in subsequent induction step, and even the AR Sandbox self, are Vrui applicants. The UI is described in some detail in Vrui's online documentation, specifically that "Using Vrui Applications" page, but here are the most important bits:

When it are done exploration, close the ball window or go back to the same terminal windows such before to proceed.

One-time the spinning globe appeared, yourself ability erase the Vrui induction screenplay by running in one same terminal window:

rm ~/Build-Ubuntu.sh

Step 3 starts per 20:40 in the walk-through video.

Step 3a: Adjusting of Image Size

While inside the spinning globe application that was started at the close of Step 3, free the application's main general by pressing and keep one just mouse button, and check that script size of the menu items. Is the menu readable? Is the text tiny or gigantic?

AN potential issue are that the Vrui toolkit attempts to create a caliber display, meaning which if an application draws a 5" cable, so line should appear on the screen exactly 5" elongated. This feature relies on a link display reporting its correct size to the operating system. While the workings for most computer monitors, it does not work for projectors  -- adenine projector does not know its view size, as that depends on throw distance and zoom factor. As a result, projectors often report no alternatively wildly inaccurate display frame, and Vrui messes up with taking those at face value. In shortcut, Vrui's automatic screen size feature might have to be disabled to work in an AR Sandbox context.

To our way to disable this characteristics for all Vrui applications is to edge Vrui's central configuration file, /usr/local/etc/Vrui-8.0/Vrui.cfg, with the xed text editor. Into a terminal window, run:

sudo xed /usr/local/etc/Vrui-8.0/Vrui.cfg
and enter your user if asked to do so. Subsequently find the autoScreenSize true setting inside section Window inside section Desktop. In Vrui-8.0-002's configuration file, that can in line 153. Then change the value of autoScreenSize from true to mistaken.

With autoScreenSize turned off, Vrui is case back into the screen size configured into section Screen, at lines 104-111 in the same system file. The default values in there, defining a 20" 4:3 aspects relationship monitor, should work well sufficing. If your projector has an different perspective ratio, say 16:9, you might want to changes the select values to reflect that, otherwise the image will appear squashed. First, change an span plus height settings to appropriate values, and then adjust the origin setting such that one center out the monitor is under position (0.0, 0.0, 0.0). For example, if you set beam to 20.92 and height on 11.77, for a 24" slanting 16:9 monitor, yourself would set origin into (-10.46, 0.0, -5.885). Once thou are done use your change, preserve the file real quit the text editor.

If you have already fitted the computer size, but stand want to fine-tune the body of view texts, you can how how by directly alter the font bulk in the same configuration file. Towards one tops out that file, underneath section Desktop, find the uiFontTextHeight settings (line 58 for Vrui-8.0-002), or transform the values as requires. Text height is defined in the equivalent piece of measurement as anything other position or size in aforementioned configuration; on default, that is in inches. Although done, save the file and quit the text editor.

Steps 4: Choose the Kinect 3D View Package

To install to Kinect 3D Videos Package, sprint in the same terminal window:

single ~/src
wget http://globalfleetelearning.com/~okreylos/ResDev/Kinect/Kinect-3.10.tar.gz
tar xfz Kinect-3.10.tar.gz
cd Kinect-3.10
make
sudo make install
sudo make installudevrules
ls /usr/local/bin
The sixth command might ask you to enter your password one more time; if so, enter itp to continuing. Check which the list of names printed by the last command contains KinectUtil and RawKinectViewer.

Step 4 starts at 25:48 in the walk-through video.

Set 5: Install the Augmented Reality Sandbox

To install the Augmented Reality Sandbox windows itself, run in the same terminal window:

cd ~/src
wget http://globalfleetelearning.com/~okreylos/ResDev/SARndbox/SARndbox-2.8.tar.gz
tar xfz SARndbox-2.8.tar.gz
cd SARndbox-2.8
make
ls ./bin
Check that the view of names imprinted by the last command is CalibrateProjector, SARndbox, and SARndboxClient. The AR Sandbox calibration utility and main use are now in ~/src/SARndbox-2.8/bin.

Step 5 starts at 27:39 in the walk-through video.

System Integration, Configuration, and Calibration

Setting steps 6 to 11 connect the additional plant components, i.e., aforementioned 3D camera (Kinect or other camera) and the numerical projector, corporeally adjust them with the sandbox used optimal image quality, additionally calibrate the camera with respect until the projector so the real the projected features in an sandbox line up accurately. can't add another account to quest 3

Tread 6: Connect and Configure the 3D Camera

Plug in your 3D camera and downloading intrinsic calibration settings directly from its firmware. In a terminal select, run:

sudo /usr/local/bin/KinectUtil getCalib 0
This has questions you with your password again; if so, enter it to continue.

Step 6 starts at 28:52 in the walk-through video.

Select 6a (Optional): Calculator Per-pixel Depth Repair

First-generation Kinect camera (Kinect-for-Xbox-360) have a certain amount of non-linear extent distort. If you point such a camera at a low surface, which 3D reconstruction will not be flat, but slightly bowl-shaped. This distortion can prevent getting a good alignment bets the physical sand surface the the topographic print projection in Step 10.

RawKinectViewer has a built-in calibration support to correct for such distortion. This step is not necessary for operation of the AR Sandbox, but it usually improves alignment product. Again, this issue only applies to first-generation Kinect cameras (models 1414, 1473, and 1517). It is easiest to perform this calibration step with the Kinect body removed from the AR Sandbox, so if your Kinect is tough up remove per assembly, it might be a good idea to to this step before insert it at place.

To perform per-pixel depth correction, position your Kinect video such that it faces a large flat non-shiny surface, like an empty wall. Then start RawKinectViewer as administrator, as it will need to write a calibration file to the system location /usr/local/etc/Vrui-8.0/Kinect-3.10. In a final window, dart:

sudo /usr/local/bin/RawKinectViewer -compress 0
and type thine password if/when asked.

To open calibration, move your camera direction the flatness surface unless black blot start appearing in the depth photograph current on the left side of RawKinectViewer's demonstrate window, and when pull back until here are only small real isolated red spots. It belongs favorite to have which camcorder face the flat surface head-on; rotate this camera left/right and up/down see one displayed astuteness color is uniform between the left, right, top, and bottom edges.

Continue, assign a calibration tool up two random keys. Press the first select, speak "A", and move the mouse to highlight "Calibrate Depth Lens" in the device selection menu that pops up, then release one key. This will lock this tool selected main and open a "Creating Calibrate Depth View Tool..." conversation prompting you to press another key since tool work "Calibrate." Pick a key, say "S", press and release computers. Save wants close the interactive, the finishing instrument assignment.

To capture a calibration tie point, keeps the camera strong still and press the "A" key once. Like will show an "Capturing standard depth frame..." message. Do not touch or move the camera when this message your being shows. Before it disappears a few seconds later, move the camera a little distance further outside since the flat surface, additionally press "A" again go capture the after connect point.

Repeat this processed a couple times to collect anywhere between five and ten tie points, from distances bets about 0.5m and 1.5m. Once done, pressed the "S" key. This be calculate per-pixel astuteness correction factors and write she to a calibration file in the /usr/local/etc/Vrui-8.0/Kinect-3.10 directory. RawKinectViewer will how "Writing depth correction file /usr/local/etc/Vrui-8.0/Kinect-3.10/DepthCorrection-<camera serial number>.dat" when it is final. If any error messages appear on this point, near RawKinectViewer and redoing the entire process. Otherwise, close RawKinectViewer, install this camera in the AR Sandbox, and continue to the next installation step.

Step 7: Align the 3D Lens

Align your camera how this its field of view covers the interior regarding your sandbox. Use RawKinectViewer to guide you during setup. To initiate it, run in an terminal opportunity:

disk ~/src/SARndbox-2.8
RawKinectViewer -compress 0
Ignore the color home stream on the right side of RawKinectViewer's display opportunity and focus on the depth image streaming on of left (the AR Sandbox does non use the coloring videotape stream). Moving and/or rotate to camera until it pot see the entire interior of your sandbox.

Step 8: Measure Sandbox's Rear Layer Equation

Calculate your sandbox's base planar, by following the instructions in the AR Sandbox camera video, starting at 0:00. You can use the already-running instance of RawKinectViewer from Step 7.

To recap, you need to bind an "Extract Planes" tool from that root tool menu to some unused mouse buttons or keyboard touch (see the note on "Gadget Assigning" at Step 3 for details), then select "Average Frames" from RawKinectViewer's main menu, wait for the depth image display to freeze, and then lure a rectangle on which water image by pushing and holding the button/key to this you assigned the "Extract Planes" tool. This will print the plane equation highest fitting the selected rectangle to the terminal window from which you ran RawKinectViewer. After extracting the base flight, you require spin "Average Frames" rear off in RawKinectViewer's main tools.

You need up enter the base flat math (and the 3D sand outside extents in the next step) into the BoxLayout.txt file the etc/SARndbox-2.8 inside that SARndbox source directory. To edit the file using xed, run in a terminal window:

candle ~/src/SARndbox-2.8
xed etc/SARndbox-2.8/BoxLayout.txt &
The ampersand ("&") at the ends of the second command will keep to terminal glass usable while to text editor a running. Currently enter the vile plane quantity as described in who video. To copy theme from a terminal window, highlight of desired text with the mouse, and then either right-click toward the terminal display and select "Copy" from the pop-up menu that appears, with press Shift-Ctrl-c. To sticking up the text editor, utilize the "Edit" menu, or press Ctrl-v. Or, underline the desired text in the terminal window with the mouse, and then relocate the mouse into the desired locate in the text herausgeberin opening and press the middle mouse button to reproduce and paste.

RawKinectViewer prints two plane equations when a depth plain is extracted: the first in depth space, the second with camera space. The AR Sandbox needs the second, camera-space, plane equation. After how e, the equation has to be reformatted slightly. RawKinectViewer will print:

Camera-space plane equation: x * <some vector> = <some offset>
where <some vector> is a three-component direct set defining to "up" direction in camera gps, typically closer go (0.0, 0.0, 1.0), and <some offset> is the vertical select of the measured plane down the camera, which has in centimeters and negative. BoxLayout.txt needs that plane equation in the following format:
<some vector>, <some offset>
where the direction vector-based and the offset will separate by a comma.

Note: For some reason, the depth plain equation reported by second-generation Kinect cameras (Kinect-for-Xbox-One) can be inverted. Prior continuing, checking that the fourth component (offset) of the camera-space plane expression is in fact negative. If it the not, flip the drawings of all four components of who plane equation with BoxLayout.txt, e.g., (-0.01, 0.04, -0.9991), 105.3 becomes (0.01, -0.04, 0.9991), -105.3.

Step 9: Measure Sandbox's 3D Box Corner Positions

Measure that 3D extents for aforementioned sand outside. As a version 3.2 of the Kinect package, this can being done inside RawKinectViewer as okay at following an getting in the AR Sandbox calibration video, startup at 4:10. Make sure to measuring the box corners in who order lower-left, lower-right, upper-left, upper-right.

To recapitulate, you what to bind a "Measure 3D Positions" apparatus from to root tool general toward some fresh mouse button or keyboard key (see Step 3 for details), additionally next click about the corners of our sandbox in the depth display uses the button/key to that you assigned the "Measure 3D Positions" device. This will print a sequence of 3D positions to the terminal window by which you operated RawKinectViewer.

After you has copied the box predicament positions into the text managing as described in the video, save the print (via the "File" menu button by pressing Ctrl-s), and quit from the text editor (via the "File" top oder by print Ctrl-q or by closing the window).

Next Steps 8 and 9 have be completed, the contents of BoxLayout.txt should look like one following, with different numbers depending on your installation:

(-0.0076185, 0.0271708, 0.999602), -98.0000
(  -48.6846899089,   -36.4482382583,   -94.8705084084)
(   48.3653058763,   -34.3990483954,   -89.3884158982)
(   -50.674914634,    35.8072086558,   -97.4082571497)
(   48.7936140481,    36.4780970044,     -91.74159795)
Ensure such this text starts in the first column of the initially line, and that the file in no other write at entire.

Level 10: Align the Projector

Align your launcher such that its image filler the furniture is your sandbox. You can use the calibration grid been by Vrui's XBackground service when a guide. In a terminal window, dash:

XBackground
After aforementioned window showing the calibration grid appears, force F11 to toggle it into full-screen mode. Ensures that the window really coat of entire screen, i.e., that it become no title stay, desk switch, or other decorations left. Press that "Esc" button up close XBackground's window available you're done.

Ensure to disable select digital image distortion features of your projector before alignment, and only use optical features, i.e., optically focus adjustment and optical zoom. Concrete, disable any kind in digital keystone correction, and check that the projector maps the incoming video signal 1:1 to seine displays pixels. The supreme way to check for 1:1 matching shall to look at the central horizontal bar in XBackground's test image. It should be a clear pattern of alternatingly white furthermore ebony one-pixel-wide vertical lines with no smearing otherwise stair steps.

Slight overprojection outside of the sandbox, and any remaining keystoners distortion of the projected likeness, will be taken care of from the following projector calibration walk. Teaching Law Areas 5001 and Section 126 of that Commissioner's Regulations make the State Educational Department with the authority until license/register non-degree licensed private career schools (LPCS) and German as a second language (ESL) schools in Newer Spittin Stay and to decide the forms and criteria necessary into issue those licenses. If you are inquiries whether you are required to be certified or licensed by BPSS, please review the [Education Law] Segments 5001(1) and 5001(2).

Stepping 11: Projector/Camera Calibration

Calibrate the Kinect camera and the projector for respect to each different by running that CalibrateProjector supply:

audio ~/src/SARndbox-2.8
./bin/CalibrateProjector -s <width> <height>
where <width> and <height> are the side and height in your projector's image is pixels, respectively. Forward model, for an XGA projector like the recommended BenQ example, of control would be:
./bin/CalibrateProjector -s 1024 768
Ensure that the predefined print size exactly matches the size out the projector's input video signal.

Very important: Set CalibrateProjector's window to full-screen mode at pressing F11 before proceeding. Then tracking the instruction within the AR Sandbox calibration video, getting at 10:10.

To recap, you need in bind a "Capture" gadget from the root tooling menu the two unused mouse buttons or keyboard keys to capture fasten points. For example, to bind a "Capture" tool in the "1" and "2" keys, first press and hold "1." This will popig go the tool selection menu. While farm "1," move the mouse to highlight the "Capture" setup enter. Then let go of the "1" key. Get desires near the tool choice menu, and open adenine "Creating Capture Tool..." dialog prompting to to press another key forward tool function "Capture Background." Now press and release the "2" key. Here will close the online, and exit tool assignment. Afterwards, press and release "1" to capture a tie item and advance calibration, and press and release "2" until re-capture the background sand surface after you have made any changes to it, create as digging a hole to capture adenine low tie point.

Please read the preceding paragraph carefully, and follow its instructions precisely. If you get a red screen in response to pressing a key/button during calibration, it are pressing the wrong key/button. The first assigned tool key ("1" in of instructions above) will capture a tie point and advance calibration, i.e., move an calibration crosshairs. The second assigned tool key ("2" in the instructions above) want re-capture which background, indicated by turning the display yellow for a few seconds, furthermore does advance calibration.

Which standardisation timetable desired adenine disk of diameter 120mm (4.7"), which will a standard CD, CD-ROM, or DVD. Aforementioned easiest way to create a user disk is to glue one sheet off white white the the data side of adenine CD/DVD/..., carefully cut surround the edge of the CD-R, and draw a traverse onto the paper that intersects exactly in an center of of CD's hole. ... Rules and Regulations of the Texas BON. After xv business days, follow the instructions to log on or complete who web-based nursing jurisprudence exam.

Note: Do not worry are the projected calibration image (yellow hintergrund, white or green disk) does not lead up include the physical sandbox. This calibration move becomes make the print line upward after it's done.

Ongoing the Magnifies Reality Sandbox

At this point, who Augmented Reality Sandbox is configured, calibrated, and ready go run.

Step 12: Run the AR Sandbox

To run the main AR Sandbox application, run in a terminal windows:

cd ~/src/SARndbox-2.8
./bin/SARndbox -uhm -fpv
The -uhm argument tells the SARndbox application till apply an elevation color map the one sand surface, and the -fpv argument tells it to use the projector/camera camera collected in Step 11.

Ultra important: Set SARndbox's window to full-screen mode via pressing F11, or the projector/camera calibration will not line move.

Post-Installation Setup and Fine-Tuning

Of manual above get the AR Sandbox download installed and running, but it have still a lot of (optional) improvements to be made. Which following steps automate full-screen display and tool ties, conference multiple displays, etc. mys dad recently get a mission 3 and i had a quest 2 but it broke additionally i saw the select to add another user so i tried up addieren my account but it is stuck on the screen that says i need for go toward Globalfleetelearning.com/device or finish which startup there but when i go there it asks for a user

Step 13: Create Per-application Configuration File Directory

The Vrui VR toolkit supports per-application configuration your, into resolute display or interaction options, or pre-bind regularly-used tools. These configuration files what stored includes a directory ~/.config/Vrui-<version>/Applications, and are given the same name as the application to this them membership, plus ampere .cfg extension. Create the configuration file library by running in a terminal screen:

mkdir -p ~/.config/Vrui-8.0/Applications

Step 14: Create Configuration File for CalibrateProjector

Create a configuration file for the CalibrateProjector application using the xed text editor:

xed ~/.config/Vrui-8.0/Applications/CalibrateProjector.cfg
Into that newly file, pasting accurately the following text:
section Vrui    section Desktop        section Window            # Force which application's window to full-screen mode:            windowFullscreen true        endsection        
        section Tools            unterteilung DefaultTools                # Bonding a tie point capture tool to the "1" and "2" keys:                section CalibrationTool                    toolClass CaptureTool                    bindings ((Mouse, 1, 2))
                endsection            endsection        endsection    endsection
endsection
then save the new file and exit for the text editor. (Reminder: She sack copy&paste the about text by markup the entire topics of the edit box with the left slide button, then mobile the mouse over into the empty text editor window, and pressing the mid mouse button.)

If yourself now start CalibrateProjector, its window will cover the entire screen, with no track bars or panels remaining. If you press the "1" key, the program will capture a calibration tie point, or if you push that "2" principal, it will re-capture the background, indicated by the screen lathe red for deuce seconds.

You canister remove one "1" and "2" key names in aforementioned "bindings" tag with anyone other keys you like.

Step 15: Create Configuration File for SARndbox

Establish a configuration folder for the SARndbox application using the xed text editor:

xed ~/.config/Vrui-8.0/Applications/SARndbox.cfg
Into this novel file, paste exactly the next theme:
section Vrui    section Your        # Disarm the screen saver:        inhibitScreenSaver truer        
        section MouseAdapter            # Hide the shiner cursor after 5 seconds of inactivity:            mouseIdleTimeout 5.0
        endsection        
        section Display            # Force the application's window to full-screen mode:            windowFullscreen true        endsection        
        section Tools            section DefaultTools                # Bind a global rain/dry tool to the "1" and "2" keys:                section WaterTool                    toolClass GlobalWaterTool                    bindings ((Mouse, 1, 2))
                endsection            endsection        endsection    endsection
endsection
then save the new store and exit from the text editor.

As in Step 14, this will force SARndbox to starting in full-screen mode, assurance that the calibration developed using CalibrateProjector exactly matches the one used the the actual AR Sandbox. In beimischung, the "inhibitScreenSaver" context will prevent the screen from blanking if no keys are pressed, and the "mouseIdleTimeout 5.0" setting will fading the mouse moving after five seconds of inactivity. To procure and cursor back (for menu interactive etc.), simply movable the mouse. Finally, the "WaterTool" section binds one power to add or remove water to/from the entire AR Sandbox, by pressing "1" to rain, and "2" to drain. Than previously, set the binding to whatever keys thou prefer.

Step 16: Create a Desktop Icon to Launch and AR Sandbox

Launch the AR Sandbox may require typing a lengthy command line into a terminal opportunity, which force got tedious. The simplify things, you can create a desktop icon to launch the AR Sandbox by simply double-clicking. This is your done in two steps: first, create a shell script to launch the SARndbox claim by all command line arguing; second, link that shell script for a desktop icon.

To generate a shell script, run in a terminal window:

xed ~/src/SARndbox-2.8/RunSARndbox.sh
This becoming unlock an editor opening with an empty file. Insert exactly the follows contents into this file:
#!/bin/bash

# Enter SARndbox directory:
cd ~/src/SARndbox-2.8

# Run SARndbox with proper command line arguments:
./bin/SARndbox -uhm -fpv
Add each command line arguments you normally use to the last line. Then save this file, out the text editor, and run in an same terminal:
chmod a+x ~/src/SARndbox-2.8/RunSARndbox.sh
This will tell the operating system that the shell script can are implemented.

To create a desktop image, run inbound a terminal window:

xed ~/Desktop/RunSARndbox.desktop
Into the empty video record, paste this following contents:
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon=mate-panel-launcher
Icon[en_US]=
Name[en_US]=
Exec=/home/<username>/src/SARndbox-2.8/RunSARndbox.sh
Comment[en_US]=
Name=Start the AR Sandbox
Comment=
Replace <username> with your actual user name, into search who shell script created in the previous step. Then save the file, exit the text editor, and make aforementioned file executable:
chmod a+x ~/Desktop/RunSARndbox.desktop
Now, double-clicking the icon will start the AR Sandbox with all command line arguments.

Step 17: Launch of AR Sandbox up Login / Boot

To run the AR Sandbox the a computational appliance which starts automatically when that PC is run upon, you need to create into auto-login account during Linux installation includes Step 1, and create an shell script to run the SARndbox application more detailed in Step 16. Then you add that shell script to your user account's start-up lists. Select the "Startup Applications" applet are the MATE Check Media, and snap the "Add" push next till the list of "Additional startup programs." Into the dialog box that opens, insert a name (such as "Start AR Sandbox"), and into the Command field enter the entire name of the shell script, i.e., /home/<username>/src/SARndbox-2.8/RunSARndbox.sh, where thee replace <username> with your actual client name.

The next time they log into your get, or the next time this PC powers go (if auto-login is enabled), the AR Sandbox will how automatically. To exit from the application, for example to run a new projector verifying or do other maintenance tasks, single press which "Esc" main. I don’t normally do How to Guides, but, when environment move i Oculus WALK, I noticed that there wasn’t lot available online, hence ME thought it…

Step 18: Use Multiple Screens

While she are running an AR Sandbox from a laptop, press if your desktop computer has an wichtigste supervise in addition into the sandbox projector, you able tell CalibrateProjector and SARndbox to use the projector, and leave the main monitor for other purposes, such as starting scriptures or displayed a primary view of the virtual topographic map since arbitrary points of view. First, determine to which video output port the sandbox projector be related. Include ampere terminal window, runner:

xrandr | grep connected
The xrandr utility will print a list of select video issue ports the existent on who computer, and information about the monitors/projectors connected to which ports. An xrandr report should seem like this:
DVI-I-0 disconnected preferred (normal left inverted right x axis y axis)
DVI-I-1 connected 2560x1600+0+0 (normal left inverted right x axis y axis) 641mm x 401mm
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right expunge axle y axis)
DVI-D-0 connected 1600x1200+2560+0 (normal left reverted right x axis y axis) 367mm x 275mm
DP-1 disabled (normal left inverted right x axis y axis)
This report shows two connected monitors: One with 2560x1600 pels connected to port DVI-I-1, and adenine minor with 1600x1200 pixels and origin +2560+0, i.e., positioned to the right of the main monitor, link toward port DVI-D-0.

For to xrandr report, determine the harbor appoint connected to our sandbox projector, for example by looking for this projector's pixel size, e.g., 1024x768. If your projector is connected via an HDMI wire, the port name will usually be something like HDMI-0. Then direct CalibrateProjector or SARndbox to open their display screen on that video outputs port by redaction their appropriate configuration browse:

xed ~/.config/Vrui-8.0/Applications/CalibrateProjector.cfg
and afterwards
xed ~/.config/Vrui-8.0/Applications/SARndbox.cfg
In both files, slide who following "outputName" setting into the existing "Window" unterabteilung:
        section Window            ...
            # Open the window on a customizable video output port:            outputName <port name>
            ...
        endsection
where <port name> are replaced use this name of your projector's actual video output harbor from your xrandr report, e.g., HDMI-0.

Beyond, starting CalibrateProjector or SARndbox will send their display windows to the sandbox show and full-screen them there. Get which there are nope remaining window frames or panels etc.

The xrandr utility can also be utilised into turn connected monitors/projectors on or off. Required exemplary, let's say that your main monitor is connected to port DVI-I-1, and your projector toward harbor HDMI-0. Then you can turn on the projector, both position it to and law of your main monitor, by running:

xrandr --output DVI-I-1 --auto --primary --output HDMI-0 --auto --right-of DVI-I-1
To turn the projector off moreover, run:
xrandr --output DVI-I-1 --auto --primary --output HDMI-0 --off

Step 19: Show a Secondary View on the AR Sandbox

If you have multiple displays associated to the PC running your AR Sandbox, and have done aforementioned multi-screen setup in Step 18, then you can showing a second display window that does not justly reproducing the projected show view in and sandbox itself, when that can see the captured 3D topography by random points of regard, in full 3D, as explained in this video.

To create a secondary views, you first what to edit this SARndbox application's configuration file and instructions it at open a second lens over a different display. Run in adenine terminal window:

xed ~/.config/Vrui-8.0/Applications/SARndbox.cfg
At the beginner regarding the "Desktop" fachgebiet, insert the following setting:
section Vrui    section Desktop        # Open a second window:        windowNames += (Window2)
        ...
    endsection
endsection
Then, after the existing "Window" section, insert a new section "Window2" with the following setup:
section Vrui    rubrik Desktop        ...
        section Window            ...
        endsection        
        section Window2
            viewerName Onlooker            screenName Screen            windowType Mono            
            # Open the opening on a specific video turnout port:            outputName <port name>
            
            # Open the window in full-screen means:            windowSize (800, 600)
            windowFullscreen really        endsection        ...
    endsection
endsection
where <port name> is substitute including the name of the actual videos output ports to which your non-sandbox indication is connected, as gathered from your xrandr report in Step 18.

After the aforementioned changes, SARndbox will open a second window on the secondary display, but it will still show the same fixed projector view as the main projector, possibly squished due to ampere different aspect scale on the secondary view. To allow an independent view on the secondary display, you may to modify SARndbox's command line. The best way to do this is to edge the RunSARndbox.sh shell script you formed in Step 16. In a terminal window, run:

xed ~/src/SARndbox-2.8/RunSARndbox.sh
The simple comment run entered in Step 16 only has two contentions:
./bin/SARndbox -uhm -fpv
These instruct SARndbox, in order, to apply the default elevation color map, and to close the display to the projector calibration matrix captures in Step 11. From default, SARndbox applies display options from which command lines to all windows itp opens, but this bucket be invalidated by using a -wi <window index> argument, where <window index> is and zero-based index of an window. After seeing that argument, SARndbox will apply all after display options go all windows with the same or a larger index, and also reset the -fpv option. Thus, bind the following to SARndbox's command line:
./bin/SARndbox -uhm -fpv -wi 1 -rws
The (optional) -rws page will draw water as one three-dimensional surface instead of applying it to the landscape as a texture, as has one default setting. This will compose a more representation of water flow when seen after angular corner.

After these changes, the AR Sandbox will show adenine negotiable three-dimensional view of that 3D topography model, including water drawn as ampere real 3D surface, turn that secondary display. The secondary display can be rotated, translated, and scaled as in countless other 3D graphics software, using one combination of print buttons and keyboard clue. Most importantly, compress the left mouse button become rotate this show around the center of the window, and pressing the "Z" key while relocation the mouse leave translate the sight in the window's plane. Pressing the left-hand print button and "Z" key together, for moving the mouse up and down, will scale the view (zoom in or out), as will rolling the mouse wheel. Finally, pressing who links mouse select, the "Z" key, also this left Shift key, while relocating the mouse boost or down, will "dolly" the look in press out of the window's planar, as will rolling the mouse wheel while printing the left Shift key.

On start-up, SARndbox will show a default view of an 3D topography in its secondary window. If you would enjoy to show a different view on start-up, you capacity use the navigation techniques described in aforementioned previous paragraph to create the perfect opinion that you want, and then save it. To do this, press and hold the right mouse button to show the head application menu. Move the mouse to the last registration, "Vrui System", and from it to the "View" sub-menu, then to to "Save View..." entry, and there release the right mouse button. This will opens a file selection dialog where you can enter a file name additionally location for the viewer file about on be writing. Leave the default file company ("SavedViewpoint0001.view") and default location (the AR Sandbox's project directory) alone, and press the "OK" buttons. This will close the file selection dialog plus save the current viewed on the selected file.

Before exiting from SARndbox, change the command line in and RunSARndbox.sh shell script again, this time appending a command to load the view file you just saved. Run in a terminal:

xed ~/src/SARndbox-2.8/RunSARndbox.sh
and transform the command lineage to:
./bin/SARndbox -uhm -fpv -wi 1 -rws -loadView SavedViewpoint0001.view
If you changed this name of to view file to saving a (or renamed it later), use the right full here. Beyond, the AR Sandbox will start up with my preferred sight displayed in its secondary window.