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.

N'drew

Beginner

  • "N'drew" started this thread

Posts: 17

Location: RUSSIA

Occupation: IT engineer

  • Send private message

1

Thursday, December 23rd 2010, 9:36pm

Compress xml files.

I have many xml files in my virtual tour. All these files are too large (2-3Mb). When the tour is loaded, the first thing loaded all the xml files. This is a very long time, I would like to expedite this process compressing files, such as encryption or any other way. Is it possible now or in the future?

AKSAN Bros

Intermediate

Posts: 192

Location: Turkey

Occupation: 360 Software and Hardware Developing

  • Send private message

2

Sunday, December 26th 2010, 10:54am

Quoted

expedite this process compressing files, such as encryption or any other way. Is it possible now or in the future?

Servers compress the files, which server are you using?

N'drew

Beginner

  • "N'drew" started this thread

Posts: 17

Location: RUSSIA

Occupation: IT engineer

  • Send private message

3

Tuesday, December 28th 2010, 8:03pm

Servers compress the files, which server are you using?

This is not true. The server on which I'm testing the download does not compress.
Have not heard that where it was compressing files during transfer.

VN2009

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

4

Tuesday, December 28th 2010, 9:07pm

i do not know this for sure it is just a thought. if you used krprotect and included the xml files into the swf would they be compressed in that fashion? This is something I am going to have to figure out soon also. My xmls in my city tour are getting huge.

N'drew

Beginner

  • "N'drew" started this thread

Posts: 17

Location: RUSSIA

Occupation: IT engineer

  • Send private message

5

Wednesday, December 29th 2010, 7:23pm

i do not know this for sure it is just a thought. if you used krprotect and included the xml files into the swf would they be compressed in that fashion? This is something I am going to have to figure out soon also. My xmls in my city tour are getting huge.

Unfortunately this is not so. If you used krprotect and included the xml files into the swf, then the resulting swf file weighs 110Kb plus the weight of all the xml files.

jpdeglet69

Intermediate

Posts: 215

Location: France

Occupation: VR Maker and Document Management Expert

  • Send private message

6

Wednesday, December 29th 2010, 10:28pm

Hi,

Me, I'm very impressed by your XML size,
because in my biggest tour, 52 panoramas, with Map, Thumbnails, Radar, 130 hotspots and Texts,
- 1 SWF = 111 ko
- 1 JS = 16 ko
- 53 XML = 221 Ko
to manage 1732 rectangular images = 143 Mo
Best regards,
JPhD
VR-GuideĀ®/Eleana CEO
https://eleana.online

This post has been edited 2 times, last edit by "jpdeglet69" (Dec 29th 2010, 10:41pm)


7

Thursday, December 30th 2010, 1:39am

When the tour is loaded, the first thing loaded all the xml files.


I don't understand why all of your xml files would load at once. Shouldn't each load only when called??? Are you relisting plugins (ones that should appear in every pano) in every single xml file? I typically only load plugins in the first file and use keep true to carry them through all of the panoramas. This usually results in just basic image data and that pano specific settings, hotspots, plugins in the rest of the xml files.

Maybe my thinking is wrong????


Jarred

This post has been edited 1 times, last edit by "Jarredja" (Dec 30th 2010, 6:23am)


VN2009

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

8

Thursday, December 30th 2010, 3:02pm

i do the same thing. plugin 1 time using keep="true" I also put any text data, hotspots or plugins that are particular to a single node on its own xml. that way that data is not loaded at all unless that node is visited. I would not use the krpano scene method while making huge tours. putting all the into a single xml could pose issues.

N'drew

Beginner

  • "N'drew" started this thread

Posts: 17

Location: RUSSIA

Occupation: IT engineer

  • Send private message

9

Thursday, December 30th 2010, 3:03pm

I don't understand why all of your xml files would load at once. Shouldn't each load only when called???

Not all of my xml files loading at once. I'm load xml file with my scenes, data file with some text for textfield, file with actions, styles, language suport for tour and etc. I'm use include for load xml:

Source code

1
2
3
4
5
6
7
8
<include url="%CURRENTXML%/xml/contextmenu.xml"/>
<include url="%CURRENTXML%/xml/cursors.xml"/>
<include url="%CURRENTXML%/xml/settings.xml"/>
<include url="%CURRENTXML%/xml/styles.xml"/>
<include url="%CURRENTXML%/xml/actions.xml"/>
<include url="%CURRENTXML%/xml/data.xml"/>
<include url="%CURRENTXML%/xml/object.xml"/> 
<include url="%CURRENTXML%/xml/img.xml"/>


XML file with hotspots for each pano load when load scene with this pano.

10

Monday, January 3rd 2011, 11:09am

Hi,

currently there is no support for compressing external files,
but you can try to build a swf file with the xml files embedded (with the kprotect tool),
a swf file itself is always compressed so the xml files should be also smaller when embedded,

best regards,
Klaus