Blax Posted November 26, 2015 Share Posted November 26, 2015 Hi!http://www.babylonjs.com/babylon.js yesterday or today is update or changed? ArcRotateCamera now is not controlled by mouse. Quote Link to comment Share on other sites More sharing options...
RaananW Posted November 26, 2015 Share Posted November 26, 2015 I don't see any changes made to the ArcRotateCamera apart from that - https://github.com/BabylonJS/Babylon.js/commit/97179d04dab8902ae080b9605db1bf4509ce8ce7 , but i doubt this caused any problem with the mouse. The playground is working as well. Are you getting any errors in the console? Have you tried the github latest build? Quote Link to comment Share on other sites More sharing options...
WolfKodi Posted November 26, 2015 Share Posted November 26, 2015 I experienced the same issue where attaching control to the camera doesn't work. But for some reason it still does on the playground. Hopefully it's temporary. Quote Link to comment Share on other sites More sharing options...
KevinBLT Posted November 26, 2015 Share Posted November 26, 2015 Same here! It works in IE only for me with 2.3.Unfortunately this is really annoying so I had to switch back to 2.2. I looked a while for any differences between the playground and my app, because in the playground it worked. Some notes: - The view seemed to not receive any pointer events - My canvas, for example, is a flex item. It seems like the pointer event poly fill doesn't work in particularHTML trees with a specific kind of css positioning. This is what it looks like for me. Have a nice day! Quote Link to comment Share on other sites More sharing options...
WolfKodi Posted November 26, 2015 Share Posted November 26, 2015 oh yeah! I noted that the pointer events weren't registering when I was using picking info. I switched to several commits back from the github preview release and got one of the raw links like this:https://rawgit.com/BabylonJS/Babylon.js/2bf66f15f8f5947faa4cef2a76d3811f98d21e44/dist/preview%20release/babylon.js Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted November 26, 2015 Share Posted November 26, 2015 I experience no problem with the yesterday BJS version...Could this be related to the two latest commits (about scene.picking https://github.com/BabylonJS/Babylon.js/commit/9ec12206022a7740487ebc922812f0bf46b3e85b and touches https://github.com/BabylonJS/Babylon.js/commit/c0c7c25a0678066c23ec8bd403dd5989101a3b09) ? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 27, 2015 Share Posted November 27, 2015 Hello this is an issue if you do not register hand.js first I'm working on a fix Quote Link to comment Share on other sites More sharing options...
WolfKodi Posted November 27, 2015 Share Posted November 27, 2015 Oh right! Hands.js! That's correct. I didn't have hand.js when I made those test cases. Good luck with the fix! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 28, 2015 Share Posted November 28, 2015 Fix done WolfKodi 1 Quote Link to comment Share on other sites More sharing options...
WolfKodi Posted November 29, 2015 Share Posted November 29, 2015 Hi again, not sure if this is related but touch events are no longer working on mobile devices with Hands.js. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 30, 2015 Share Posted November 30, 2015 where did you see this? It works on playground for me Quote Link to comment Share on other sites More sharing options...
WolfKodi Posted November 30, 2015 Share Posted November 30, 2015 It's working on playground but not my setup where I use Hands.js from: https://cdnjs.cloudflare.com/ajax/libs/handjs/1.3.11/hand.jsWhich version of Hands.js is the playground using now? It used to be "http://www.babylonjs-playground.com/hand.minified-1.2.js"But now I can't seem to find a script with the name hands being loaded. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 30, 2015 Share Posted November 30, 2015 This **should** work can you share a link to see it live? (We switched to jQuery PEP but hand.js should still work) Quote Link to comment Share on other sites More sharing options...
WolfKodi Posted December 1, 2015 Share Posted December 1, 2015 Did a simple scene on jsfiddle and could reproduce the issue: http://jsfiddle.net/rv0ww3jp/Using an older repository commit of BJS works: http://jsfiddle.net/rv0ww3jp/1/(For reference, I'm testing on Chrome Mobile on Samsung Galaxy S4)Switching to PEP is even better. That's what I tried using at first but I couldn't get PEP to work.I tried using these link for PEP: https://code.jquery.com/pep/0.4.0/pep.min.jshttps://code.jquery.com/pep/0.3.0/pep.js Quote Link to comment Share on other sites More sharing options...
Kesshi Posted December 1, 2015 Share Posted December 1, 2015 Same problem here. The ArcRotateCamera is not working on IPad anymore with the latest build.I'm using hand.1.3.8.js and it is loaded first. I also tried pep but that doesn't help. The problem was introduced with the change in Tools.GetPointerPrefix() in this commit:https://github.com/BabylonJS/Babylon.js/commit/c0c7c25a0678066c23ec8bd403dd5989101a3b09 The fix from this commit doesn't help:https://github.com/BabylonJS/Babylon.js/commit/1bdc6ffd6fc41eeb159d723b5876cb9cff3a65f0 changing the line if (!window.PointerEvent) back to if (!navigator.pointerEnabled) fixes the problem for me. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted December 1, 2015 Share Posted December 1, 2015 If you are using PEP you cannot use a CSS rule to specify touch action but you have to add it directly to the canvas:https://github.com/BabylonJS/Samples/blob/master/Demos/ActionBuilder/index.html#L24 WolfKodi 1 Quote Link to comment Share on other sites More sharing options...
WolfKodi Posted December 2, 2015 Share Posted December 2, 2015 Changing window.PointerEvent to navigator.pointerEnabled works for me, as Kesshi mentioned.Thanks for the tip about touch action. Quote Link to comment Share on other sites More sharing options...
Kesshi Posted December 2, 2015 Share Posted December 2, 2015 If you are using PEP you cannot use a CSS rule to specify touch action but you have to add it directly to the canvas:https://github.com/BabylonJS/Samples/blob/master/Demos/ActionBuilder/index.html#L24 Thank you, that works. That means, we have to use PEP from now on because babylonjs is currently not compatible with hands.js (regarding touch devices).This could be a problem for someone who upgrades from babylonjs 2.2 to 2.3 don't you think? Is this change documented somewhere? Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted December 2, 2015 Share Posted December 2, 2015 I confirm this. BJS 2.3 does not work anymore with mobile touches (tested on android and iOS).So we have to definitly switch from hand.js to PEP ? Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted December 2, 2015 Share Posted December 2, 2015 I think it's a strange choice, in fact, I tend to remember that the idea of BJS is to not rely on too much thirdparty libs, but PEP needs jQuery, so now BJS also needs jQuery... Quote Link to comment Share on other sites More sharing options...
RaananW Posted December 2, 2015 Share Posted December 2, 2015 jQuery PEP has no jQuery dependency. It is a standalone framework. Just like hand.js It is simply a polyfill. Soon (an abstract "soon") it will not be needed.Check out the Getting started - https://github.com/jquery/PEP#getting-started eps 1 Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted December 2, 2015 Share Posted December 2, 2015 Ah ok. I thought it was a dependency because of this official description seen on the website "jquery.pep.js is a lightweight jQuery plugin which turns any DOM element into a draggable object", but maybe it's another library... also called jquery pep. Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted December 2, 2015 Share Posted December 2, 2015 Hmmm, even with PEP I can't use mobile touches anymore.I think it may be relative to If you are using PEP you cannot use a CSS rule to specify touch action but you have to add it directly to the canvas:https://github.com/BabylonJS/Samples/blob/master/Demos/ActionBuilder/index.html#L24 But since I'm injecting the canvas via javascript, I can't add touch action directly in the HTML code. And canvas.style.touchAction = "none" have no effect, I'm still not able to manipulate arcrotate on mobiles... Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted December 2, 2015 Share Posted December 2, 2015 Ok, it works with canvas.setAttribute("touch-action", "none") Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted December 2, 2015 Share Posted December 2, 2015 I will send a fix to make bjs still work with hand.js 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.