FlashyGoblin Posted March 30, 2017 Share Posted March 30, 2017 Is there any recent support for Babylon in CocoonJS? Specifically regarding picking in Canvas+ mode? I have a scene that is rendering great in Canvas+ mode in Cocoon, but no mouse interaction with the virtual camera or picking. Thanks in advance! Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted March 30, 2017 Share Posted March 30, 2017 Does your scene work in a browser on your device? You would need to either put hand.js or pep to make those work. I do not see this as a BJS support issue. Quote Link to comment Share on other sites More sharing options...
FlashyGoblin Posted March 30, 2017 Author Share Posted March 30, 2017 @JCPalmer yes, I have pep loaded and it works on mobile. HandJS also works. And it works in CocoonJS in Webview+ mode, just not Canvas+. I would really like to get it working in Canvas+ mode to take advantage of the add performance. royibernthal 1 Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted March 31, 2017 Share Posted March 31, 2017 Ok, if you did a forum search we already talked about this. I modified hand to work with canvas+ back in 2015. I know it worked. Am off of Canvas+. No Audio API, no worker threads. Suspect once that WebGL 2.0 is available widely on mobile that it is not going to be on Canvas+. As XDK has moved away from apps, will still be using Webview+ if any app store implementations. Here is modified hand.hand-1.3.8-cocoon.js c75 1 Quote Link to comment Share on other sites More sharing options...
FlashyGoblin Posted March 31, 2017 Author Share Posted March 31, 2017 7 minutes ago, JCPalmer said: Ok, if you did a forum search we already talked about this. I modified hand to work with canvas+ back in 2015. I know it worked. Am off of Canvas+. No Audio API, no worker threads. Suspect once that WebGL 2.0 is available widely on mobile that it is not going to be on Canvas+. As XDK has moved away from apps, will still be using Webview+ if any app store implementations. Here is modified hand.hand-1.3.8-cocoon.js That worked! Thank you!! I was primarily looking into all of the latest versions of everything, as I know that PEP is now the recommended replacement to HandJS. Just trying to futureproof things. But this is working for now. Thanks again! Quote Link to comment Share on other sites More sharing options...
Temechon Posted March 31, 2017 Share Posted March 31, 2017 Yes I remember this talk, seomhow some event are not thrown in Canvas browser. And don't worry about hand.js, it works fine Good luck buddy ! 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.