NativeScript / canvas

Apache License 2.0
88 stars 18 forks source link

canvas-babylon, no interaction possible and no file loading possible #91

Closed cjohn001 closed 8 months ago

cjohn001 commented 2 years ago

Hello together, I am currently playing with the canvas-babylon plugin and I observed two major bugs.

@triniwiz: We have spoken about some of the topics below yesterday. However, I thought I add an issue here and provide you with a demo project to show the issues. Hope this is of some help.

First: There seems to be no interaction possible with the canvas. Tap und Touch events seem to have no effect on the canvas. Seems like this works with the three.js camera, but not with the babylon packages. I tried in Babylonjs with different cameras. For all cameras interaction is completely ignored

BABYLON.ArcRotateCamera BABYLON.UniversalCamera

Second: I tried to load some geometry using babylonjs-loaders. Unfortunately also without success:

A minimum example can be downloaded from here:

https://github.com/cjohn001/babylon

Third: Feature request. It would be great if you could add version 5 of Babylon.js with the next update. There are packages with typings available at:

https://www.npmjs.com/package/@babylonjs/core

Thanks for the great plugin! I hope we can get the blockers out soon. Time is right to get an opengl-based scene graph into Nativescript :)

triniwiz commented 8 months ago

Touch handling has been updated in v2 to behave similar to the web. If the touch doesn't respond it maybe due to it using mouse events.