Preloading images, but with slow network have a loading

  • Hi,

    I'm using Krpano in order to implement virtual visits, and i am preloading the images as layer at starting.
    So i use the onloaded for layers in krpano in order to trigger my show_loading action, when i get all images, i start the virtual tour. But with low network i still have a blackscreen of loading between images. However with good networks, i don't get it. It's weird do i do something wrong?

    this is my show_loading action:

    Code
    add(all_cnt,
    get(large_cnt), get(thu_cnt));
    div(per, all_cnt,allscene_cnt);
    mul(pv, per, 100);
    txtadd(pv, '%');
    copy(layer[loadingbar_fill].width,
    pv);
    if(get(large_cnt) ==
    scene.count, loadingbar_stoploading());
    inc(large_cnt);

Jetzt mitmachen!

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