Hi,
i am not able to orient the radar on the good direction.
on first load the radar must be at 90°showing the map's top.
How can i set this correctly ?
Thanks !
radar orientation
-
-
i have found by myself...
this is set by the heading param:
set(plugin[radar].heading,-90); -
Hi,
your code is correct
here is also a small tip that helps finding the correct heading:
1. include the options plugin to see the current hlookat value
2. set radar heading to "0"
3. look at a object on pano and notice the hlookat value
(e.g. hlookat_view = 31)4. move the radar to point to the same object on the map and notice the hlookat value agagin
(e.g. hlookat_map = -164)5. now the heading can be calculated:
heading = hlookat_map - hlookat_view
(e.g. heading = -164 - 31 = -195)6. if you want (but thats not necessary) you can adjust the heading to be in range 0..360
by adding or substracting +360/-360 until the heading is in the range
(e.g. heading = -195+360 = 165)I hope this helps a little bit, later I will also add a something to adjust the heading direct,
regards,
Klaus -
I will try this as well. I am the poster on the Google Groups forum asking about the radar issues. Will report back if it works.
http://www.virtualnorthland.com/ (work in progress)
-
well i updated to the new 1.0.7 and tried the setting above to get the radar in sync and it did not work. it seems it does not matter what setting i choose it always starts in the same direction. the radar heading does nothing for me the pano acts the same with that part of the code missing. it is like it is not even being read. anyone have any ideas?
-
do you test online or offline?
when you test online you should clear the browser cache after each xml update,
can you also post a link or the code?
regards,
Klaus -
I was testing offline and was not aware of the need to refresh after clearing IE cache will start doing so. Here is the modified code with the radar still not working, http://pastie.org/309604 please let me know if i am still codingthings wrong.
-
Hi,
the radar code looks okay (you set all headings to "180", that means e.g. when hlookat is "0" the radar should point to west)
but there there a two <preview> and <image> tags,
and in the <data name="html1"> tag the
looks not okay, I think the blank before "fi_logo.jpg" must be removed, e.g.:regards,
Klaus -
I have been struggling with this for some time now. Seem to have solved all my tour issues and XML coding apart from this.
started trying to change values in following code exampleCode<action name="load1"> set(plugin[spotx].x,116); set(plugin[spotx].y,180); set(plugin[radar].heading,90); set(plugin[radar].x,116); set(plugin[radar].y,180); loadpano(preston1.xml,null,KEEPALL,BLEND(1));
But to no avail then though it might be the keepall function causing the problem so changed it to blend still nothing I am completly lost now as seem to have tried everything the full code ofr this page is as followsCode
Display More<krpano version="1.0.8" onstart="action(load1);"> <textstyle name="DEFAULT" font="Arial" fontsize="16" textcolor="0xFFFFFF" border="false" background="false" effect="glow(0x000000,0.7,4,2);dropshadow(4,45,0x000000,4,1);"/> <textstyle name="smalltext" font="Arial" fontsize="10" border="false" background="false" textcolor="0xFFFFFF" effect="glow(0x000000,0.7,4,2);dropshadow(2,45,0x000000,3,1);" /> <plugin name="map" url="prestondata/parkmap.png" zorder="1" align="righttop" x="10" y="10" handcursor="false" keep="true" onclick="action(closemap);" onhover="showtext(Close Preston Manor Tour Map,smalltext);" /> <plugin name="spot1" url="prestondata/mappoint.png" zorder="2" align="righttop" edge="center" keep="true" x="116" y="180" onhover="showtext(The Gardens);" onclick="action(load1);" /> <plugin name="spot2" url="prestondata/mappoint.png" zorder="2" align="righttop" edge="center" keep="true" x="128" y="140" onhover="showtext(The Lawns);" onclick="action(load2);" /> <plugin name="spot3" url="prestondata/mappoint.png" zorder="2" align="righttop" edge="center" keep="true" x="142" y="85" onhover="showtext();" onclick="action(load3);" /> <plugin name="spot4" url="prestondata/mappoint.png" zorder="2" align="righttop" edge="center" keep="true" x="95" y="75" onhover="showtext();" onclick="action(load4);" /> <plugin name="spot5" url="prestondata/mappoint.png" zorder="2" align="righttop" edge="center" keep="true" x="85" y="115" onhover="showtext();" onclick="action(load5);" /> <plugin name="spot6" url="prestondata/mappoint.png" zorder="2" align="righttop" edge="center" keep="true" x="97" y="65" onhover="showtext();" onclick="action(load6);" /> <plugin name="spot7" url="prestondata/mappoint.png" zorder="2" align="righttop" edge="center" keep="true" x="105" y="30" onhover="showtext();" onclick="action(load7);" /> <plugin name="spot8" url="prestondata/mappoint.png" zorder="2" align="righttop" edge="center" keep="true" x="152" y="40" onhover="showtext();" onclick="action(load8);" /> <plugin name="spot9" url="prestondata/mappoint.png" zorder="2" align="righttop" edge="center" keep="true" x="200" y="50" onhover="showtext();" onclick="action(load9);" /> <plugin name="spot10" url="prestondata/mappoint.png" zorder="2" align="righttop" edge="center" keep="true" x="192" y="95" onhover="showtext();" onclick="action(load10);" /> <plugin name="spot11" url="prestondata/mappoint.png" zorder="2" align="righttop" edge="center" keep="true" x="184" y="140" onhover="showtext();" onclick="action(load11);" /> <plugin name="spot12" url="prestondata/mappoint.png" zorder="2" align="righttop" edge="center" keep="true" x="225" y="100" onhover="showtext();" onclick="action(load12);" /> <!-- first hotpot --> <plugin name="spotx" url="prestondata/mappointactive.png" zorder="4" align="righttop" edge="center" keep="true" x="116" y="180" /> <!-- radar plugin, set heading with "plugin[radar].heading" --> <plugin name="radar" url="prestondata/radar.swf" zorder="3" align="righttop" edge="center" keep="true" x="116" y="180" width="60" height="60" /> <action name="startloading"> set(hotspot.visible,false); push(view.fovmin); set(view.fovmin,1); </action> <action name="loadingdone"> pop(view.fovmin); set(hotspot.visible,true); </action> <action name="lookinterrupt"> action(loadingdone); breakall(); </action> <action name="load1"> set(plugin[spotx].x,116); set(plugin[spotx].y,180); set(plugin[radar].heading,90); set(plugin[radar].x,116); set(plugin[radar].y,180); loadpano(preston1.xml,null,KEEPALL,BLEND(1)); </action> <action name="load2"> set(plugin[spotx].x,128); set(plugin[spotx].y,140); set(plugin[radar].heading,180); set(plugin[radar].x,128); set(plugin[radar].y,140); loadpano(preston2.xml,null,KEEPALL,BLEND(1)); </action> <action name="load3"> set(plugin[spotx].x,142); set(plugin[spotx].y,85); set(plugin[radar].heading,-170); set(plugin[radar].x,142); set(plugin[radar].y,85); loadpano(preston3.xml,null,KEEPALL,BLEND(1)); </action> <action name="load4"> set(plugin[spotx].x,95); set(plugin[spotx].y,75); set(plugin[radar].x,95); set(plugin[radar].y,75); loadpano(preston4.xml,null,KEEPALL,BLEND(2)); set(plugin[radar].heading,270); </action> <action name="load5"> set(plugin[spotx].x,85); set(plugin[spotx].y,115); set(plugin[radar].x,85); set(plugin[radar].y,115); loadpano(preston5.xml,null,KEEPALL,BLEND(2)); set(plugin[radar].heading,12); </action> <action name="load6"> set(plugin[spotx].x,97); set(plugin[spotx].y,65); set(plugin[radar].x,97); set(plugin[radar].y,65); loadpano(preston6.xml,null,KEEPALL,BLEND(2)); set(plugin[radar].heading,270); </action> <action name="load7"> set(plugin[spotx].x,105); set(plugin[spotx].y,30); set(plugin[radar].x,105); set(plugin[radar].y,30); loadpano(preston7.xml,null,KEEPALL,BLEND(2)); set(plugin[radar].heading,12); </action> <action name="load8"> set(plugin[spotx].x,152); set(plugin[spotx].y,40); set(plugin[radar].x,152); set(plugin[radar].y,40); loadpano(preston8.xml,null,KEEPALL,BLEND(2)); set(plugin[radar].heading,270); </action> <action name="load9"> set(plugin[spotx].x,200); set(plugin[spotx].y,50); set(plugin[radar].x,200); set(plugin[radar].y,50); loadpano(preston9.xml,null,KEEPALL,BLEND(2)); set(plugin[radar].heading,12); </action> <action name="load10"> set(plugin[spotx].x,192); set(plugin[spotx].y,95); set(plugin[radar].x,192); set(plugin[radar].y,95); loadpano(preston10.xml,null,KEEPALL,BLEND(2)); set(plugin[radar].heading,270); </action> <action name="load11"> set(plugin[spotx].x,184); set(plugin[spotx].y,140); set(plugin[radar].x,184); set(plugin[radar].y,140); loadpano(preston11.xml,null,KEEPALL,BLEND(2)); set(plugin[radar].heading,12); </action> <action name="load12"> set(plugin[spotx].x,225); set(plugin[spotx].y,100); set(plugin[radar].x,225); set(plugin[radar].y,100); loadpano(preston0.xml,null,KEEPALL,BLEND(2)); set(plugin[radar].heading,270); </action> <action name="showspots"> set(plugin[spot1].alpha,0); set(plugin[spot2].alpha,0); set(plugin[spot3].alpha,0); set(plugin[spot4].alpha,0); set(plugin[spot5].alpha,0); set(plugin[spot6].alpha,0); set(plugin[spot7].alpha,0); set(plugin[spot8].alpha,0); set(plugin[spot9].alpha,0); set(plugin[spot10].alpha,0); set(plugin[spot11].alpha,0); set(plugin[spot12].alpha,0); set(plugin[spotx].alpha,0); set(plugin[radar].alpha,0); set(plugin[spot1].visible,true); set(plugin[spot2].visible,true); set(plugin[spot3].visible,true); set(plugin[spot4].visible,true); set(plugin[spot5].visible,true); set(plugin[spot6].visible,true); set(plugin[spot7].visible,true); set(plugin[spot8].visible,true); set(plugin[spot9].visible,true); set(plugin[spot10].visible,true); set(plugin[spot11].visible,true); set(plugin[spot12].visible,true); set(plugin[spotx].visible,true); set(plugin[radar].visible,true); tween(plugin[spot1].alpha,1); tween(plugin[spot2].alpha,1); tween(plugin[spot3].alpha,1); tween(plugin[spot4].alpha,1); tween(plugin[spot5].alpha,1); tween(plugin[spot6].alpha,1); tween(plugin[spot7].alpha,1); tween(plugin[spot8].alpha,1); tween(plugin[spot9].alpha,1); tween(plugin[spot10].alpha,1); tween(plugin[spot11].alpha,1); tween(plugin[spot12].alpha,1); tween(plugin[spotx].alpha,1); tween(plugin[radar].alpha,1); </action> <action name="hidespots"> set(plugin[spot1].visible,false); set(plugin[spot2].visible,false); set(plugin[spot3].visible,false); set(plugin[spot4].visible,false); set(plugin[spot5].visible,false); set(plugin[spot6].visible,false); set(plugin[spot7].visible,false); set(plugin[spot8].visible,false); set(plugin[spot9].visible,false); set(plugin[spot10].visible,false); set(plugin[spot11].visible,false); set(plugin[spot12].visible,false); set(plugin[spotx].visible,false); set(plugin[radar].visible,false); </action> <action name="closemap"> action(hidespots); set(plugin[map].onhover,showtext(Open Preston Manor Tour Map,smalltext);); set(plugin[map].onclick,action(openmap);); tween(plugin[map].width,32,distance(230,0.5),easeoutquad); tween(plugin[map].height,32,distance(196,0.5),easeoutquad); </action> <action name="openmap"> set(plugin[map].onhover,showtext(Close Preston Manor Tour Map,smalltext);); set(plugin[map].onclick,action(closemap);); tween(plugin[map].width,230,distance(230,0.5),easeoutquad); tween(plugin[map].height,196,distance(196,0.5),easeoutquad,action(showspots);); </action> </krpano>
Would really aprreciate any input into this it's very frustrating that once you think you understand evrything it then doesn't work.
-
Hi,
the code itself looks okay,
can you post a link to the online example?maybe this would help too - here is a new example for a simple tour with a radar:
https://krpano.com/forum/wbb/inde…D=6712#post6712best regards,
Klaus
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!