Hi,

I'm new to Godot, I want to use Godot as a 3D viewer, to load a scenes from the internet, not from a local hard drive, it can't be part of the project or the project will be too big, I want to have many scenes stored on a server, and Godot will load each time a different scene from the server, is it possible to do this with get_tree().change_scene(http:// ... model.tscn ?

Another problem I have with tscn files, is that they are not compressed, if I want to load this file, is there some way to compress it, or at least compress it with zip and then load the zip file and uncompress it with Godot.?

7 days later
  1. I doubt that you can simply load the scene that way. I suggest downloading the scene to a file and load it then via the temporary file.
  2. TSCN Files are not compressed that's correct since they are called "text scene" e.g. human readable format but there is the normal .scn format which you can save them as thus making them non human readable and it should be compressed that way.

Please take a look at: TSCN file format

During import, TSCN files are compiled into binary .scn files stored inside the .import folder. This reduces the data size and speeds up loading.

Thanks, I thought I should zip the tscn file, with all materials and textures and then load the zip file and then do

ProjectSettings.load_resource_pack("path to import.zip")

and I have all the assets in this zip file available as if they are in "res://", that is OK for me. didn't try it yet after exporting it as an application, but in Godot it seems to be working, the loading of the zip file.

Though you said if I have a project in "res://" Godot is importing it into .import as .scn, I placed a .tscn file in res:// and could not file any .scn file in .import. I thought I might be able to use .scn file instead of *.tscn, that is what you seem to be suggesting, but I could not find one.