#Importing asset at runtime

13 messages · Page 1 of 1 (latest)

small rivet
#

Hey there !

I'm trying to create a simulation where the user could load its own 3D models (Meshes or PackedScenes, or both). The thing is that i would like the final build to be able to load user-made models at runtime . I managed to load any .glb files from the res:// directory in the editor debug (thanks to the magic that happens when you drag and drop new files into the res:// probably) I also found out that Unreal may be able to do so with a plugin called "glTFRuntime" ( github.com/rdeioris/glTFRuntime )

Has anyone found a way to import custom meshes at runtime when the export has been made ?

Thanks ! 🙂

lapis verge
small rivet
#

Thanks a lot for your reply ! I'm checking this right now. Do you know if there is a way to generate Resource packs (.pck) without using the Godot editor ?

lapis verge
#

but i mean Godot without export templates is pretty small

small rivet
#

Okay, i see. I tried looking in a .pck file, it doesn't seems to be easily made with a simple script. I may should probably give a look on how Godot turns a project into a .pck

lapis verge
small rivet
#

Wonderful !

lapis verge
#

usually you go to export project and then press export only PCK/ZIP with selected resources.

small rivet
#

Yeah, i learnt that thanks to you ! 🙂

#

I'll give it a shot tomorrow. If it works, i'll tag this thread as "solved". Can i tag you in another channel/private messages if i have any question ?

lapis verge
small rivet
#

I appreciate that ! 🙂 Thank you !