Hello,
I have 2 hotspots in a bedroom, one goes to a kitchen and one that goes to a Bathroom. Below is the Code.
Code
<scene name="scene_Bedroom" title="Bedroom" onstart="" thumburl="panos/Bedroom.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview url="panos/Bedroom.tiles/preview.jpg" />
<image>
<cube url="panos/Bedroom.tiles/pano_%s.jpg" />
<cube url="panos/Bedroom.tiles/mobile/pano_%s.jpg" devices="mobile" />
</image>
<!-- place your scene hotspots here -->
<hotspot name="spot1" style="spot1"
url.normal="kitchen.png"
distorted="true"
onloaded="calc_pos_from_hfov_yaw_pitch_roll(150, 0, 0, 0);"/>
<hotspot name="spot3" style="spot3"
url.normal="bathroom.png"
distorted="true"
onloaded="calc_pos_from_hfov_yaw_pitch_roll(150, 90, 0, 0);"/>
<!-- spots -->
<style name="spot1" ath="-150.7" atv="-20.5" edge="bottom" distorted="true" depth="3000" url="target.png" onloaded="do_crop_animation(128,128, 60);" scale="1" onover="tween(alpha,0.25,0.2);" onout="tween(alpha,1);" onclick="loadpano_no(2);" />
<action name="loadpano_no">
indexoftxt(contains_stereo, get(scene[get(xml.scene)].name), 'stereo');
loadscene(calc(contains_stereo GT 0 ? 'scene_pano1_stereo' : 'scene_Kitchen'), null, KEEPVIEW|KEEPMOVING|NOPREVIEW, BLEND(0.5));
</action>
<style name="spot3" ath="-150.7" atv="-20.5" edge="bottom" distorted="true" depth="3000" url="target.png" onloaded="do_crop_animation(128,128, 60);" scale="1" onover="tween(alpha,0.25,0.2);" onout="tween(alpha,1);" onclick="loadpano_no(2);" />
<action name="loadpano_no">
indexoftxt(contains_stereo, get(scene[get(xml.scene)].name), 'stereo');
loadscene(calc(contains_stereo GT 0 ? 'scene_pano1_stereo' : 'scene_Bathroom'), null, KEEPVIEW|KEEPMOVING|NOPREVIEW, BLEND(0.5));
</action>
</scene>
Alles anzeigen
For some reason both go back to the same bathroom scene, instead of each respective scene.
Any thoughts on on what went wrong?
Thanks,
J