You are not logged in.

1

Sunday, March 18th 2012, 9:29pm

Autorotation

I have a problem with autorotation when changing panorama.

I mean: I stop autorotation on the current panorama- then change panorama - the new panorama should start with no autorotation and with the right autorotation button: instead the new panorama starts with autorotation on and so with the wrong button...

http://www.marcolanciani.com/bioparco100

There must be an error on the code. Please help.
Marco

2

Sunday, March 18th 2012, 9:35pm

Just a quick guess here, but try removing this from the individual panos.

<include url="global.xml" />

What is necessary should carry over with the merge, I believe. Otherwise, i think you are overwriting the merged aspects of it.

of course, I could be off base, but what's new??

3

Sunday, March 18th 2012, 10:43pm

It works, thanks a lot!
Marco

4

Sunday, March 18th 2012, 11:06pm

Now I remember why I used: <include url="global.xml" />

It's the only way to get the interface if I want to start from a specific pano, like this:

http://www.marcolanciani.com/bioparco100/9793.html

At least, it's the only way I know of, and I need to keep the <include url="global.xml" /> or find an alternative...
Marco

5

Monday, March 19th 2012, 2:34am

One way would be to have the 9793.html and any subsequent page open up a global like xml file with an include to the 9793.xml or other page.

ex.

9793.html
opens global1.xml

In global1.xml it has the reference to the image file instead.
<include url="9793.xml" />


Probably not the cleanest way, or easiest, but it is another way around it. It would require a different global for each. So technically not a global file.

6

Monday, March 19th 2012, 2:49am

Yes, not very clean and might work for small VTs only...

This happens because I start loading the index.xml (which is basically the same pano of 9793.xml):


<script>
embedpano({swf:"index.swf", xml:"index.xml", target:"pano"});
</script>

What if I make my Virtual Tour with a single xml file, pano as scenes, and starting with this single xml, like:


<script>
embedpano({swf:"index.swf", xml:"virtualtour.xml", target:"pano"});
</script>

Can I solve the issue with things like autorotation and still be able to start from any pano of the VT?
Marco

7

Monday, March 19th 2012, 3:14am

Take a look here. I believe it is exactly what you are looking for.

specifying the scene to load in html and passing to the xml control file

8

Tuesday, March 20th 2012, 4:52pm

Hi Jarredja,

thanks for the link. I even found an old link to a post started by me... that solution wasn't working at that time: now it does. Maybe it was just an issue due to embedding and encryption.

How to link to a pano.xml from an existing map

I still have to try embedding and encryption of the XMLs using the current version of the krpano.swf and I hope it's going to work now, also for iPhone.
Marco