AR and VR
MMGIS offers several immersive ways to better view and understand data through use of virtual and augmented reality.
Photosphere
The Viewer’s photosphere supports device orientation controls to navigate around its wrapped imagery.
Requires
- A smartphone with an accelerometer
- A modern mobile browser (developed on Chrome)
Caveat: Some browsers on IPhone at the time of development failed to render high resolution photospheres.
Usage
Select a point with mosaic imagery (such as a Waypoint from the MSL mission). Open the Viewer by clicking the left thumb-tab. The bottom-left corner contains a fairly transparent icon of a rotating smartphone; click it to enable device orientation controls. You can now move you phone around to view the photosphere imagery!
Development
Uses three.js’ Device Orientation Controls
Headset VR
Both the Viewer and Globe have basic support for headset VR. Controls are not supported. The support for Headset VR doesn’t get much farther than simply looking around.
Requires
Note: VR is a quickly moving technology and processes become outdated rather quickly. Check online first to see how to set up GearVR or Oculus for WebVR.
- A GearVR headset
- A supported GearVR smartphone
- Samsung internet GearVR browser
OR
- An Oculus Rift headset
- An Oculus Sensor
- A USB gamepad such as an XBox controller
- The Oculus Desktop App
- Steam with SteamVR
- Oculus’ default Firefox browser
Usage
Within a VR browser select a point with mosaic imagery (such as a Waypoint from the MSL mission). Open the Viewer by clicking the left thumb-tab or open the Globe by clicking the right thumb-tab. The bottom-right corner contains a fairly transparent icon of a headset; click it to enter VR and click it again if you wish to exit. You can now look around in VR!
Development
Uses three.js’ vr configurations paired with the headset’s utilization of WebVR.
Globe AR
The Globe has the ability to render terrain such that looking through the phone shows it placed in the user’s real world surroundings. Users can then replace, rotate, scale, pan and zoom the terrain. This technology is still experimental but we’re confident it’ll become standardized within the coming year or so.
Requires
- A smartphone with ARCore installed and a mobile browser that recognizes and uses it
- This may not be possible. Current technology (Sept 2018) is only barely starting to support this out-of-the-box.
OR
- Follow this ReadMe’s installation for Android
- The Globe AR was developed using this experimental browser on a Samsung S8 smartphone
Usage
Open your AR supported browser and navigate to https://miplmmgis.nasa.gov/mmgis/MMGIS. Choose a mission and open the globe panel. In the globe panel there’s a semi-transparent icon of an eye. Click it to enable AR. Note: You may need to allow the page to access you camera first. Point the camera around the room so it can identify surfaces.
Buttons (clockwise and starting from the bottom left corner):
- Placement mode: This rounded square should begin filled in. When it’s filled in, a magenta square will try to land on the nearest found surface. Clicking anywhere in the middle of the screen will reposition the terrain to that location. Click this button to toggle this mode off for now; you can always retoggle it to place again.
- Height slider: The slider just above simply lets you move the terrain up or down for greater placement control.
- Scale: This upper-left plus and minus lets you scale the terrain up and down. Press and hold to change scales more quickly. Scalings don’t update until these buttons are released.
- Zoom: This upper-right plus and minus change the zoom level. This effectively changes the resolution of the terrain.
- Exit AR: Finally the eye icon in the lower left exits out of the AR mode.
Joysticks: While outside of placement mode (this bottom-left square unfilled) each side of the screen corresponds to a joystick. Rotate: Hold down the left side of the screen and drag your finger around to rotate the terrain. Pan: Hold down the right side of the screen and drag you finger around to pan.
Development
Developed on a Samsung S8 Android smartphone and with a Windows 7 computer.
- The site must be served across
HTTPS
. - Enable developer access through the phone’s settings.
-
Download the experimental AR browser and ARCore from the WebARonARCore repository.
- Allow the computer to read data off the phone if prompted.
- For your computer to properly recognize the phone, install Minimal ADB and Fastboot.
-
With the phone plugged in to your computer, navigate to its install directory and run
adb devices
. - With the phone still plugged in, open the experimental
WebARonARCore
browser on the phone. - Open Chrome and open the developer console.
- Click the three vertical dots menu and choose “More tools” and click “Remote devices”
- Wait for Chrome to identify any devices. Note: If there many devices, you may need to
ctrl -
to zoom out and find the phone as there isn’t a scrollbar. - Click on the device corresponding to the phone and then click “Inspect”
You should now see the emulation of the phone as well as its console outputs.