You are not logged in.

HansNyb

Professional

  • "HansNyb" started this thread

Posts: 1,063

Location: Denmark

Occupation: Photographer

  • Send private message

1

Friday, April 24th 2015, 8:07am

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.

Alexey Tkachenko

Professional

Posts: 770

Location: Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

2

Friday, April 24th 2015, 8:24am

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

Alexey Tkachenko

Professional

Posts: 770

Location: Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

3

Friday, April 24th 2015, 8:25am

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

Alexey

HansNyb

Professional

  • "HansNyb" started this thread

Posts: 1,063

Location: Denmark

Occupation: Photographer

  • Send private message

4

Friday, April 24th 2015, 8:31am

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

HansNyb

Professional

  • "HansNyb" started this thread

Posts: 1,063

Location: Denmark

Occupation: Photographer

  • Send private message

5

Friday, April 24th 2015, 8:33am

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

6

Sunday, May 17th 2015, 1:15pm

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