You are not logged in.

1

Sunday, May 29th 2016, 8:31pm

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);"
/>
alejocba04 has attached the following images:
  • 2016-05-29 15_17_14-MOVE360.png
  • 2016-05-29 15_17_25-MOVE360.png

2

Wednesday, June 1st 2016, 6:52pm

Hi,

the flying actions aren't designed for VR support...

You could try adapting them - e.g. check in the flyout action for the 'webvr.isenabled' and use a smaller destination scale...

Best regards,
Klaus

3

Friday, June 3rd 2016, 1:53am

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));

4

Monday, June 6th 2016, 11:39am

Hi,

look for this line:

Source code

1
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:

Source code

1
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