Beiträge von zadda

    thanks for answering,

    i'm not sure if it gonna help me,

    the setting viewport-fit=cover is already added into the <meta> viewport element in the html file then the pano cover the whole screen,
    there only some layers hidden by the notch who need a shift.

    my project is an app : using Cordova embbeding a krpano version 1.19 pr13 (upgrading beyon pr13 cause more bugs at this point) ,
    So if i use : layer[name].safearea
    it will shift layers into safe area ?
    for all devices or only the ones with a safe-area concern (notched) ?

    z

    Hi,

    to adapt interface for smartphone with notch on top screen,
    i need to know how to setup the device detection : devices="..."

    to detect the notched iphone family : iPhone X, XR, XS, XSmax
    i was thinking to devices="iphone+screen dimensions" or something like that
    but what if next iphone gen will comes out without notch ?

    for android also ? not very familiar with...


    anyone already have to deal with that ?

    Thanks

    z

    Zitat

    You could change that in your code by adding a '()' in the txtadd:


    Thanks , working now *thumbsup*

    another fix i need :

    i'm trying to use the new update(); Action for scrollarea plugin but i get warning :

    the scrollarea plugin within layers :

    Code
    <layer name="scroll_text" visible="false" handcursor="false" keep="true" type="container" align="lefttop" edge="lefttop" y="0" width="100%" height="100" zorder="7" bgcolor="0x00CCFF" bgalpha="0.0">
    		 <layer name="scrollable_text" url="plugins/scrollarea.js" .........  >
                    <layer name="textfield_infos" url="plugins/textfield.swf" ........... />
    </layer>
    </layer>

    to call update :

    Code
    layer[scrollable_text].update();

    but console throw me a warning as :

    Code
    WARNING: Unknown action: plugin[scrollable_text].update

    How to correct ?

    thanks

    z

    hi,

    when updating project from pr12 to pr13 there a new bug,
    i think it's may be related to new "scope" feature for Styles,
    i use style to assign custom action to my UI buttons (OnUp) as is :

    UI btn :

    Code
    <plugin name="icon_infos_retina" style="onover_style" ...

    style :

    Code
    <style name="onover_style"
    		onup="txtadd(customised, 'button_ui_action.',get(name));customised();"
    		keep="true" preload="true" blendmode="normal" autoscale="false" handcursor="true"/>

    array of actions for UI btn :

    Code
    <button_ui_action 
    icon_thumbs_retina="action(drawer_switch);"
    		icon_infos_retina="action(infos_switch);"
    		icon_sound_on_retina="action(resume_sound);"
    		icon_sound_off_retina="action(pause_sound);"
    		icon_controls_retina="action(drawer_controls_switch);"
    />

    all runs fine with pr12,
    but when using pr13 it doesn't trigger the correct action and console show : WARNING: Unknow action: customised

    so what's the workaround ??
    or pr14 will fix it ?

    thanks *smile*

    z

    Hi,

    so here my problem :
    -when enter WebVR with stereo mode,
    if orientation of device is landcape : the screen is split from the longer part of the mobile (giving 2 squares),
    but
    if you rotate to portrait mode : the stereo view rotate and screen is split from the narrower part of mobile (giving 2 long rectangles)

    is it possible to keep the landscape stereo mode (2 squares) when rotating in portrait mode ? (same as youtube behavior)
    (i assume stereo mode keep the same but image rotate)

    i was thinking of an action in Onresize Event triggered by orientation change,
    comparing stagewidth and stageheight and resetting stereo mode placement...

    thanks for help

    z

    hi,

    my Bing maps html5 seems not sharp on retina display,
    usually i use a double size for plugin and set scale="0.5" to get retina sharpness
    but here i can't figure out how to get a sharper map,

    is a parameter inside the plugin itself not implemented and need update
    or is there a way around ?

    Thanks for help or infos

    BING MAPS :
    The new Bing Maps V8 SDK has much better mobile support and automatically detects the screen resolution and uses high DPI map images when needed.
    https://blogs.bing.com/maps/2015/02/1…ps-ajax-control

    seems the map version used in plugin is 7, please update to 8 *smile*

    z

    Hi,

    i use this piece of code to calculate my stageheight while resizing :

    Code
    if(device.desktop, sub(destheight,stageheight, 127),);
    
    
    div(divisor,stageheight,100);
    div(destheight,divisor);
    roundval(destheight, 1);
    txtadd(destheight,get(destheight),'%');
    tween(area.height, get(destheight), 0.1);

    i want use it with calc but it confuse me,
    how do you translate properly the code ??

    Thanks

    z

    Hi,

    quick question :

    is it possible to have in my xml :

    Code
    <a href="event:openurl(http://google.com)" class="external-link">Google (external link)</a>

    i get error

    in my main html, i have :

    as the krpano is encapsuled as an standalone app

    thanks

    Hi,

    In the old times the big Flash based websites had a preloader to make people wait the full load of the website before enjoying the fancy flash site...
    But now with a big virtual tour html5 , sometimes loading take long and no preolader displayed, i had tried using an Ajax preloader but the animation start but disappear before the full load of all krpano website,

    So is there any live example of a big html5 tour using a global preloader (not the krpano built-in) ?

    and what is the best technology to use today?

    thanks

    z