pchen66 / panolens.js

Javascript panorama viewer based on Three.js
https://pchen66.github.io/Panolens/
MIT License
2.79k stars 498 forks source link

What is the space model for positioning infospots [ e.g. in .setposition(x,y,z)] #414

Open 8712staefa opened 1 year ago

8712staefa commented 1 year ago
Description

I managed to place infospots or links on my pano in the (0,0,-5000) position. What values do I set for x y z to move the infospot e.g. 90 degrees to the left? Are the values pixels? where is the origin in the xyz-space? The values in examples seem to be random, and trying out changing only one of x, y or z does move the infospot by few degrees or makes it smaller (= farther away?). I just don't get it. How is the rectangular pano image x,y-space mapped to the vector3-space? Thanks in advance

Panolens version

latest stable, downloaded as .zip

Browser
OS
Hardware Requirements (graphics card, VR Device, ...)
jdesbonnet commented 1 year ago

Same question. I've been trying it for a hour and saw the CTRL-mouse hack to get coordinates in browser console, but after reading the documentation (which is very sparse) I'm none the wiser about the co-ordinate space.

What I was hoping for was to be able to set the camera point of the panorama in x,y,z space (meters derived from GPS latitude,longitude,altitude), and then put info points at other x,y,z points on a meter grid derived from their lat,lng from a map. It's not clear if this is possible without substantial work.