Using Live Picture's Java applet

This document gives some hints for using Live Picture's Java applet with SkyPaint to publish panoramas on the Web.

Step 1: Copy the Java code to your web site

First, you must install the Java applet on your web site. Download the applet from:
http://www.livepicture.com/download/clients/java_viewer3d.html
Then upload the files onto your web server.

Step 2: Setup the Java applet on your Web site

Live Picture thoroughly documents how to setup the Java applet; see their documentation at:
http://www.livepicture.com/help/developer/java_guide.html

Two important things that the Live Picture documentation does not mention:

Web browsers restrict Java applets from accessing any web sites besides the web site on which the Java applet resides. This means that you cannot use the Live Picture applet to display panoramas that are stored on other web sites.

The Live Picture documentation states that the applet supporte CUBE-type panoramas, but it does not.

Step 3: Save-As: Live Picture

Convert your panorama into a format that Live Picture can read. Save As "Live Picture SPHERE/CYLINDER".

For fastest downloads with a little bit of image quality loss, choose save panoramas that will be published on the Web in JPEG format. You should also store "master" copies of your panoramas in a loss-less format, such as "Live Picture CUBE, BMP".

If you want precise control over the compression of your panorama images, you can do the following:

Using a specialized JPEG compression program (like JPEG Optimizer) can result in higher-quality, lower-bandwidth panorama images.

Step 4: Upload .ivr and .jpg files

Upload the .ivr and .jpg files onto your web server. Put them in the same place as the HTML pages that will refer to them.

Step 5: Create a test web page

See the Live Picture documentation for information on creating a test web page, and for some example pages (use your web browser's "view source" to see the complete HTML code).

One thing that the Live Picture documentation does not make clear: it appears that the Live Picture Java applet has a bug that causes it to resolve relative URLs incorrectly. The problem occurs if you do the following:

Step 6: Link or embed the panorama into your web pages

The final step is to modify your existing web pages to either link to the page you created in step 4 or to add the appropriate HTML code to embed the Java applet directly into your existing web pages.

Troubleshooting

Getting the Java applet working is complicated, because it involves HTML, Java, and JavaScript, and because Netscape Navigator and Internet Explorer behave differently from each other (and sometimes behave differently on different platforms). Here are some troubleshooting tips:


| Forward to Publishing VRML97 | Up to the tutorial index | Back to Choosing a Format |


| SkyPaint | Purchase | Gallery | Demos | Tutorials | Support |
©2005 All rights reserved.      webmaster@skypaint.com