Image-stitching and virtual tour solutions My account Updates
It is currently Tue Sep 02, 2014 5:35 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: compass code problem
PostPosted: Tue Sep 03, 2013 7:17 pm 
Offline
Member

Joined: Thu Feb 14, 2013 8:32 am
Posts: 18
Hi friends I have a problem with the compass code again....
here it is: http://www.helivizyon.com/build/virtualtour.html
Iahve this code on virtualtour.xml file
I havent touched the other xml files.
set heading value is 15 but compass shows different directions on every panorama... cant figure it why and how?

code:
<!--************** COMPASS ***************************************************************-->
<events onxmlcomplete="startup();"
onviewchange="rotatecompasses();"
/>

<!-- show info, set heading, create hotpots -->
<action name="startup">
<!-- SET HEADING -->
set(heading, 15);
</action>

<!-- change the rotation of the compass pointer / compass plate image -->
<action name="rotatecompasses">
sub(plugin[compass_pointer].rotate, heading, view.hlookat);
sub(plugin[compass2_plate].rotate, heading, view.hlookat);
</action>

<!-- compass with rotating pointer -->
<plugin name="compass" url="compassimages/compass.png" keep="true" zorder="1" children="false"
align="lefttop" x="10" y="10"
scale="0.5" scalechildren="true"
destscale="1.0"
onclick="switch(destscale,1.0,0.5);tween(scale,get(destscale));"
heading="0"
/>

<!-- compass pointer, the rotation will be changed in the "onviewchange" action -->
<plugin name="compass_pointer" url="compassimages/compass_pointer.png" keep="true" handcursor="false"
parent="compass" zorder="1"
align="center"
/>

<!-- compass glass cap (flash only, because there is no blendmode in html5) -->
<plugin name="glass" devices="flash" url="compassimages/glass.jpg" keep="true" enabled="false"
blendmode="screen" alpha="0.5"
parent="compass" zorder="2"
align="center"
/>

<!--************** COMPASS END ***************************************************************-->


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 03, 2013 11:26 pm 
Offline
Member

Joined: Wed Nov 14, 2007 2:12 pm
Posts: 13858
Location: Isleham, Cambridgeshire, UK.
sundust wrote:
Hi friends I have a problem with the compass code again....
here it is: http://www.helivizyon.com/build/virtualtour.html
Iahve this code on virtualtour.xml file
I havent touched the other xml files.
set heading value is 15 but compass shows different directions on every panorama... cant figure it why and how?

Is this created with PTP 1.8 and extra plugin code editing?

PTP2.x makes it easy to set the compass orientation of evey pano separately in the 3D editing panel, just drag the compass 'points' ribbon - first screenshot.

Second screenshot shows compass settings.





_________________
Andrew Stephens
Nikon D40, Nikkor 10.5mm fisheye, Sigma 8mm f3.5 fisheye, Nikkor 18-55/50/35mm lenses, Nodal Ninja 5 Lite, Nodal Ninja 4 with R-D16, Agno's MrotatorTCS short.
Nikon P5100, CP5000, CP995, FC-E8, WC-E63,WC-E68, TC-E2, Kaidan Kiwi 995, Bophoto pano bracket, Agno's MrotatorA.
Merlin/Orion robotic pano head + Papywizard on Nokia 770/N800/N810 and Windows 8/XP/2K.


Last edited by mediavets on Tue Sep 03, 2013 11:35 pm, edited 1 time in total.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group