egjs-view360
egjs-view360 copied to clipboard
Is it possible drag hotspot.
Is it possible drag hotspot from point a to point b. And after reached point b get yaw and pitch.
Hello @ChanderShekharKestone! Hotspot is not supported as an official feature at the moment, please check issue https://github.com/naver/egjs-view360/issues/289
Ok, thanks for reply. How to get yaw and pitch on mouseclick.
@ChanderShekharKestone You need some math for that feature. Check this demo: https://codepen.io/woodneck/pen/LYdGGXo
Thank you so much.
Hi Hotspot position not remian at same point. If drag hotspot lost position from it's defined position. In below link. https://naver.github.io/egjs-view360/examples/panoviewer/etc/hotspot.html
How i fixed it if drag hotspot not lose it's defined position.
For referance
@ChanderShekharKestone As It's not an official feature, I can't help you further as I have to check your whole code for this.
Please check whether the calculation logic is correct. Save the hotspot position as a 3-dimension point and project its position to screen using yaw, pitch, and fov value.
This is a demo link see here when you drag hotspot position not remian same. If you have any working example please share it will be very helpful. https://codesandbox.io/s/f4snyc
@ChanderShekharKestone
Please check this comment:
- https://github.com/naver/egjs-view360/issues/310#issuecomment-604378183
I tried that code also not working for me. Hotspot position not fixed at same point.
tspot position not fixed at same
Is there anyone who have solution to fixed hotspot position.
Hotspot is now an official feature in the new major version (v4
).
I also fixed this position issue in the new version.
- https://naver.github.io/egjs-view360/docs/hotspot