Hello,
I'm using latest version (119pr15) and trying to link from Scene A to Scene B by clicking a hotspot that located in Scene A
The thing is the default view of scene B is WEST, but I need to change the "lookat" value to show it at NORTH direction right after clicking the hotspot.
After few days seeking answers here, I tried this way but I doesn't work:
I added a style in vtourskin.xml:
Code
<style name="skin_hotspotstyle_quang" url="vtourskin_hotspot.png" scale="0.5" edge="top" oy="0" distorted="true" onclick="loadscene(get(linkedscene),null,MERGE,BLEND(1)); lookat(get(lookat));" onhover="if(skin_settings.tooltips_hotspots, if(linkedscene, showtext(get(scene[get(linkedscene)].title),SKIN_TOOLTIPS)) );"onover="autoRotateSave" onout="autoRotateReturn" />
and here is tour.xml:
Code
<hotspot name="spot1" scale="0.40" rotate="30" style="skin_hotspotstyle_quang" ath="-35.241" atv="50.050" linkedscene="scene_s000" lookat="-3.8,90,120,0,0"/>
but it doesn't work!
I tried to put the lookat value inside the <style>, for example like this:
Code
<style name="skin_hotspotstyle_quang" url="vtourskin_hotspot.png" scale="0.5" edge="top" oy="0" distorted="true" onclick="loadscene(get(linkedscene),null,MERGE,BLEND(1)); lookat(-3.8,90,120,0,0);" onhover="if(skin_settings.tooltips_hotspots, if(linkedscene, showtext(get(scene[get(linkedscene)].title),SKIN_TOOLTIPS)) );" onover="autoRotateSave" onout="autoRotateReturn" />
so it works, but off course for all hotspot with this style.
So I think the problem here is at:
How should we define "lookat" value correctly to make it works?
Thank you and sorry for my English explaination.
Regards!