Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Donnerstag, 2. Juli 2020, 12:11

Hotspot cursor_onover and cursor_onout for non webvr view

Is there an easy way to work out whether the centre point of the view (non webvr mode) is hovering over a hotspot or not..?

I have noticed this older thread on the forum with a wokaround to a full hit test. In my use case there can be a LOT of hotspots and it could very inefficient to loop through all of them on every frame as the thread suggests.

https://krpano.com/forum/wbb/index.php?p…obile#post60578

Since then the webvr.js plugin is now exposing a the cursor_onout and cursor_onover actions which is essentially performing the hit test.
Is there a way to access this hit testing without entering webvr mode, or using the webvr plugin?

I want to be able to enable/disable a fixed user interface button for mobile users when the centre point of the screen is hovering over a hotspot.

thanks

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »nealshail« (2. Juli 2020, 15:59)