Sie sind nicht angemeldet.

virtual pete

Fortgeschrittener

  • »virtual pete« ist der Autor dieses Themas

Beiträge: 245

Wohnort: Nerja

Beruf: Holiday rentals Nerja Costa del Sol

  • Nachricht senden

1

Mittwoch, 5. März 2014, 20:26

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

Fortgeschrittener

  • »virtual pete« ist der Autor dieses Themas

Beiträge: 245

Wohnort: Nerja

Beruf: Holiday rentals Nerja Costa del Sol

  • Nachricht senden

2

Donnerstag, 6. März 2014, 00:30

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.

3

Donnerstag, 6. März 2014, 10:40

Try with:

Zitat

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

virtual pete

Fortgeschrittener

  • »virtual pete« ist der Autor dieses Themas

Beiträge: 245

Wohnort: Nerja

Beruf: Holiday rentals Nerja Costa del Sol

  • Nachricht senden

4

Donnerstag, 6. März 2014, 11:43

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

virtual pete

Fortgeschrittener

  • »virtual pete« ist der Autor dieses Themas

Beiträge: 245

Wohnort: Nerja

Beruf: Holiday rentals Nerja Costa del Sol

  • Nachricht senden

5

Donnerstag, 6. März 2014, 12:07

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

Freitag, 7. März 2014, 14:18

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

Fortgeschrittener

  • »virtual pete« ist der Autor dieses Themas

Beiträge: 245

Wohnort: Nerja

Beruf: Holiday rentals Nerja Costa del Sol

  • Nachricht senden

7

Montag, 10. März 2014, 12:55

Thanks Klaus, I tried it but the logo disapears?

8

Montag, 10. März 2014, 13:07

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

Fortgeschrittener

  • »virtual pete« ist der Autor dieses Themas

Beiträge: 245

Wohnort: Nerja

Beruf: Holiday rentals Nerja Costa del Sol

  • Nachricht senden

9

Dienstag, 11. März 2014, 00:09

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

Dienstag, 11. März 2014, 00:47

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

virtual pete

Fortgeschrittener

  • »virtual pete« ist der Autor dieses Themas

Beiträge: 245

Wohnort: Nerja

Beruf: Holiday rentals Nerja Costa del Sol

  • Nachricht senden

11

Dienstag, 11. März 2014, 09:38

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

Dienstag, 11. März 2014, 16:41

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

Fortgeschrittener

  • »virtual pete« ist der Autor dieses Themas

Beiträge: 245

Wohnort: Nerja

Beruf: Holiday rentals Nerja Costa del Sol

  • Nachricht senden

13

Mittwoch, 12. März 2014, 10:13

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

Ähnliche Themen