Hi, I am using the example <hotspot name="nadirlogo"
I have approx 12 panos. Is it possible to have it so that the logo appears on each pano by default rather than adding the script to each image?
Hi, I am using the example <hotspot name="nadirlogo"
I have approx 12 panos. Is it possible to have it so that the logo appears on each pano by default rather than adding the script to each image?
Hi, I have worked out how to have the nadir logo on all panos with the: keep="true" added. Now the only issue I have is that the logo does not rotate.
and the xml code:
http://www.nerjavirtualtours.com/vt/tsr0226/tour.xml
I cannot see what I have done wrong. Maybe the code conflicts with the auto rotate or something??
Any advice appreciated.
Try with:
Quote<events name="nadirlogorotation" onviewchange="if(hotspot[nadirlogo].rotatewithview,copy(hotspot[nadirlogo].rotate,view.hlookat););"/>
Hi Umalo. is the only change you suggested the copy(hotspot[nadirlogo]
instead of
set(hotspot[nadirlogo]?
Hi Umalo. I have discovered that is I change
distorted="false" instead of "true" it rotates as expected but the shame is that if zoomed in the scale gets distorted and reveals the tripod head :(
Hi,
set - distorted="true" - again and add a - keep="true" - to the event here:
<events name="nadirlogorotation" keep="true" onviewchange="..." />
Without that keep=true the event will be removed when loading the first scene and the hotspot will be not updated/rotated.
Best regards,
Klaus
Thanks Klaus, I tried it but the logo disapears?
Please update your online example - then it would be possible to analyze it and to tell you what is wrong there.
Basically just by changing the distorted setting and adding the events keep=true, it would be not possible that the hotspot would disappear.
Hi Klaus, I have updates the online version with
<hotspot name="nadirlogo"
url="HNroundlogo.png"
ath="-90"
atv="90"
distorted="true"
scale="0.85"
rotate="0.0"
rotatewithview="true"
onclick="switch(rotatewithview); invalidatescreen();"
/>
<!-- events - update logo rotation with pano rotation -->
<events name="nadirlogorotation" keep="true"
onviewchange="if(hotspot[nadirlogo].rotatewithview, copy(hotspot[nadirlogo].rotate,get(view.hlookat)) );"
/>
The logo no longer appears on each pano.
Thanks for checking it out.
The keep="true" is missing at the nadirlogo hotpot.
Thanks Klaus, I have added it as suggested but now the image does not rotate - I have updated it online so you can see.
<hotspot name="nadirlogo" keep="true"
url="HNroundlogo.png"
ath="-90"
atv="90"
distorted="true"
scale="0.85"
rotate="0.0"
rotatewithview="true"
onclick="switch(rotatewithview); invalidatescreen();"
/>
<!-- events - update logo rotation with pano rotation -->
<events name="nadirlogorotation" keep="true"
onviewchange="if(hotspot[nadirlogo].rotatewithview, copy(hotspot[nadirlogo].rotate,get(view.hlookat)) );"
/>
Hi,
the code is slightly wrong:
Either directly copy the rotation value - or set/get it - but a mix of both can't work.
Wrong:
copy(hotspot[nadirlogo].rotate,get(view.hlookat))
Correct:
copy(hotspot[nadirlogo].rotate,view.hlookat)
or:
set(hotspot[nadirlogo].rotate,get(view.hlookat))
Best regards,
Klaus
Thats done it :) Thank you very much Klaus for yout time.
Don’t have an account yet? Register yourself now and be a part of our community!