Sie sind nicht angemeldet.

1

Samstag, 10. Juli 2010, 18:44

Up image don't rotate

Please see in example what i mean

http://www.3dpanorame.com/3dpanorame/tox/krpano.html

I would like to make top image (stars) that don'r rotate with panorama to get effect that panorama is in the box in space.

Could it be possible. I know that i must create circular stars image bigger than box but how to make it behind panorama.....

tnx for respond

2

Dienstag, 13. Juli 2010, 14:21

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>