Hello there,
is it still current that the output from Babylon.js native does not support user input?
Hello there,
is it still current that the output from Babylon.js native does not support user input?
Hey @Pavel_Hetmer, as of right now, Babylon Native currently supports left click from a single source but full pointer (all mouse buttons, multi-touch, etc.) is currently in active development. Once that’s completed, we’ll work on getting Keyboard support added as well.
@PolygonalSun is working tirelessly in bringing all the inputs to Native
Is there a central place to see the current state of Babylonjs Native and Babylonjs-ReactNative in a little more detail than the marketing demo pages?
Thanks!
We have the Github repo ( BabylonJS/BabylonNative: Build cross-platform native applications with the power of the Babylon.js JavaScript framework (github.com)), but I think a more detailed status page to quickly summarize the recent changes would be pretty interesting to have. @PirateJC what do you think?
Something I would like to see is more beyond cmake building. Like about where to put things, scripts and data files by platform.
Also saw in https://forum.babylonjs.com/t/load-json-file-in-babylon-native/17522/
In my Android Activity, I load the Scripts like this
mView.loadScript("app:///Scripts/JSON2.js");
mView.loadScript("app:///Scripts/playground_runner.js");
This looks like Android. Is there a way a script file can be loaded from within a Javascript VM?
Yup! Agreed! This is on our roadmap to make this more transparent. Progress on Babylon Native is progressing steadily, but we have some work to do to make that progress more transparent.
Yes, that would be helpful for sure. We have this, but it doesn’t say exactly where files should go.
The overall documentation could use some work.
Sorry to resurrect an old thread but I was just wondering what the status of Babylon Native native touch inputs is, specifically native camera controls (drag rotate or pan, pinch zoom etc). The Babylon React Native playground app still seems to use custom JS input handling for basic camera rotation about a single axis.
@inteja This should all be working correctly now with cameras. @PolygonalSun can give more details maybe?
So Babylon Native had multi-touch support added for iOS and Android on the 14th and it should have been pushed up to Babylon React Native on the 15th so it should be live, depending on when you last updated. I think that in the App.tsx file for the Playground (Apps/Playground/playground-shared), there’s still a custom DeviceSourceManager instance in there. You could remove that code and just add something like:
scene.activeCamera.attachControl(canvas, true);
This should add the standard control scheme to your camera.
Thanks @PolygonalSun and @bghgary . Any word on native inputs for Windows builds? We’re primarily building for Android, but have just started experimenting with iOS and Windows builds.
I believe pointer support should be working on Windows but not multi-touch. @PolygonalSun Please confirm.
That is correct. Multi-touch support hasn’t been added for Windows yet.