You are not logged in.

virtual pete

Intermediate

  • "virtual pete" started this thread

Posts: 245

Location: Nerja

Occupation: Holiday rentals Nerja Costa del Sol

  • Send private message

1

Wednesday, March 5th 2014, 8:26pm

nadir logo

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?

virtual pete

Intermediate

  • "virtual pete" started this thread

Posts: 245

Location: Nerja

Occupation: Holiday rentals Nerja Costa del Sol

  • Send private message

2

Thursday, March 6th 2014, 12:30am

Nadir logo not rotating

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.

You can see it here


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.

Umalo

Professional

Posts: 1,051

Location: Osijek, Croatia, EU

  • Send private message

3

Thursday, March 6th 2014, 10:40am

Try with:

Quoted

<events name="nadirlogorotation" onviewchange="if(hotspot[nadirlogo].rotatewithview,copy(hotspot[nadirlogo].rotate,view.hlookat););"/>

virtual pete

Intermediate

  • "virtual pete" started this thread

Posts: 245

Location: Nerja

Occupation: Holiday rentals Nerja Costa del Sol

  • Send private message

4

Thursday, March 6th 2014, 11:43am

Hi Umalo. is the only change you suggested the copy(hotspot[nadirlogo]
instead of
set(hotspot[nadirlogo]?

virtual pete

Intermediate

  • "virtual pete" started this thread

Posts: 245

Location: Nerja

Occupation: Holiday rentals Nerja Costa del Sol

  • Send private message

5

Thursday, March 6th 2014, 12:07pm

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 :(

6

Friday, March 7th 2014, 2:18pm

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

virtual pete

Intermediate

  • "virtual pete" started this thread

Posts: 245

Location: Nerja

Occupation: Holiday rentals Nerja Costa del Sol

  • Send private message

7

Monday, March 10th 2014, 12:55pm

Thanks Klaus, I tried it but the logo disapears?

8

Monday, March 10th 2014, 1:07pm

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.

virtual pete

Intermediate

  • "virtual pete" started this thread

Posts: 245

Location: Nerja

Occupation: Holiday rentals Nerja Costa del Sol

  • Send private message

9

Tuesday, March 11th 2014, 12:09am

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.

10

Tuesday, March 11th 2014, 12:47am

The keep="true" is missing at the nadirlogo hotpot.

virtual pete

Intermediate

  • "virtual pete" started this thread

Posts: 245

Location: Nerja

Occupation: Holiday rentals Nerja Costa del Sol

  • Send private message

11

Tuesday, March 11th 2014, 9:38am

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)) );"
/>

12

Tuesday, March 11th 2014, 4:41pm

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

virtual pete

Intermediate

  • "virtual pete" started this thread

Posts: 245

Location: Nerja

Occupation: Holiday rentals Nerja Costa del Sol

  • Send private message

13

Wednesday, March 12th 2014, 10:13am

Thats done it :) Thank you very much Klaus for yout time.

Similar threads