glTF-Transform icon indicating copy to clipboard operation
glTF-Transform copied to clipboard

Feature Request: Splitting a GLB File into Multiple Smaller GLB Files

Open CHENJIAMIAN opened this issue 7 months ago • 2 comments

Is your feature request related to a problem? Please describe. Currently, there is no straightforward way to split a large GLB file into multiple smaller GLB files. This can be problematic when dealing with large models that exceed the size limitations of certain platforms or when you need to manage complex scenes more efficiently.

Describe the solution you'd like I would like to see a feature implemented in the glTF-Transform tool that allows users to split a single GLB file into multiple smaller GLB files. This feature should:

  1. Automatically detect and separate meshes, textures, and other assets based on a specified size limit or user-defined criteria.
  2. Generate new GLB files for each separated component, ensuring that each file is a valid and standalone glTF model.
  3. Maintain the integrity and compatibility of the original model, ensuring that textures, materials, and animations are correctly mapped to their respective new GLB files.
  4. Provide options for users to specify the output directory and naming conventions for the generated GLB files.

Describe alternatives you've considered I have considered manually breaking down the model using 3D modeling software, but this is time-consuming and prone to errors. Additionally, I've looked into other glTF processing tools, but none seem to offer this specific functionality.

Additional context This feature would be particularly useful for developers working with large-scale virtual environments or game developers who need to optimize asset loading times. By splitting a large GLB file into smaller, more manageable pieces, developers can improve performance and reduce the load on client devices.

Moreover, this feature could potentially be integrated with existing optimization tools within the glTF-Transform suite, providing a comprehensive solution for managing and optimizing glTF assets.

I believe that this feature would greatly enhance the usability and flexibility of the glTF-Transform tool, making it an even more valuable resource for the glTF community.

CHENJIAMIAN avatar Jul 29 '24 07:07 CHENJIAMIAN