Sie sind nicht angemeldet.

kme

Fortgeschrittener

  • »kme« ist der Autor dieses Themas

Beiträge: 310

Wohnort: Belgium

Beruf: Long time coder, product manager and 3D enthousiast

  • Nachricht senden

1

Dienstag, 28. März 2023, 18:21

NEW - Spacial Events for krpano hotspots

I noticed a lot of questions around how to manipulate hotspots when certain conditions are met. For some users, the "onviewchange" is not easy to grasp and the usage also has its limitations and can become complex quickly if a lot of things need to be verified within that routine.

To make it easier and more in line with the krpano event system, I created this plugin to help krpano coders with some very specific but common tasks/interactions with hotspots:

- do something when (not) looking at hotspots
- do something when the hotspot becomes (not) visible
- do something when you get far/close to a hotspot

Example usage:

Quellcode

1
2
3
<hotspot name="myhotspot1" lookatrange="30" onlookat="dosomething()" onlookout="dosomethingelse()" />
<hotspot name="myhotspot2" hittest="true" onvisiblein="dosomething()" onvisibleout="dosomethingelse()" />
<hotspot name="myhotspot3" geofencedistance="750" ongeofencein="dosomething()" ongeofenceout="dosomethingelse()" />


And all these can be combined in a single hotspot too...

In addtion, these properties are available when using the above events:

Quellcode

1
2
3
4
5
hotspot[name].lookstate
hotspot[name].anglefromcam
hotspot[name].inview
hotspot[name].geofencestate
hotspot[name].distancefromcam


More details on usage and download can be found on this gumroad page:
https://krisoft.gumroad.com/l/bpcaa

Online Demo: https://krpano.kri-soft.be/spacial/


IMPORTANT NOTE: this is still in development: I'm releasing this preview in order to gather feedback and maybe catch some unnoticed bugs. During this preview, a small overlay is displayed on top of the screen. As soon as the plugin is released, this overlay will be removed.

Would be nice if some of you could give this a test run on their own use cases. *thumbup* *rolleyes*

Thank you for your feedback, this forum has been great to interact with!
kme

3

Dienstag, 4. April 2023, 09:41

Thanks very useful!

4

Montag, 10. April 2023, 16:17

Thank you, I have already included this plugin in my tour, a really useful thing. When will this plugin be released and overlay will be removed ?

5

Montag, 10. April 2023, 17:19

needi it too! *thumbsup*

kme

Fortgeschrittener

  • »kme« ist der Autor dieses Themas

Beiträge: 310

Wohnort: Belgium

Beruf: Long time coder, product manager and 3D enthousiast

  • Nachricht senden

6

Montag, 10. April 2023, 19:32

Nice to hear it was useful !

Did you have any issues during integration? Or suggestions for improving?

I will make a release in the next day - keep an eye out *blink*

7

Dienstag, 11. April 2023, 15:38

works like a charm! *thumbsup*

kme

Fortgeschrittener

  • »kme« ist der Autor dieses Themas

Beiträge: 310

Wohnort: Belgium

Beruf: Long time coder, product manager and 3D enthousiast

  • Nachricht senden

8

Donnerstag, 13. April 2023, 19:07

Thanks to everyone who provided feedback.

The plugin is now released and a license can be ordered on my gumroad:
Youi can still try the plugin for free before purchasing a license...

Spacial Events

regards,
Kristof

Mische

Fortgeschrittener

Beiträge: 157

Wohnort: dortmund

  • Nachricht senden

9

Freitag, 14. April 2023, 14:57

IMPORTANT NOTE: this is still in development: I'm releasing this preview in order to gather feedback and maybe catch some unnoticed bugs. During this preview, a small overlay is displayed on top of the screen. As soon as the plugin is released, this overlay will be removed.

Would be nice if some of you could give this a test run on their own use cases. *thumbup* *rolleyes*

Thank you for your feedback, this forum has been great to interact with!
kme

Hi!
I found an issue. There is a problem when you go to dollhouse-view. The "i" hotspots are getting bigger and bigger.

Best regards, Mische

kme

Fortgeschrittener

  • »kme« ist der Autor dieses Themas

Beiträge: 310

Wohnort: Belgium

Beruf: Long time coder, product manager and 3D enthousiast

  • Nachricht senden

10

Freitag, 14. April 2023, 17:27

Hi,

It is becasue those hotspots are defined as distorted="false", so they keep the same size at any distance from the model.
So it's just an illusion *thumbup*

Thank you for the feedback though!

gr,
KME

Mische

Fortgeschrittener

Beiträge: 157

Wohnort: dortmund

  • Nachricht senden

11

Freitag, 14. April 2023, 18:07

Sorry, it is not an illusion. The hotspots will not be reduced in size again.


Try to look at the model from above in the dollhouse view to reproduce the issue.

Best regads!

kme

Fortgeschrittener

  • »kme« ist der Autor dieses Themas

Beiträge: 310

Wohnort: Belgium

Beruf: Long time coder, product manager and 3D enthousiast

  • Nachricht senden

12

Freitag, 14. April 2023, 18:26

Aaaargh

Yeah, I see it now, thank you, I will have a look!

Edit: fixed - set the in-range and out-range to a fixed scale, rather than a multiplyer/divider *whistling*

At least the plugin itself was not bugged *cool*

Thanks again for the interest and report

Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von »kme« (14. April 2023, 18:37)


Mische

Fortgeschrittener

Beiträge: 157

Wohnort: dortmund

  • Nachricht senden

13

Freitag, 14. April 2023, 18:45

*thumbup* Anyway, I think it's a useful plugin! Thank you for sharing all these things here!

kme

Fortgeschrittener

  • »kme« ist der Autor dieses Themas

Beiträge: 310

Wohnort: Belgium

Beruf: Long time coder, product manager and 3D enthousiast

  • Nachricht senden

14

Freitag, 14. April 2023, 21:11

*thumbup* Anyway, I think it's a useful plugin! Thank you for sharing all these things here!


Aaaw, thank you! And thank YOU too, your contributions have been an inspiration for me!