• 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 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

  • 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.

  • 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

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!