News Examples Documentation Download Buy Forum Contact
NOTE: This page is from an older version, see the latest version here.

Examples Version 1.20.5

Animated Hotspots
xml: anihotspots.xml
Image-based animated hotspots.
This example shows how to use image-strips / sprite-sheets as animated hotspot images. The images will be animated by dynamically changing the crop setting (which 'cuts-out' a certain region of the image) by xml action scripting.
The do_crop_animation <action> in this example has no dependencies and can be easily reused in own examples. It supports vertical, horizontal and tiled image-strips and loops the images from left-top to right-bottom. As parameters the pixel-size of one frame and the favored frame-rate need to be set.
Background Sound
xml: backgroundsound.xml
Play a sound as background music.
In this example the soundinterface plugin will be used to extend krpano with support for sounds.
To automatically start and stop the background sound only for the current pano (e.g. when using several scenes) the playback will be controlled by pano-local events.
Additionally a small button is included to pause and resume the sound.
Blending Demo
xml: blending-demo.xml
WebGL-Blending-Modes Demo
This is an example to demonstrate the possibilities of the new WebGL-based blending modes. The different blending-modes are custom settings for the blend parameter of the loadpano() / loadscene() actions.
Beside of this the examples shows how to use custom xml structures (the <blendmodes> element is a custom one) and how to drag layers and to use the scrollarea plugin.
Control Mode Comparison
xml: example.xml
An example for showing the different basic control modes.
Further customization is possible by adjusting the <control> settings.
Combobox / Dropdown
xml: combobox-examples.xmlcombobox.xml
Combobox Plugin Demo
Several example usages of the new combobox.xml plugin. The examples show how to define the combobox elements statically and dynamically and how to customize the design.
Compass
xml: compass.xml
Compass - show the viewing direction.
This example rotates images accordingly to the current viewing direction. The compass elements are build-out of several layers and images - and one of these images will be rotated when the viewing changes.
Custom Contextmenu
xml: contextmenu.xml
Define a custom right-click / long-press-touch context-menu.
This exampels shows how to define a custom context-menu items - in this case with options to change the control mode and to change the viewing projection.
The example also shows how to include html content (like an image) inside a context menu item.
Custom Tile-URLs
xml: maps.xml
Custom Tile-URLs
A small tech-demo that shows how to use custom tile-image-urls by using the customParseTilePath API. As example public maps-tiles will be loaded here.
Cylinder-Grid-Hotspots
xml: cylinder-grid-hotspots.xml
This example shows how to generate and place textfield hotspots on a cylinder surface by using fixed pixel-sizes as offsets (calc_spherical_offset).
Demotour Apartment
xml: tour.xmlvtourskin.xmlwebvr.xml
Demotour: Empty Blue Apartment
This tour was first build using the MAKE VTOUR droplet and then modified manually.
For navigating between the rooms hidden polygonal hotspots are used.
All panos were aligned into the same direction during stitching so that the KEEPVIEW flag can be used to keep the same looking direction when moving through the panos.
Demotour Corfu
xml: tour.xmlvtourskin.xmlwebvr.xml
Demotour: Corfu Holiday Trip
A default tour automatically build using MAKE VTOUR (MULTIRES) droplet and then manually extended with a custom navigation-map build by a scrollarea and an image.
Demotour Winecellar
xml: tour.xml
Demotour: Winecellar
This is a fully manual built tour without a given skin. As navigation a small map with spots and radar cone,and animated hotspots are used.
Demotour Stereoscopic 3D
xml: tour.xmlstereooffset_helper.xml webvr.xml
Demotour: Stereoscopic 3D Panorama Images
This is a demonstration of several display possiblities for viewing stereoscopic 3D images:
  • Anaglyph - For viewing using Red/Cyan glasses.
  • 3D TV - A Half-Side-by-Side rendering for 3D-Smart-TVs.
  • Side-by-Side - Simple Side-by-Side rendering.
  • WebVR - For viewing using VR headsets.
  • Toggle L/R - Toggle constantly between the left/right images.
Demotour Indian Temple Stereoscopic 3D
xml: tour.xmlstereooffset_helper.xml
A virtual tour of the Indian Meenakshi-Sundareswara Temple with Stereoscopic 3D images.
Tour-navigation by polygonal hotspots.
The images are provided by Aboorvasamy Sureshbabu / view360.in.
Depthmap Demotour: Little Temple of Abu Simbel
xml: tour.xmldepthmap_navigation.xmltour_edithelper.xml
Depthmap-Tour of the 'Little Temple of Abu Simbel'
A full-featured demo tour using depthmaps. It demonstrates how to view a pano dynamically from new perspectives, e.g. to show wall friezes undistorted. Additionally the depthmaps allow nice 3D-transitions. The tour offers automatic- and manually-generated hotspots for navigation. The depthmaps were generated by the everpano 3D tool, the tour itself manually designed and coded. A little helper tool for finding 3D viewpoint and hotspot positions is also included.
Depthmap Demotour: Gravina Apartment
xml: main.xmlmain2.xmlproject3d.xml
Depthmap-Tour of the 'Gravina Apartment'
The whole tour was fully generated by the everpano 3D tool. For navigation in the tour the everpano Navigator plugin is used. That plugin allows easy navigating by automatically finding the pano next to the point where the used had clicked - and when there is no pano near, a nice 3D-zooming-animation indicates that.

Here for more depthmap-testing the same tour also with fully free 3D-movement and pano-navigation by automatic-generated hotspots: Gravina Apartment - Example 2
Depthmap-Images
xml: depthmap-images.xmldepthmap_navigation.xml
Example panos with Depthmap-Images
The depthmaps in these examples were created either by the camera itself, by rendering software together with the (also rendered) pano-image or using some stereo-to-depth software from stereo-panos.
Depthmap-Image Helper Tool
xml: depthmap_helpertool_example.xmldepthmap_helpertool.xmldepthmap_navigation.xml
Depthmap-Image Helper Tool
A small helper tool for finding the correct offset and scale settings for depthmap-images. The values for these settings depends how the depthmap-image was created and mapped.
Directional 3D Sound
xml: directional3dsound.xml
Directional 3D Sound
An example of using the Soundinterface Plugin for placing sounds at 3D locations. Look or move around to hear the sounds from different directions.
Dragable Hotspots
xml: dragable-hotspots.xml
Dragable Hotspots
This example shows a possibility for how to drag the hotspot position. Additional the position of the hotspot will be formatted as xml code and shown via the textfield plugin.
Dragable Layers
xml: dragable-layers.xml
Dragable Layers
This example shows how to drag <layer> elements and the difference between maskchildren=true (clip children elements) and maskchildren=false (no clipping).
Fisheye Image
xml: fisheye.xml
image: fisheye.jpg
Example for the direct usage of fisheye images (without stitching or dewarping).
The fisheye image parameters could be determined using PTGUI. See here for more. This could be used with video files or mjpeg live streams (e.g. for dome webcams) as well.
Flyout Hotspots
xml: flyout-hotspots.xml
Flyout Hotspots
This is an example about the hotspot flying setting. By tweening it from 0.0 to 1.0 a hotspot can move from it's normal position inside the pano to a fixed position on the screen.
The example manages the state of several hotspots. When one hotspot is flying out, the others will automatically fly back in.
Follow-Mouse
xml: example.xmlfollowmouse.xml
Follow-Mouse
An example for letting the view automatically slightly follow the users mouse-cursor. E.g. as indicator that this is an interactive image. As soon the user starts interacting the following will pause and automatically resume later.
Fov-Types
xml: fovtype.xmlcombobox.xml
Field-of-view type comparison and fixed screen-size aspects.
The view.fovtype setting defines how the view.fov field-of-view setting relates to the window-size. Here a comparison of the different settings and how they work on different screen-size aspects.
Google Maps
xml: googlemaps.xml
Google Maps
This is a simple example for how to include the googlemaps plugin and set a spot on it.
Gyroscope
xml: gyro.xml
Gyroscope
This example shows how to include and to use the gyro2 plugin. This allows controlling the pano view by gyroscope of the device.
Image Gallery
xml: imagegallery.xmlthumbbar.xml
A simple Image Gallery
An example for a thumbnail-gallery-bar xml-script with flying-out / zooming images.
Inline Video Players
xml: inline-video-players-example.xmlvideo-player.xmlyoutube-player.xml
Inline-Video-Players
This example shows two videoplayer xml scripts - one plays a normal videofile - and the other plays a Youtube video. During the video playback a darken background layer will cover the pano and the other user interface elements.
Interactive Area
xml: interactive-area.xml
Interactive-Area
In this example a distorted hotspot image that shows a different pano content will be used. That hotspot will be faded-in when hovering an invisible polygonal hotspot, which acts as 'hit-area' for the image hotspot.
Javascript: Add and Remove Panos
Add and remove panos via Javascript
An example for dynamically adding either Flash or HTML5 viewer elements and removing them from the webpage.
Javascript API Examples
Javascript API Examples
Several examples for using the Javascript API of the krpano viewer.
Javascript: Synchronize Two Viewers
html: syncscreen.html • xml: pano1.xmlpano2.xmlsync.xml
Synchronize two krpano viewers using the Javascript Interface.
Little Planet Intro
xml: tour.xmlvtourskin.xml
The Corfu tour starting with a Little Planet Intro
The 'Little Planet' view itself is basically only a Stereographic Projection plus looking down. In krpano a stereographic projection distortion can be enabled by setting the view.distortion setting to 1.0. And by animation (tweening) this setting and the viewing direction a nice Little Planet transition animation can be created.
The default vtourskin.xml skin already provides a predefined Little Planet Intro script. To enable it only change the littleplanetintro setting in the tour.xml to true.
Loading Progress
xml: loading-progress-example.xmlloadinganimation.xmlloadingbar.xmlloadingpercenttext.xml
Visualize the loading progress.
This example shows three possibility to visualize the pano image loading progress - as image-based loop animation (an image-strip with a crop animation), as loading bar (by changing the size of a layer element) and as percent text.
It would be possible just to include one of the example xml files to add that kind of loading progress animation to an own pano or tour.
Make-Screenshot API
xml: makescreenshot-api-example.xml
Make screenshots directly with krpano.
An example usage of the makeScreenshot() API.
Multires: Tokyo - 45 Gigapixel
xml: tokyo.xmlskin.xml
An extremely large pano as example for loading-performance and image-quality.
The source image is 300.000 x 150.000 Pixel large (=45 Gigapixel).
For display it was converted to 6 x 95.493 x 95.493 Pixel cube-faces (~55 Gigapixel).
Shot from the Roppongi Hills Mori Tower. Provided by Jeffrey Martin / 360cities.net.
Multires: 1.4 Petapixel
xml: petapixel.xml
A synthetic 1.4 Petapixel-pano for demonstrating the theoretical size-possibilities. One Petapixel is one million Gigapixel (or 1000 Terapixel).
The pano is a cubical pano with one cube-side-size of 16.777.216 x 16.777.216 pixel. That's equal to a spherical pano in the size of 52.707.178 x 26.353.589 pixel.
To make that test-case as realistic as possible the tile-images are loaded from a server (and there they are dynamically generated on request).
Here additionally also a Partial-Pano test-case (with adjustable hfov/vfov settings).
Multires: Paris Tour
xml: tour.xml
A Virtual Tour in Paris with very large Multiresolution images (~750 Megapixel per pano).
The images are provided by ecliptique.com.
Multires: Brooklyn Bridge - 6 Gigapixel
xml: brooklynbridge.xml
A high-resolution (6 Gigapixel) flat pano of the Brooklyn Bridge in New York.
The image is provided by Joergen Geerds / newyorkpanorama.com.
Multires: Eiffel Tower - 2 Gigapixel
xml: eiffeltower.xml
A high-resolution (2 Gigapixel) flat pano of the Eiffel Tower in Paris.
The image is provided by ecliptique.com.
Partial-Pano: Rome
xml: partialpano.xmlpartialpano_helpertool.xml
A multiresolution partial-spherical-pano (with field-of-view of ~156x47 degree) in Rome.
For testing the partial-pano feature a small helper-tool is included for changing the fov-coverage settings of the pano. This helper-tool can be used for finding the correct hfov/vfov/voffset settings for a partial-pano when they are unknown.
Partial-Pano: St. Peter's Basilica
xml: petersplatzkuppel.xml
A multiresolution partial-spherical-pano (with field-of-view of ~54x13 degree) from the roof of the St. Peter's Basilica in Rome. Linked with hotspots to other panos in the near.
Partial-Panos: Colosseum
xml: kolosseum_vorne.xmlkolosseum_seite.xmlhotspotstyles.xml
Two multiresolution partial spherical-panos (~156x75 and ~169x54 degree fov) of the Colosseum in Rome.
Here the example with the partialpano_helpertool.xml included for testing the partial-pano feature: Colosseum with Partialpano Helper Tool.
Partial-Pano: Trevi Fountain
xml: flat.xmlpartialpano.xml
A multiresolution flat-pano of the Trevi Fountain in Rome (~483 Megapixel).
The flat-pano-projection is a good way to show the full-image-content at once.
Here the same pano as partial-pano: Trevi Fountain Partial Pano (fov 95x66).
Different to the flat-pano-projection this allows an undistorted view at the edges when zoomed-in and additionally also showing more content because of the different cropping-range in spherical projection.
Nadir Logo
xml: nadir-logo.xml
An example for using an image as automatic rotating distorted hotspot to cover the nadir area of the pano (e.g. to hide a tripod).
Postprocessing Plugins Demo
xml: postprocessing_demo.xml
Postprocessing Plugins Demo
A demo of the these Postprocessing Plugins:
  • Light - High-quality exposure and light/shadow control.
  • Blur - High-performance image blurring.
  • Sharpen - An Unsharp-Mask filter for sharpening or local contrast enhancement.
Additionally this demo shows how to implement some controls using the krpano layer and actions system.
Postprocessing Demo: Popups with Background-Blur
xml: popup_blur.xml
Background-Blur and Popups Demo
A demo of how to blur the background using the Blur Postprocessing Plugin and how to open several different popups (HTML, Websites, Panos, Videos, Images).
Postprocessing Demo: Zoom-based Sharpening
xml: zoom_based_sharpening.xml
Zoom-based Sharpening
This examples shows how to calculate a range based on the original pano-image pixel resolution. Here that will be used to adjust the sharping-radius depending on the actual zoom-level, so the sharping-effect will be the same one as when sharpening the original image itself.
Slider Blending Cubes
xml: slider.xml
Blend between two panos using a slider.
The two panos were included as hotspots and the blending is done by adjusting their alpha-transparency settings.
The slider is build out of images and some xml script code.
Snow Plugin Demo
xml: snow.xmlcombobox.xml
A demo of the Snow Plugin with several different styles / settings.
Splitscreen
xml: splitscreen.xml
Splitscreen
Show two panos for comparison. Either side-by-side or split into half-half.
For this example the stereo-support of the krpano viewer is used.
For loading stereo images see here: image.stereo
and for rendering stereo images here: display.stereo
Text-Styles
xml: textstyles.xml
Textstyles
This example shows the usage of the showtext.xml plugin and several different text-styles. As test-targets polygonal hotspots were used.
Tooltips
xml: tooltips.xml
Tooltips for buttons and hotspots
An example 'tooltip' implementation - by assigning the 'tooltip' style and a 'tooltip' attribute to an layer or a hotspot, it will automatically show the given tooltip text when the element will be hovered.
Video-Hotspot
xml: videohotspot.xml
Video-Hotspot
A simple example for using the videoplayer plugin as distorted hotspot.
Video-Panorama
xml: videopano.xmlvideointerface.xmlwebvr.xml
Videopano - a fully featured panoramic-video player skin.
This is an example for a panoramic video player. It provides a simple xml interface for adding several video-quality files. For using / adding own videos they would be only added once in the videopano.xml file.
The user interfaces provides: play/pause controls, a seeking bar, volume/mute control, options for changing the quality, the playback rate and the viewing projection (including a special 'flat' view), fullscreen buttons, gyroscope control and VR support.
The layout and design can be easily adjusted with a few settings in the videointerface.xml.
WebVR Demo
xml: krpano_vr.xmlcontextmenu.xmlwebvr.xmltour.xml
WebVR - The first krpano VR support example.
This example is a small demo for the VR support. It includes an intro scene with and uses hotspots to link to other examples.
WebVR VR-Controllers
xml: vrcontrollertests.xmlwebvr.xmldepthmap_navigation.xml
WebVR - VR-Controllers
A demo of the VR-Controller support. It shows how to use them for doing special 'hit-testing' (checking where a hotspot would get hit when it got aimed by a VR-controller) and how to style and customize the VR controllers.
WebVR Drone Attack (Tech-Demo-Game)
xml: drone-attack.xmlpp_hit_effect.jswebvr.xml
WebVR - Drone Attack
A small and simple shooter game as tech-demo for several krpano features.