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.

1

Monday, September 5th 2016, 10:11pm

dynamically create (multires) image levels ? [obsolete]

hi klaus....

can i ask if its possible to dynamically create image levels for mulitres panos?
how would i do that?
the image levels do not have a name property as all other array elements in krpano...
and i need to add a cube element to each level...

EDIT: this is obsolete, i could solve it myself...
sad its not possible to delete posts...

best,
index

This post has been edited 6 times, last edit by "indexofrefraction" (Sep 6th 2016, 10:10pm)


2

Tuesday, September 6th 2016, 11:05pm

Hi,

even when obsolete - just as info - that's not possible, the <image> element need to be ready when loading the pano or the scene. Dynamically changing it at runtime is not possible.

Best regards,
Klaus

3

Tuesday, September 6th 2016, 11:53pm

Hi,

even when obsolete - just as info - that's not possible, the <image> element need to be ready when loading the pano or the scene. Dynamically changing it at runtime is not possible.

Best regards,
Klaus


uhm... but it works here ... i load normal and multires panos dynamically now.
to clarify, i dont "change" the image..
i removed all preview, image, level, cube and view elements in my scenes
everything is injected with an scene.onstart action.
...
that gives me an uncluttered and simpler scene setup.

This post has been edited 2 times, last edit by "indexofrefraction" (Sep 7th 2016, 9:10am)


4

Friday, September 9th 2016, 10:44pm

Hi,

okay, that's possible - code in the onstart, scene.onstart, onxmlcomplete, onnewscene events and in autorun=onstart actions will be executed before the <image> element gets parsed and used to the internal rendering stuff.

There it's still possible to build or modify the image data, but than later at 'runtime' it's not possible to change 'dynamically' things like the image urls or the levels.

Best regards,
Klaus