Fflate in playground?

What would be the easiest way to get fflate to run in a playground?

I am trying to the prototyping for this:

In a playground just for ease of access, but the three.js example calls for using fflate. Maybe it would be better just to make the “strToU8” method I need.

UPDATE I just jacked the method I needed.

1 Like

If it’s just for the playground, you should be able to load the UMD script as noted in the npm readme:

https://unpkg.com/fflate@0.8.0

or

https://cdn.jsdelivr.net/npm/fflate@0.8.0/umd/index.js

You can use BABYLON.Tools.LoadScriptAsync to load the scripts.

2 Likes