3D Model Compression
Requirements
- You have Blender installed locally on your computer
- You have a .glb file you are looking to reduce in size
Expected Outcomes
- You will receive a compressed .glb file that will resize all images to a pre-determined pixel size.
Resizing the .glb File
- Open Blender and import the .glb file you are looking to compress
- In the Editor Type button, located on the upper-left hand corner of Blender, select Text Editor. This will open up the Text Editor UI, where you can select "+ New" located in the upper-centre of Blender

- In the new text editor, copy and paste the below code. Click the run button to execute this Python script.
- You may choose to change the
TARGET_SIZE = (1024, 1024) - This code will resize all images in the file to the target size set above
- You may choose to change the

You have now resized all images in the .glb file and can now export the updated .glb file
Exporting the Compressed Model
- Click
File, thenExport, then.glb/.gltf - There are some common inclusions to be aware of when exporting the updated file:
- Limit to: Selected Objects
- Data: Custom Properties and Punctual Lights
- Lighting Mode: if you do not require a specific Lighting Mode, then select Raw.
- Select the appropriate File Path and File Name, before clicking
Export glTF 2.0
