question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Save buffers separately for re-usability

See original GitHub issue

I would like to use gltf files with separate buffers (bin files). This would save redundant copies of the same data across several gltf files/scenes. For example having something like a street lamp in multiple files. (Not cloned objects in the same file/scene. That works as expected afaict.)

Blender, Godot and Vulkan cpp examples I’ve found seem to handle this fine with manually made files. However nothing seems to save files like this. Everything is loaded into a single buffer and exported as a single buffer (embedded or in a separate bin file).

I am able to add a extra (custom property in Blender) uri field to nodes/objects/cubes with the buffer:uri filename on import, but haven’t gotten to exporting separate files as it looks like everything was made with the intention of a single blob buffer.

Maybe this is by design and I’m trying to use gltf in a way it’s not meant for. But like I said reading files this way seems to behave as expected.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
donmccurdycommented, Oct 30, 2022

An option for doing this post-export would be:

npm install --global @gltf-transform/cli
gltf-transform partition in.glb out.gltf --meshes
0reactions
zlicecommented, Oct 26, 2022

I’m not well versed in Blender. When I import I get a box that says merged verticies, which if clicked I could see behavior like this with overlapping shapes.

blend_import

When exporting gltf, I could see an extra ‘preserve bin files’ or ‘split buffers per node’ option in the drop down.

blend_exp

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is it a common practice to re-use the same buffer name for ...
The compiler will reuse the same memory location for both, while giving you a perfectly legible name. As an alternative, call it name...
Read more >
find-name-dired : save selection of files for reuse?
You seem to be asking two different questions: (1) save the names of the files in the resulting Dired buffer and (2) "specify...
Read more >
Effects of Reusing Gel Electrophoresis and Electrotransfer ...
Our results suggest that EB can be reused for at least 5 times without compromising the electrophoretic separation of mixture of proteins in...
Read more >
Protocol buffers allows you to reuse the memory of your ...
Protocol buffers allows you to reuse the memory of your objects. You can simply reuse the object where you parse your message into....
Read more >
Does it make sense to reuse buffers/chemicals in Molecular ...
I have reused conventional transfer buffer (with 10% MeOH, 0.01% SDS) three times with no problem at all--I keep the buffer after use...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found