Skip to main content

Panoramas for a Head Mounted Display

A Head Mounted Display (HMD) is a device that is worn on the head (and over the eyes) by the user to view (in our case) full spherical panoramas and videos. The images are displayed on two small displays that are viewed through lenses. Some HMDs use mobile devices as the display (i.e. Samsung Galaxy and iPhone). It’s a fun way to experience 360 images and video especially if they are in stereo.

This article will walk you through exporting both single and multi-node projects, plus stereoscopic panoramas.

Single Node Mono Panorama

For Cardboard:

  1. Load the panorama.

  2. Add the HTML5 output.

  3. Add one of the built-in skins: silhouette_cardboard.ggsk, cardboard.ggsk.

  4. Expand the HTML panel and select HTML File if not already selected.

  5. Choose cardboard.ggt from the Template list in the HTML panel.

  6. Generate the output.

For GearVR:

  1. Load the panorama.

  2. Open the Transformation output.

  3. Choose Horizontal Strip (VR) as the Type.

  4. Enter the size (height) of the strip. (1536px)

  5. Generate the output.

  6. Add the strip to the Oculus app to view in Gear VR.

Single Node Stereo Panorama

Pano2VR Pro only

  1. Load the left panorama.

  2. Load the right panorama.

  3. Add the HTML5 output.

  4. Expand the HTML panel and select HTML File if not already selected.

  5. Choose cardboard.ggt from the template list in the HTML panel.

  6. Click the Edit Template button and select Nodes are stereo pairs.

  7. Generate the output.

Multi-Node Mono Panoramas

Pano2VR Pro only

  1. Load the panoramas.

  2. Link the nodes together using point hotspots.

  3. Add the HTML5 output.

  4. Choose the cardboard.ggsk skin from the Skins list.

  5. Expand the HTML panel and select HTML File if not already selected.

  6. Choose cardboard.ggt from the Template list.

  7. Generate the output.

On output, you will see a small cross in the center of the screen when looking through the HMD. Move your head and point this cross at a hotspot to switch nodes.

img

Multi-Node Stereo Panoramas

Pano2VR Pro only

  1. Load your images and arrange them in the Tour Browser like so:

    Node 1, left image first then right image.

    Node 2, left image first then right image.

    Node 3, left image first then right image. And so on…

  2. Link the nodes together using point hotspots.

    You will need to link the left and right nodes separately. This is more easily done by turning on the Grid in the Viewer Settings.

    Link, node 1 left to to node 2 left. Link node 1 right to node 2 right.

    ✭ Tip: Shifting the right image’s point hotspot to the left by just over half the width of the point hotspot marker will bring the hotspot image more forward in the stereo output giving a more 3D effect. Caution: Overdoing the effect can make people feel ill.

  3. Add the HTML5 output.

  4. Choose the cardboard.ggsk skin from the Skins list.

  5. Expand the HTML panel and select HTML File if not already selected.

  6. Choose cardboard.ggt from the Template list.

  7. Click the Edit Template button and select, Nodes are stereo pairs.

  8. Generate the output.

Switch Between Normal and Cardboard View

To switch between normal and cardboard views within the same node, you will need to add two HTML5 outputs. One will have a normal skin and the other will have a VR skin. Both outputs will share the same output folder. You will also make use of Direct Node Access.

Go here and download the project, cardboard.zip to see it working.

  1. Add your image(s) and build your project.

  2. Add the node’s ID (node1, node2, etc.) to a User Data field, i.e. Source. This will be accessed by button that switches between normal and VR views.
    ✭ The node ID can be found in the context menu for the node in the Tour Browser. If you’re not seeing it, make sure Show internal node ID is selected in Pano2VR’s settings.

  3. Add an HTML5 output. This will be the normal view.

  4. Add a skin.

  5. Edit the skin and add a button for switching to VR view.

  6. Give it an action: Source = Mouse Click; Action = Go to URL; URL = vr.html#$(us); Target = _self.
    vr.html# is the page url and $(us) is the placeholder for the Source field in User Data.

  7. Save the skin.

  8. In the HTML5 output settings, in the HTML pane, make sure the HTML file is using the normal template and that the output file path is output/index.html. Check the template settings and make sure Direct node access is selected.

  9. Add a second HTML5 output.

  10. Add a cardboard skin for VR (You can use the one in the project linked above).

  11. Edit the skin and add a button to switch to normal view. Give it an action: Source = Mouse Click; Action = Go to URL; URL = index.html#$(us); Target = _self.

  12. In the HTML5 output settings, in the HTML pane, make sure the HTML file is using the cardboard template. Open the template settings and select, Direct node access.

  13. Change the output file path to output/vr.html (Right-click the path and choose, Edit.)

  14. Open the Advanced pane and change the skin filename to vr.js.

  15. Press the Alt or Option key while clicking the Generate Output button to output both HTML5 outputs.

  16. Upload the output folder to a server with the starting page being index.html.


See also

2018-11-20 14:48:15