Sie sind nicht angemeldet.

1

Dienstag, 13. Oktober 2020, 00:18

Hotspots from scene to scene

Apologies if this was answered elsewhere, I couldn't seem to find it.

Is there a way to have hotspots that EITHER:
a) stay "in place" from scene to scene, meaning we set one hotspot with X,Y,Z coordinates, and when you're in another scene, they stay in the same spot (world)? I've tried changing the torigin to "world", but that doesn't seem to do anything.
b) only have hotspots within a scene, so that they're not visible unless I'm in that scene? linkedscene doesn't seem to do it, so I think I'm barking up the wrong tree.

Thank you!

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

2

Dienstag, 13. Oktober 2020, 11:00

Hi,

Put the hotspot outside the scenes and give it keep="true"

Tuur *thumbsup*

3

Mittwoch, 14. Oktober 2020, 18:24

I've tried this--and it doesn't seem to make a difference:

Quellcode

1
2
3
4
5
6
<style name="spotstyle" keep="true" height="25" width="25" url="images/plus.svg" rx="0.000" ry="0.000" rz="0.000"  ox="0.000" oy="0.000" oz="0.000" onclick.addevent="openWindow" distorted="true" edge="center" zoom="false" torigin="world" ath="0" atv="0" linkedscene="scene0" />

<action name="openWindow" type="Javascript">    window.open('https://example.com')  </action>
<hotspot name="spot2" style="spotstyle" tx="330.0" ty="600.0" tz="0.0" />
<hotspot name="spot3" style="spotstyle" tx="-25.0" ty="900.0" tz="-50.0" />
<hotspot name="spot4" style="spotstyle" tx="-25.0" ty="700.0" tz="-50.0" />

4

Mittwoch, 14. Oktober 2020, 18:27

<hotspot name="spot2" style="spotstyle" tx="330.0" ty="600.0" tz="0.0" keep="true" />

5

Mittwoch, 14. Oktober 2020, 18:33

Thank you, though this didn't make a difference--I moved the keep="true" from the <style> tag to the <hotspot> tag, and it doesn't change the behavior.

6

Mittwoch, 14. Oktober 2020, 18:45

Here's a video to illustrate the problem:
https://vimeo.com/468220043

7

Mittwoch, 14. Oktober 2020, 18:58

ah... i think some things got mixed up here...

there are no "world" coordinates over multiple scenes, so this is not possible.
it is always the same sphere, just holding a different image.

for per scene hotspots you need to add them inside your scenes, without the keep=true (or with keep=false)
then they will be loaded for that scene, only

<scene ...>
<hotspot ... keep="false" />
</scene>

if you want the same hotspot visible in a different scene,
you must add it there again (with adapted coordinates)

8

Mittwoch, 14. Oktober 2020, 19:25

That did it! Thank you very much!