Problems and questions about enable3d #346
Unanswered
ckeereeto
asked this question in
Help / Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, Yannick and everybody
I'm some problems and questions using enable3d, more specifically @enable3d/phaser-extension. For clarification, I create this prototype using Ionic, Angular, Phaser and enable3d.
"@enable3d/ammo-on-nodejs": "^0.25.3",
"@enable3d/ammo-physics": "^0.25.3",
"@enable3d/common": "^0.25.3",
"@enable3d/phaser-extension": "^0.25.3",
"@enable3d/three-graphics": "^0.25.3",
"@enable3d/three-wrapper": "^0.25.3",
"enable3d": "^0.25.3"
It seems the error occurs because FLAT.init() or FLAT.initEvents() doesn't finish the process of initialization. Seeing that these methods don't return any promise, it means I cannot use async-await. So, I have to delay a call for TextTexture(), by using setTimeout() for at least 500 ms or so.
Is there a way to check or verify that the initialization process is complete?
Is it supposed to be like that? Is there any to change the material in real-time, instead to replacing it as I do.
Or if we can setup multiple scenes for the same 3D space? As an alternative to the above method.
I'm trying to learn as much as I can in case I need to turn this into a real project. Thank you in advanced.
Have a nice day everyone.
Beta Was this translation helpful? Give feedback.
All reactions