Sie sind nicht angemeldet.

1

Dienstag, 18. Juli 2017, 09:00

VR - set hotspots absolute position (screen corner) issue

Hello. I am trying to set a hotspot at the edge of the screen in VR mode.

From what I have read layers do not work in VR yet.
Plugins work, but I cant click on hotspot because its out of sight cross-hair bounds.

So I am trying to take hlookat and vlookat and offset position of the hotspot towards the bottom of the view. However hlookat seems to jump around. I cant get an accurate offset.

Code:

<action name="vr_menu_following"
type="Javascript" devices="html5"><![CDATA[

var hs1 = krpano.get("hotspot[floatingcart]");
var h = krpano.view.hlookat;

var v = krpano.view.vlookat;
hs1.ath = h+10; //any offset makes hotspot jump around

hs1.atv = 43

]]>
</action>

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »mnel« (18. Juli 2017, 09:29)