HTML5 Output (Pano2VR)
The HTML5 output format allows you to create VR panoramas for use with mobile devices, like the iPhone, which do not support Adobe Flash. This page will explain the steps needed in order to output and display your HTML5 panorama.
Download the project files used in this tutorial.
- Import your image.
- Adjust viewing parameters and add user data, hotspots, and sounds if you wish.
- In the output section, choose HTML5 from the output format list.
- In the Tile Settings, choose a cube face size.
TIP: This size should be larger than the largest cube face size specified in the Mobile Tab. When building multiple versions, this cube face size becomes the default for any screen resolution above the largest targeted screen resolution in the Mobile tab. (See step 11.)
- Next, for Image Names, you can either choose a folder to which all the cube faces will be stored by clicking Open..., or you can leave it at the default, images/$n_o.jpg, and Pano2VR will create a folder named, images, in the same location as the image.
TIP: The placeholder, $n, will take on the name of the image.
- Choose a naming convention for Face Names. The convention will be appended to the file name:
- Set a window size and a FoV mode.NOTE: The window size can always be changed within the HTML template.
- Enable Auto Rotation (select) or not.
- If you like, add a skin to the project by selecting one from the list, or by clicking Edit and building your own.
TIP: The skin, simplex.ggsk, which is pre-installed, uses scalable vector graphics.
- For Image Output Path, choose a folder that will hold the skin images, by clicking, Open…. Or create new one by simply typing the folder name in the text field. The folder where be saved in same directory as the input image. If left at the default, images, the skin images will be saved to the same folder as the cubefaces (see, step 5).
- Go to the Mobile Tab and click Add to enter different cube face sizes for different screen resolutions. If you are following our example, we start with two sizes.
NOTE: This is where you can specify which version of your image should be used based on a device's screen resolution. If the cube face size is too large for a device, it can cause the browser to crash because the image is using too much memory. Which cube face size to use is basically trial and error plus personal preference.
- Enter the pixel width of the maximum screen size. You can start with 1024px. This will cover the resolution of the first and second generation iPad plus the iPhone4 and the later generation iPod Touch screens.
- Enter the cube face size for this particular resolution. You can try a 960px tile size.For the second cube face size setting, enter 500px for the max screen size and 400px for the cube face size (this will include the iPhone 3G and older iPod Touches.)
- Choose a compression setting (Image Quality).
TIP: If you use a small tile size, you may want to increase the quality. In our example we start with a setting of 80 for the 1024px screen size and 90 for the small screen size.
- Image names functions the same Image names in the Settings Tab (see step 5). You can create a new location by renaming the folder, images, or use the default folder, images. The same goes for the file names - you can leave them as they are, or edit it to your liking. NOTE: $n will take the image name, while, $x, will take on the size of the cube face. (e.g. ring_o_800_0.jpg, where 800 is the tile size)
- Go to the HTML tab to export an HTML template. If it's not already enabled, select, Enable HTML file. Here you can do a number of things:
- Select Fullscreen to ensure the panorama fills the browse screen when in Fullscreen mode. TIP: Double-tap on the panorama to go to Fullscreen.
- Add the Flash version (SWF) to Flash panorama (fallback) to ensure that your panorama plays in all browsers. If the browser does not support HTML5, the Pano2VR player will fallback to the Flash version. If the browser does not support either of these, an error message will pop up.
- Select Prefer Flash if available if you want the Flash version to be preferred over the HTML5 version in a browser that is capable of playing both back.
NOTE: When building a tour that includes both Flash and HTML5, have the hotspots point to the Flash versions to make sure that the tour is playable in all browsers.
- Hit OK to output the panorama.