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.

obel

Beginner

  • "obel" started this thread

Posts: 18

Location: Denmark

Occupation: Engineering stuff ...

  • Send private message

1

Thursday, July 10th 2014, 1:04pm

Dynamically load more scenes

Is it possible to load more scenes dynamically? I'm experimenting with a tour that holds several hundred panos and I wnat to break down the xml file into several smaller pieces. Here is what I imagine:

1. Devide panos into several xml files containing the scenes. Thus several smaller files instead of one big.
2. Load the xml files when needed. Possibly removing old scenes. Something like loadxml but with an url instead of xmlstring

For ease of changing the tour later, I might even want krpano to load an xml file containing a list of other xml files.

Is some of this possible?

Kind regards
Obel

jordi

Intermediate

Posts: 507

Location: Barcelona

Occupation: creating ideas & coding them

  • Send private message

2

Thursday, July 10th 2014, 1:18pm

I think it can be perfectly ok to have several hundred panos in the same xml. I think they will not be parsed until the are called, so it will not increase memory usage or decrease performance, an xml file with that so many panos, can be maibe about 100kb, and if you compress it maibe about 30kb.

I think what you are thinking about, is like making and include, but used as an action, and this is not possible, also removing old scenes isn't needed as krpano remove it once you are not in the scene.

I belive what you want to do is doable via php, but again I suggest you to try it the staright way and you will see if it works ok for your needs
everpano.com step beyond 360

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

3

Thursday, July 10th 2014, 1:30pm

you can use loadpano();
with flags

it workins exactely as you need
you can load scene one by one.
If you need manage scenes, then you can use some custom variable or array instead of scene tag

Andrey
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

obel

Beginner

  • "obel" started this thread

Posts: 18

Location: Denmark

Occupation: Engineering stuff ...

  • Send private message

4

Thursday, July 10th 2014, 10:35pm

Almost there

Tnx for suggesting loadpano. Now things work almost as I want them to. I have one problem left.

When I call loadpano I get what I want. The new scenes get loaded and the old ones are removed if I want them to. But when I call loadpano the screen goes black and displays loading. I want to continue viewing the old scene. Is that possible. I cant find a suitable flag.

Best regards
Obel

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

5

Friday, July 11th 2014, 10:04am

VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

Similar threads