Sie sind nicht angemeldet.

1

Donnerstag, 20. Juli 2023, 09:31

Preloading closest scenes

Hi all.
Currently I'm preloaded first five scenes and loading remaining scenes in the background but I wanna preloading closest scenes
My hotspot was place in 3d position tx, ty, tz. I wanna calculate distance between first hotspot and others hotspot and find the minimum distance.
Do u guys think it is possible or any other way better?
Thanks

Beiträge: 141

Wohnort: Russia, Komi republic, Uhta

Beruf: developer

  • Nachricht senden

2

Samstag, 22. Juli 2023, 10:41

Yes it is possible, you just need to know a little trigonometry or geometry)

I use this method to calculate and search for the nearest point from the place of clicking on the panorama to make a transition in this direction.

And for the preloader you can just write down all connections and possible transitions with each point, and then just load those panoramas to which you can move from the current one) as realized in my preloader). *thumbsup*

Hello from uhta3d )))
I'm in telegram: Lastromantik