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

  • 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.

  • 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

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!