load tiles from network if they aren't in the local asset directory #19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
not pretty, but it works
cc #18
cc #5 (does not fix this yet, as we aren't caching downloaded assets locally yet)
this is very hacky and requires you to adjust your asset folder. You need to move everything from the
models
subfolder into the mainassets
folder. How this came to be:some/path/x/y.glb.gz
while loading from disk usessome/path/x_y.glb
glb
relative to the directory of theglb
glb
but then sub-assets are loaded from the default path. This is probably a bevy deficiency around custom asset loaders.bevy_http
that uses a placeholder string instead of a slash (but converts that placeholder to a slash before doing the network operation)assets/textures
. So I moved everything up instead of trying to figure this out correctly for now. There are FIXMEs in the code so we don't forget.