oschakravarthi Posted October 4, 2018 Share Posted October 4, 2018 Hi, A strange problem, I have a SpherePanel with some buttons. I am using Oculus Go. The white color line coming from the controller is not reaching upto the panel even though the panel is very close. (May be it is thinking that there is no clickable stuff ahead). var button = new BABYLON.GUI.HolographicButton(Id); this._guiPanel.addControl(button); var evt = new BABYLON.ExecuteCodeAction( { trigger: BABYLON.ActionManager.OnPickDownTrigger, parameter: 'r' }, someCallback); button.isPickable = true; button.actionManager = new BABYLON.ActionManager(_this._scene); button.actionManager.registerAction(evt); button.onPointerDownObservable.add(someCallback); I am setting both BABYLON.ActionManager.OnPickDownTrigger and onPointerDownObservable (I really don't know whether I should subscribe to both the events are which one) but it is not reaching upto the buttons. Please help me. Quote Link to comment Share on other sites More sharing options...
oschakravarthi Posted October 5, 2018 Author Share Posted October 5, 2018 The problem is coming only in VR mode. Any clue? Quote Link to comment Share on other sites More sharing options...
kcoley Posted October 5, 2018 Share Posted October 5, 2018 Pinging @trevordev Quote Link to comment Share on other sites More sharing options...
trevordev Posted October 5, 2018 Share Posted October 5, 2018 If you create a playground with just the buttons and don't load anything else does the ray work as expected? My guess is that something else you are loading into the scene is blocking the ray, Quote Link to comment Share on other sites More sharing options...
oschakravarthi Posted October 28, 2018 Author Share Posted October 28, 2018 Hi, it was due my wrong implementation due to my poor understanding of ray and mesh selection predicates. Looked into Babylon na code and understood the concepts clearly. Now everything is working fine. Thank you @trevordev trevordev 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.