
fateriddle
Members-
Content Count
63 -
Joined
-
Last visited
About fateriddle
-
Rank
Advanced Member
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Try to build my own customized babylonjs, result in errors
fateriddle replied to fateriddle's topic in Questions & Answers
Thank you, that's fantastic! Unfortunately I kinda need to reduce bundle size right now for a game to display in a week. Could you help with the question? -
So I followed https://doc.babylonjs.com/how_to/how_to_start and https://doc.babylonjs.com/how_to/workloads question 1. Basically I clone the project, cd into Gulp folder, then run 'npm install' & 'gulp --max-old-space-size=8192' I don't understand why because I haven't even try to customize yet. question2: Then I figured may be the file is built, just tests failed. So I changed currentConfig from "all" to "minimal", and run 'gulp --max-old-space-size=8192' again to build the supposedly minimal bundle similar error pops: ➜ Gulp git:(master) ✗ gulp --max-ol
-
1. Since you can load meshes using ImportMeshAsync to return a promise, I wonder if it is possible to do the same for sound? I'm trying to do Promise.all([ loadAsset1, loadAsset2, loadSound, loadMusic ]).then( ... ) 2. Also It seems 360 photo dome and video also needs loading time, can you turn them into promise too?
-
Is there any plan to extract a light weight core of babylon.js for mobile? Currently, I downloaded the babylon.js file from mdn and size is around 2.1 M. That's way too big for me to run some simple game on smart phone. Can we extract a lighter version that only contains the core functionalities? And maybe then add everything else back onto the core using plugins / npm packages? I build a game to play on phone, and share it (qr code) internally in our company, the performance is not impressive to say the least, and we are considering switching to something lighter right now.
-
I didn't read the source, but the api documentation doesn't mention hasObserver at all, so I assumed it was a typo and reported it.
-
Wingnut reacted to a post in a topic: Typo on Doc
-
https://doc.babylonjs.com/how_to/observables "hasObserver" should be "hasObservers"
-
This is a straight forward question, how do I get the transformNode under root mesh? The asset has a root mesh with id '__root__', putting it in sandbox, I see a transformNode 'node-0' under it, with 3 subMeshes under that transformNode 'node-0'. So I want to get that transformNode, how? ImportMesh will return all meshes, and I can get access to the root with const obj = newMeshes[0] How do I find that transformNode then?
-
Thanks, I didn't notice the difference. Btw, the assets are all using a transformNode as the parent of all meshes (and it makes sense), if I createIntance of that node, it seems nothing will be copied. If I use .clone that node, things will be fine. But I have performance concern using clone instead of createInstance, should I be worried?