You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

jl-krp

Intermediate

  • "jl-krp" started this thread

Posts: 140

Location: Bath

Occupation: Panographer - hobby and commercial

  • Send private message

1

Friday, July 1st 2011, 12:05am

size of xml

Thanks to VN & Hans I've finally understood how to make panos linked by hotspots that work on the iPad.
Q
for a large project do people make one huge xml file with all the scenes on or should it be separate as in pre -ipad projects?

JL

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

2

Friday, July 1st 2011, 12:39am

I'd make a seperate xml so that you can fix all the little differences between the flash versions and simply remove everything unessary for touch screens and add things that may be more important.
That way you're not parsing anything you don't need and you don't need extra includes which tend to slow things down.
Or you can keep a base xml and a flash xml and a html5 xml and include whichever one you need when you need it.
Basically it comes down to organization and ease of development.
In your case hotspots would be duplicate code which I would put in a base xml and alter their scale for the iphone using altonloaded or onloaded. So you only need to write one hotspot.
Then if you have php or asp at your disposal, you can make includes just for scenes etc...
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

VN2011

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

3

Friday, July 1st 2011, 1:21am

i agree with sacha. no need to parse unneeded data. i have done ot both ways. separate xml for mobile and some with them all in 1 xml using the devices tags. you could do like Hans does with his skins they are designed for ease of use on mobile devices and he keeps the same design for desktops. if you want to make separate xmls here is the html code to detect which platform the user is on.

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<div id="krpanoDIV">
	<noscript><table style="width:100%;height:100%;"><tr style="valign:middle;"><td><div style="text-align:center;">ERROR:<br/><br/>Javascript not activated<br/><br/></div></td></tr></table></noscript>
</div>

<script src="tour.js"></script>

<script>

	var viewer = createPanoViewer({swf:"tour.swf", id:"krpanoSWFObject", target:"krpanoDIV"});

	//viewer.useHTML5("whenpossible");		// incomment to use the HTML5 krpanoJS viewer always when possible (Safari5)

if( viewer.isDevice("iPhone|iPod|Andriod") )
  viewer.addVariable("xml", "mtour.xml");
else if( viewer.isDevice("iPad") )
  viewer.addVariable("xml", "ptour.xml");
else
  viewer.addVariable("xml", "tour.xml"); 
	viewer.embed();

</script>

HansNyb

Professional

Posts: 936

Location: Denmark

Occupation: Photographer

  • Send private message

4

Friday, July 1st 2011, 8:48am

I do not really see any idea in making separate xml. I do it all with the devices settings in just a basic xml and a skin xml.

For a 12 pano tour the sizes are just 35 kb for the basic xml and 5kb for the skin. The javascript for the HTML5 is 100 kb and the swf file for flash is 114.
You need to do some very complicated tours before the size has any impact on loading.

What I have started working on is templates which I can use for fully automatic tours with up to around 12 panoramas.
I can then combine several of them with a menu that loads the xml so that you can easy create large tours where each of them can be individual but still with the same design and navigation.


Hans

jl-krp

Intermediate

  • "jl-krp" started this thread

Posts: 140

Location: Bath

Occupation: Panographer - hobby and commercial

  • Send private message

5

Friday, July 1st 2011, 9:31am

Becoming Clearer

Thanks everyone!
As I've almost finished the 60 pano tour for the art-school complete with voice-overs and embedded videos, I'll attempt a parallel iPad version using the very useful detection code supplied by VN.
For my next substantial project I'll consider the other options.

Again many thanks for opening the Ipad door!

JL

Kev-in-spain

Intermediate

Posts: 148

Location: Barcelona

Occupation: VR Photographer

  • Send private message

6

Saturday, July 9th 2011, 11:26am

Interesting

hi jl,
I'd be interested to view this tour as I too am only just starting to get to grips with the ipad and its many 'issues'. Do youe have a url for us to see it?

Kev

jl-krp

Intermediate

  • "jl-krp" started this thread

Posts: 140

Location: Bath

Occupation: Panographer - hobby and commercial

  • Send private message

7

Sunday, July 10th 2011, 10:10am

60pano iPad tours pending

Hello Kev
The desktop version of the 60+ pano tour is almost complete:

http://www.john-law.net/projects/current…site/recep.html

It has voiceovers and embedded video. The latter is not yet available for iPad, I understand. So an iPad version is still 'pending'. However there is a 6pano tour of La Grande Arch that does work on iPad, using only hotspot navigation. I made that to see how difficult an ipad version of the art-school site would be & it proved quite 'doable'.

http://www.john-law.net/projects/current/nat/index.html

This is a simple one xml project. I have not yet got to grips with the parallel versions.

bw

JL