+1 vote

This is mostly a workflow question.

I have a bunch of textures in my project folder that are shared across different .blend files. When I export these files to .glb, all textures are bundled with the model. When I export using .gltf plus textures and .bin files, Blender will make copies of my textures and store them all in one folder.

In both of the above cases, I end up with duplicate texture files, and with the project I have going on, this could escalate well beyond several gigabytes of duplicate content.

Is there some way to export to a format from Blender without including the textures, but referencing the already existing files in my project folder?

EDIT: I can see there is an option in the glTF export dialog in Blender to use material placeholders instead of exporting, but that just leaves me with empty material slots and no way to automatically reassign them.

Godot version 3.2.3
in Engine by (15 points)

I wonder how Godot handles this. If you look at Godots .import-Folder, you see it builds a hash for every texture it imports, and links the original hash to the imported texture's hash. If it actually hashes the content of the files, it would be very easy to extend that to transparent de-duplication of files with the same hash on importing, and your problem would just vanish. If you don't get an answer here, you could post on the Godot Github issues and suggest deduplication on import. (if Godot doesn't actually already do it - it might wait with deduplication until you export your project).

That's what I was thinking too, that the size of the final exported project might be unaffected, my concern in this case is the size of my repo :D

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.