Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

HansNyb

Profi

  • »HansNyb« ist der Autor dieses Themas

Beiträge: 1 063

Wohnort: Denmark

Beruf: Photographer

  • Nachricht senden

1

Freitag, 24. April 2015, 08:07

loadscene in a different direction

The hotspot created by the toureditor look like this
<hotspot name="spot2" style="skin_hotspotstyle" ath="-179.980" atv="9.707"" linkedscene="scene_21-2" />

I want to change it so that the linked scene opens in another direction than the one set in view.
So I try this

<hotspot name="spot2" style="skin_hotspotstyle" ath="-179.980" atv="9.707" onclick="loadscene(scene_20);lookat(180, -20, 110.0);" />

But that does not work at all. No respons at all from the hotspot.

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

2

Freitag, 24. April 2015, 08:24

hi)

that's because style of the hotspot has onclick already and that overwrites onclick written inside the hotspot. Change onclick inside the style or remove onclick from the style and adjust each spot individually.
Regards,

Alexey

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

3

Freitag, 24. April 2015, 08:25

or did you removed it already and it doesn't work anyway?
Regards,

Alexey

HansNyb

Profi

  • »HansNyb« ist der Autor dieses Themas

Beiträge: 1 063

Wohnort: Denmark

Beruf: Photographer

  • Nachricht senden

4

Freitag, 24. April 2015, 08:31

Sorry I already solved it. I forgot the style has a command.
Weird that this does not give me an xml error.

HansNyb

Profi

  • »HansNyb« ist der Autor dieses Themas

Beiträge: 1 063

Wohnort: Denmark

Beruf: Photographer

  • Nachricht senden

5

Freitag, 24. April 2015, 08:33

However it would be nice to be able to use the toureditor for this and just ad a a command to it.

6

Sonntag, 17. Mai 2015, 13:15

Hello Hans,
how did you solved the problem?
When I load a scene through the combox I would like to start it from a polygonal hotspot position, but I don't know what I'm doing wrong.


This is the action

<!-- combobox plugin -->
<plugin name="box" keep="true"
url="%SWFPATH%/plugins/combobox.swf"
alturl="%SWFPATH%/plugins/combobox.js" native="false"
align="toprightbottom" x="10" y="10"
widhth="20"
rowcount="20"
onloaded="action(setupitems);"
/>

<action name="setupitems">
removeall();
additem(Ciusa_F_3, action(art14) );
</action>




<action name="art14">
<!-- select combobox item -->
plugin[combobox].selectitem(Ciusa_F_3);

<!-- dynamically add a hotspot -->
addhotspot(Ciusa_F3);
set(hotspot[Ciusa_F3].onclick, looktohotspot(Ciusa_F3); action(art14); );

<!-- load scene image -->
loadscene(scene_38)null,looktohotspot(Ciusa_F3),KEEPALL,BLEND(1));


<!-- set view -->
lookat(0,0,0);


</action>


This is the polygonal hotspot


<!-- polygonal hotspots for the pictures on the wall
(for a HTML5 a zoomicon is used as alternative) -->
<style name="pichotspot62"
capture="false"
zorder="1"
onclick="showpic();"
alturl="hotspots/zoomicon.png"
onhover="showtext( Ciusa Francesco - Vibrazioni di violino );"
zoom="true"
scale="0.5"
/>

<hotspot name="Ciusa_F3" style="pichotspot62" pic="Ciusa_vdv">
<point ath="60.87087" atv="4.169227" />
<point ath="60.83824" atv="-0.236102" />
<point ath="66.609892" atv="-0.316512" />
<point ath="66.711845" atv="5.318165" />
<point ath="64.249965" atv="5.725627" />
<point ath="60.933266" atv="5.53932" />
</hotspot>

Thank you very much.

Andrea