Embed .gltf or .obj file content in a playground?

Hey folks,

Is it possible embed content of .gltf and .obj files directly in a Babylonjs playground?

This is an example embed content of .babylon scene in PG:

Just wondering is there similar way for .obj and .gltf?

The reason asking this is I just hope my PGs can be more independent without having dependencies with other external websites (github or dropbox).

Many thanks,

You can load from a string or a base64 string (much like in your example PG):

1 Like

@Evgeni_Popov Yesss! That’s it!

I keep moving my 3d assets around. It breaks the external link to those assets in my PGs. This will make PGs much neater and less greasy :laughing:

Thank you so much!!