problem mit blendcube auf dem iphone

  • hallo,

    bin gerade an testen der vtour und habe dort ein doppelpano mit blendcube drin.

    leider habe ich dort im iphone probleme mit der anzeige. gibt es eine möglichkeit das auch im iphone/ipad anzuzeigen,

    bzw. die möglichkeit dann halt nur ein pano normal anzuzeigen?

    anmerkung: die bildergalerie klappt im iphone super *thumbup*

    hier mal die besagte scene.

    thanx

    sascha


    <scene name="scene_pano_fs" title="pano_fs" onstart="fs_galeriestart();startdoppelpanofs();" thumburl="pano_fs/thumb.jpg">

    <!-- include image thumbbar xml script code -->
    <include url="incl_galerie_thumbs.xml" />

    <action name="fs_galeriestart">
    create_thumbbar(5, right, v, 10,10, 90,60, 6);
    thumbbar_addimage('fotos/image1.jpg');
    thumbbar_addimage('fotos/image2.jpg');
    thumbbar_addimage('fotos/image3.jpg');
    thumbbar_addimage('fotos/image4.jpg');
    thumbbar_addimage('fotos/image5.jpg');
    </action>
     <view hlookat ="90.000000"
    vlookat ="5.000000"
    camroll ="0.000000"
    fovtype ="VFOV"
    fov ="90.000000"
    fovmin ="60.000000"
    fovmax ="120.000000"
    maxpixelzoom ="NaN"
    limitfov ="true"
    fisheye ="0.00"
    fisheyefovlink="0.50"
    stereographic ="false"
    pannini ="false"
    architectural ="0.0"
    architecturalonlymiddle="false"
    limitview ="auto"
    hlookatmin ="NaN"
    hlookatmax ="NaN"
    vlookatmin ="NaN"
    vlookatmax ="NaN"
    />

    <display fps="60"
    details="24"
    tessmode="auto"
    movequality="LOW"
    stillquality="HIGH"
    flash10="on"
    movequality10="HIGHSHARP"
    stillquality10="HIGH"
    stilltime="0.25"
    />


    <memory maxmem="350" />
    <network downloadqueues="auto" decodequeues="auto" caching="true" cachesize="7" retrycount="2" />
    <progress showload="bar()" showwait="loopings()" />

    <preview url="pano_fs/preview.jpg" />

    <action name="addface">
    addhotspot(%1);
    set(hotspot[%1].url, %2);
    set(hotspot[%1].ath, %3);
    set(hotspot[%1].atv, %4);
    set(hotspot[%1].width, 1000);
    set(hotspot[%1].height, 1000);
    set(hotspot[%1].distorted, true);
    set(hotspot[%1].enabled, false);
    set(hotspot[%1].visible, false);
    set(hotspot[%1].alpha, 0.0);
    set(hotspot[%1].details, 16);
    set(hotspot[%1].zorder, %1);
    </action>


    <action name="addcube">
    addface(face_%1_F, %1_f.jpg, 0, 0);
    addface(face_%1_L, %1_l.jpg, -90, 0);
    addface(face_%1_R, %1_r.jpg, +90, 0);
    addface(face_%1_B, %1_b.jpg, +180, 0);
    addface(face_%1_Z, %1_u.jpg, 0, -90);
    addface(face_%1_N, %1_d.jpg, 0, +90);
    </action>


    <action name="setalpha">
    set(%1.alpha, %2);
    if(%1.alpha == 0.0, set(%1.visible,false), set(%1.visible,true));
    </action>


    <action name="setcubealpha">
    setalpha(hotspot[face_%1_F], %2);
    setalpha(hotspot[face_%1_L], %2);
    setalpha(hotspot[face_%1_R], %2);
    setalpha(hotspot[face_%1_B], %2);
    setalpha(hotspot[face_%1_Z], %2);
    setalpha(hotspot[face_%1_N], %2);
    </action>


    <action name="startdoppelpanofs">
    addcube(pano_fs/pano_fs);
    addcube(pano_fs2/pano_fs2);
    </action>


    <action name="blendcubes720">
    set(overlap, 30); <!-- set overlapping/blending range in degrees -->

    mul(edge1, overlap, 0.5);
    sub(edge2, 360, edge1);
    add(edge3, 360, edge1);
    sub(edge4, 720, edge1);

    mod(pan, view.hlookat, 720);
    if(pan LT 0, add(pan,pan,1440);mod(pan,pan,720); );

    if(pan GT edge2,
    if(pan LT edge3,
    sub(blend,pan,edge2);
    div(blend,blend,overlap);
    ,
    set(blend,1);
    );
    if(pan GT edge4,
    sub(blend,pan,edge4);
    div(blend,blend,overlap);
    sub(blend,1,blend);
    );
    ,
    if(pan LT edge1,
    add(blend,pan,edge1);
    div(blend,blend,overlap);
    sub(blend,1,blend);
    ,
    set(blend,0);
    );
    );

    sub(blend2, 1.0, blend);
    setcubealpha(pano_fs/pano_fs, get(blend));
    setcubealpha(pano_fs2/pano_fs2, get(blend2));
    </action>


    <events onviewchange="blendcubes720();" />


    </scene>

  • ok - schade, er hat mir nämlich da die bilder beider panos durcheinandergemischt.

    zum verständnis:

    dann mache ich eine scene mit blendcubes mit device=desktop und eine scene mit einem normalen pano und device=iphone - richtig?

    sascha

  • Hi,

    dann mache ich eine scene mit blendcubes mit device=desktop und eine scene mit einem normalen pano und device=iphone - richtig?

    ich weiß leider nicht wie du das meinst...?
    in dem Blendcubes Beispiel wurden die Panoramaflächen mittels mehrerer (distorted) Hotspots dargestellt,
    und zum Überblenden wurden jeweil die Hotspots ein- und ausgeblendet,

    auf dem iPhone/iPad ist das aber momentan nicht möglich, da es dort noch keine distorted Hotspots gibt,

    Schöne Grüße,
    Klaus

  • hallo klaus,

    ok, meine scene mit blendcubes is nix für`s iphone. damit ich aber wenigstens eines der beiden panos "normal" im iphone anschauen kann wollte ich eine scene mit blendcubes machen (für desktop) und eine "normale" (für iphone/ipad) - mit device kann ich ja bestimmen, auf welchem endgerät es angezeigt werden soll, oder funktioniert das nur bei plugins?

    sascha

Participate now!

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