Problem opening zoomspot & flyoutimage in VR MODE

  • There is an problem, when u open this kind of elements in VR mode, the imagen opens so big that u cant go out of it.
    Sorry for my english... im from Argentina!

    First image: image open in normal mode
    Second image: image open in VR mode

    Thanks! Any solution??

    The code here
    -----------------------------


    <hotspot name="spot_zoombild" style="zoomspot" ath="11" atv="0" scale="0.60" zorder="1" onclick="flyin( zoombild );" />

    <hotspot name="zoombild" url="info3.jpg"
    ath="11" atv="0"
    distorted="true"
    zorder="2"
    scale="0.1376"
    rx="-1.75" ry="-44.75" rz="0.7571"
    enabled="false"
    visible="false"
    alpha="0.0"
    flying="0.0"
    onclick="flyout(zoombild);"
    />

  • Thanks very much my friend! but... you are speaking about something I dont know :(

    I trying to guess, its something like this?


    <action name="flyout_hotspot">
    for(set(i,0), i LT hotspot.count, inc(i),
    copy(hs, hotspot[get(i)]);
    if(hs.name != name AND hs.style == 'flyoutimage' AND (hs.flying_state == 'out' OR hs.flying_state == 'flyingout'),
    callwith(hs, flyout_hotspot() );
    );
    );


    if(webvr.isenabled == true, set(scale, 0.01));

  • Hi,

    look for this line:

    Code
    tween(flying|rx|ry|rz|scale, '1.0|0.0|0.0|0.0|1.0', 0.5, default, set(flying_state,'out'); set(capture,true); );

    and change it to:

    Code
    tween(flying|rx|ry|rz|scale, calc('1.0|0.0|0.0|0.0|' + (webvr.isenabled ? 0.25 : 1.0)), 0.5, default, set(flying_state,'out'); set(capture,true); );

    Best regards,
    Klaus

Participate now!

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