You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: