Hi,
you could include the cube faces of the pano as separated distorted hotspots and then rotate the upper image (which must be larger of course, e.g. by scaling) like the nadir hotspot in the "nadir-logo" example,
e.g.
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<krpano>
<style name="cubeface" enabled="false" distorted="true" width="1000" height="1000" />
<!-- the cubefaces as hotspots -->
<hotspot name="cubeL" style="cubeface" url="pano_l.jpg" ath="-90" atv="0" zorder="2" />
<hotspot name="cubeF" style="cubeface" url="pano_f.jpg" ath="+90" atv="0" zorder="2" />
<hotspot name="cubeR" style="cubeface" url="pano_r.jpg" ath="+180" atv="0" zorder="2" />
<hotspot name="cubeB" style="cubeface" url="pano_f.jpg" ath="+270" atv="0" zorder="2" />
<hotspot name="cubeD" style="cubeface" url="pano_d.jpg" ath="0" atv="+90" zorder="2" />
<!-- the upper image - with scale="1.5" adn zorder="1": />
<hotspot name="cubeU" style="cubeface" url="pano_u.jpg" ath="0" atv="-90" scale="1.5" zorder="1" />
<!-- onviewchange event to rotate the upper image: -->
<events onviewchange="set(hotspot[cubeU].rotate, get(view.hlookat) );" />
</krpano>
|