You are not logged in.

1

Monday, November 24th 2014, 4:58am

Nadir disappears before the scene when clicking thumbnails

Hi,

The nadir logo on this tour disappears before the rest of the scene (thus revealing the tripod!) when I click the thumbnails:

http://nm4s.com/tm-tour/

This is using the latest version of krpano.

On the last tour I worked on, http://pgs-archive.co.uk/tour_v2/tour.html , the logo fades at the same time as the actual scene itself. This was built using version 1.0.8.15

As you can see, it's some time since I worked with krpano so may have missed something - there have been a fair number of changes!

The code I'm using is based on the one examples that come with the latest version and is placed directly in the main xml file. The same happens when placed in the vtourskin.xml (with corrected logo url) instead.

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<events name="nadirlogorotation"
onviewchange="if(hotspot[nadirlogo].rotatewithview, set(hotspot[nadirlogo].rotate,get(view.hlookat)) );"
/>

	<hotspot name="nadirlogo" keep="true"
url="logo.png"
ath="0"
atv="90"
distorted="true"
scale="1.2"
rotate="0.0"
rotatewithview="false"
onclick="switch(rotatewithview); invalidatescreen();"
enabled="false"
/> 


The code I used in the previous tour that works is simply:

Source code

1
2
3
4
5
6
7
8
9
<hotspot name="nadirlogo" keep="true"
url="logo.png"
ath="0"
atv="90"
distorted="true"
scale="1"
rotate="0.0"
enabled="false"
/>


and is placed in vtourskin.xml.

If I replace the new code with the old, the logo still disappears before the scene.

What have I overlooked?

Thanks.

2

Tuesday, November 25th 2014, 2:08am

I've done further testing and found that this now only applies to HTML5 versions of the tour. And it did actually happen with the older version as well.

For reference, this has been tried on Safari (Mac) and iPad - which is how I discovered it was an HMTL5 things rather than Flash.

So, my question now is, how can we get the nadir to fade away at the same time as the rest of the scene rather than before it?

Apologies for the laxity of my own testing!

Thanks,

3

Tuesday, November 25th 2014, 4:36pm

Hi,

right, this is a current limitation of the HTML5 version - hotspots can't be blended.
This will be changed/improved in future krpano version.

Best regards,
Klaus

4

Sunday, December 7th 2014, 10:17pm

Ah - I hadn't realised that. Thanks for the info.