Demo app babylonjs native

Here’s a demo app with babylonjs native, no interactivity yet

link: https://cdn.glitch.com/832401c3-8cbf-42db-acce-98209736affc%2FdemoBabylonjs.apk?v=1610125675916

screenshot:

5 Likes

I bet @bghgary will like it!

2 Likes

babylon native is the future for mobile games

1 Like

How can I not like this? :slight_smile:

1 Like

I just get the background though. I don’t see the character. :confused:

1 Like

it takes some time for the model to load, took around 1 minute for me on a rusty android tablet

1 Like

Is it a debug build? Do you know why it’s so slow?

1 Like

it is not a debug build and honestly I have no idea why it’s that slow,
here’s the model url:
https://cdn.glitch.com/81c23426-9d40-44fa-821a-5284243cd7a7%2Fsubmariner.gltf?v=1579822070355

It’s probably downloading it or it could be the base64 encoded buffer in the gltf.

1 Like

is there any way to solve that?

The downloading part, no. We might look into caching which will help on subsequent launches. For the base64 encoding, just use a GLB :slight_smile:

1 Like

Ideally, the app should include the asset in the android package without downloading it at all.

1 Like

Thanks :slightly_smiling_face:!
I will fix the app asap and post an update

You can use app:///<resource path> to access package resources.

1 Like

quite still the same load time

Interesting… Does this asset load fast in a browser on the same device?

1 Like

yes it loads fast

Do you mind filing an issue on Babylon Native repo? We’ll have to investigate why it’s slow.

1 Like

sure i will do that now

1 Like

I believe it was the device I tested it on, I run the same apk on another device, it loads almost immediately

1 Like