Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pre-VR (mono mode) scene issue - onClick offset occasionally #782

Open
vpallegar opened this issue Nov 23, 2019 · 0 comments
Open

pre-VR (mono mode) scene issue - onClick offset occasionally #782

vpallegar opened this issue Nov 23, 2019 · 0 comments

Comments

@vpallegar
Copy link

I am running a ViroScene using the ViroVRSceneNavigator with vrModeEnabled=false. The scene is comprised of a looping 360video with 4 ViroImage components on top to act as hotspots….They are positioned using polarToCartesian.

The issue i am running into is that, under certain conditions, when the scene first loads the clickable areas for the ViroImage nodes are not positioned correct. The actual image displays in the correct position, but the area that is clickable to the user is not in the correct location (so clicking the image doesn’t trigger the onClick event). I have tried wrapping the images in a viroNode and adding the onClick event to that but still same issue….I notice this happens when the viroVRsceneNavigator first is mounted and if during that time, the device does not move at all and just pointed downwards (other times i have noticed this happen on first start if the device pans up and down during loading and then moves from left to right)…If i hit back and relaunch the scene the areas are then clickable and working correctly….It seems like something in the scene is not calculating the clickable areas correctly (even though the ViroImages are displayed correctly on the screen)…When this occurs the onClick handlers are available on the screen ( if i try clicking on other areas of the scene i can sometimes trigger it, i’m just not sure where its moved to)….I have tried adding a delay to the loading of the image hotspots till after the video loads but that doesnt seem to help…

In this thread (#103) i see a comment about a possible viroBug which sounds similar to this and wondering if this is the culprit (even though i am running pre-VR mode without a camera in the scene)?

There is an issue where setting the camera rotation does not consider the device’s current ‘head/tilt rotation’, resulting in a bug where the camera does not rotate along the forward vector of where it is currently facing in. For example, the user can turn his device left, pan up and down, and this would result in the world “tilting to the right”.

Any help would be greatly appreciated. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant