Examples that are included in the krpano Download
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
(which 'cuts-out' a certain region of the image) by xml action codes.
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.
Play a sound as background music.
In this example the soundinterface
plugin will be used
to extend krpano with support for sounds. That plugin needs to get loaded once and then there are actions
available for playing sound.
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.
This is an example to demonstrate the possibilities of the new WebGL-based blending modes in version 1.19.
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
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.
Define a custom right-click / long-press-touch context-menu.
This exampels shows to define a custom context-menu items - in this case here 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 the context menu item
(but this works only in the HTML5 viewer).
Demotour: Corfu Holiday Trip
This is a tour made fully automatically with the MAKE VTOUR (MULTIRES) droplet (but to save download space
in the package, the multires images were removed and replaced by the smaller single-res images).
The input images in this example were geo-tagged - and with that the map and the map-spots were automatically enabled and added.
This is a mainly custom made tour. The images itself were build by using the MAKE VTOUR droplet, but
the skin and the hotspots are custom made xml code.
Demotour: Stereoscopic vs. Monoscopic panos in VR
This is a comparison between stereoscopic and monoscopic panoramic images.
When viewed with a VR headset there should be a 'sense of depth' in the stereoscopic images,
while the monoscopic images just look 'flat'.
Stereoscopic images are great added value to panoramic images for VR usage.
Note - the stereo images in this example are not optimal, they where shoot only with an lens-distance of ~35mm
(due lack of appropriate equipment), better would be something around 63mm, so everything looks a bit larger than it is.
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
This example shows how to drag <layer> elements and the difference between
(clip children elements) and maskchildren=false (no clipping).
This is an example about the hotspot flying
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.
This is a simple example for how to include the
plugin and set a spot on it.
In Flash there is no Google Maps API available anymore - there the
plugin will be used instead.
Note - the Bing Maps API requires an API key
This example shows how to include and to use the
This allows controlling the pano view by gyroscope of the device.
Note - the gyroscope works only on mobile and tablet devices.
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
Tutorials for making such distorted hotspots:
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.
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).
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.
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.
All examples are also included in the krpano Download