switching off BLENDing on device iphone

  • dear forum
    because krpano seems to crash ipone 4 when using:

    (loadscene(scene_p001_2-1, null, MERGE,BLEND,KEEPVIEW,)

    and otherwise nothing crashes on

    (loadscene(scene_p001_2-1, null, MERGE,KEEPVIEW,)

    i am looking for a solution, to switch off all blend_functions from the loadscene actions.

    i have been trying something like this

    if(device.iphone, loadscene(', get(scene[get(i)].name), ',null,MERGE,); );
    but with no result.

    wbr
    klaus

  • Hi,

    sorry, but I can't see an increased crashing on iPhone 4, especially not when using up-to-date krpano and iOS versions (krpano 1.18 and iOS 7.1.2 for the iPhone 4 and 8.1 on the iPhone 4S).

    It's true that when using blending a little bit more memory is required (two preview panos instead of just one), but normally that shouldn't be a reason for crashing - the user interface graphics (like buttons, thumbs, hotspots and so on) typically need more memory.

    But if you don't want to use blending on the iPhone (but then also not for iPhone 5 and iPhone 6), you could do something like that:

    Code
    set(blendflag, 'BLEND(0.5)');
    if(device.iphone, set(blendflag, 'NOBLEND') );
    loadscene(..., null, MERGE, get(blendflag) );

    Or when using the default MAKE VTOUR skin from version 1.18, just change in the tour.xml this line:

    Code
    loadscene_blend="BLEND(0.5)"


    to this:

    Code
    loadscene_blend.no-iphone="BLEND(0.5)"
    loadscene_blend.iphone="NOBLEND"

    Best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!