egjs-view360 icon indicating copy to clipboard operation
egjs-view360 copied to clipboard

Is it possible drag hotspot.

Open ChanderShekharKestone opened this issue 2 years ago • 10 comments

Is it possible drag hotspot from point a to point b. And after reached point b get yaw and pitch.

ChanderShekharKestone avatar Jul 05 '22 12:07 ChanderShekharKestone

Hello @ChanderShekharKestone! Hotspot is not supported as an official feature at the moment, please check issue https://github.com/naver/egjs-view360/issues/289

WoodNeck avatar Jul 06 '22 06:07 WoodNeck

Ok, thanks for reply. How to get yaw and pitch on mouseclick.

ChanderShekharKestone avatar Jul 06 '22 06:07 ChanderShekharKestone

@ChanderShekharKestone You need some math for that feature. Check this demo: https://codepen.io/woodneck/pen/LYdGGXo

WoodNeck avatar Jul 06 '22 07:07 WoodNeck

Thank you so much.

ChanderShekharKestone avatar Jul 06 '22 07:07 ChanderShekharKestone

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 Untitled-2 Untitled-1

ChanderShekharKestone avatar Jul 13 '22 07:07 ChanderShekharKestone

@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.

WoodNeck avatar Jul 13 '22 07:07 WoodNeck

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 avatar Jul 13 '22 12:07 ChanderShekharKestone

@ChanderShekharKestone

Please check this comment:

  • https://github.com/naver/egjs-view360/issues/310#issuecomment-604378183

WoodNeck avatar Jul 14 '22 06:07 WoodNeck

I tried that code also not working for me. Hotspot position not fixed at same point.

ChanderShekharKestone avatar Jul 14 '22 10:07 ChanderShekharKestone

tspot position not fixed at same

Is there anyone who have solution to fixed hotspot position.

ChanderShekharKestone avatar Jul 16 '22 09:07 ChanderShekharKestone

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

WoodNeck avatar Feb 24 '23 04:02 WoodNeck