#Help to get embeded glTF support with base64 string

20 messages · Page 1 of 1 (latest)

twilit schooner
#

basically lemme tell u what i am doing....

#

i am making a turbowarp three.js extension in javascript

#

turbowarp is a nice tool to make 2d games but it doesn't support three.js

#

also turbowarp is a block based editor

#

and u can only do stuff related to 2d with it

#

its just like scratch but with more tools and features like u can compile ur project, u can do various settings like custom fps and stuff and u can also make an extension using javascript that can add new blocks to turbowarp

#

and cuz turbowarp is a 2d tool, u can't use three.js in it

#

thats why i decied to code a turbowarp extension (an extension for turbowarp that i can write in javascript that can add new blocks)

#

a three.js extension specifically

#

which can allow three.js usage inside of turbowarp

#

and now i need to make glTF model import support

#

but......

#

i want to use something that is just 1 file meaning that if i want a model that has textures and stuff then that all should be stuffed into a single file

#

and glb and embeded glTF can do that

#

glb would be pretty easy but sadly, u can't use binary data in turbowarp

#

so i need to do embeded glTF support

#

using base64 string

#

but i have no idea how to do it

#

i want a function that can take in the entire text of the embeded glTF file as input and then process it using base64 string to add the model to the scene using the input

#

PWEAZEE HELP ME