You are not logged in.

> The forum rules have been updated. Please take a moment to read them.


#26 2013-02-14 10:15:06

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2417
Website

Re: compass for virtual tours

You need to copy the xml code in this thread which is your compass.xml code, and past it into your main xml file..

Destiny..


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#27 2013-02-14 11:30:48

sundust
New member
Registered: 2013-02-14
Posts: 6

Re: compass for virtual tours

Offline

 

#28 2013-02-14 12:09:21

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2417
Website

Re: compass for virtual tours

Hi... I have checked our your xml code and it seems to be fine but something is wrong for it not to work..

Try copying and pasting this replacing your compass xml code...

Destiny...


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

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

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

    <!-- compass with rotating pointer -->
    <plugin name="compass" url="compassimages/compass_iconMine.png" keep="true" zorder="1" children="false"
            align="righttop" x="10" y="10"
            scale="1.0" 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_icon_needle.png" keep="true" handcursor="false"
            parent="compass" zorder="1"
            align="center"
            />               
<!--
************** COMPASS END ***************************************************************


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#29 2013-02-14 12:11:15

sundust
New member
Registered: 2013-02-14
Posts: 6

Re: compass for virtual tours

I did it... Thanks smile
I forgot to paste it to second xml...

Offline

 

#30 2013-02-15 02:22:13

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2417
Website

Re: compass for virtual tours

Strange.. You only needed the code on the main xml file. Its a hierarchy code, meaning it effects all of the other xml files.. If however you need it only to be on one Tour.... you simply add the compass code to that xml file so none of the other Tours will have it.. .. It doesn't really matter with this code as long as you have it working I guess..

Destiny..


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson