AR Code AR Face Filter

VIDEO TUTORIAL: How to compress / reduce the size of a 3D model in Blender (GLB, GLTF, DAE, FBX, OBJ...)?


Tutorials | 09/05/2024 |


Blender is a powerful open-source software designed for creating 3D graphics, animations, and visual effects. It supports a wide array of file formats for importing and exporting, including GLB, GLTF, DAE, OBJ, ABC, USD, BVH, PLY, STL, FBX, and X3D. This adaptability makes it an invaluable tool for diverse 3D projects and workflows. (https://www.blender.org/download/).

How to Optimize 3D File Size for AR Code

We recommend using Blender to convert and compress your 3D models before uploading them to AR Code for an optimal Augmented Reality experience.

A good AR Code experience should load in less than 10 seconds on any mobile device. A typical mobile connection operates at an average of 1 megabit per second.

To compress a 3D file in Blender for AR display, follow these steps:

Step 1: Compress 3D Model Textures

This step requires the use of an image editing software. We will be using the open-source software GIMP. (https://www.gimp.org/downloads/)

First, access the texture files of your 3D model. To do this, use the following format: .gltf + .bin + textures:

  • Import your 3D model into Blender
  • Export your 3D model in .gltf + .bin + textures
  • Open texture files in GIMP
  • Scale images (to 1024X1024 or smaller for higher compression): Image > Scale Image

gimp scale

  • Export textures in *.jpg format with a resolution of 90 (or lower for higher compression): File > Export as

gimp compress

  • Replace the textures in Blender, or simply edit your .gltf file using a text editor and replace the texture formats as needed (e.g., ".png" to ".jpg")
  • textures jpg png

  • Save the file

Step 2: Reduce the Complexity of the 3D Model Using Decimation in Blender

The second major step in reducing the size of a 3D model is to decimate its meshes, which involves lowering the number of polygons while preserving the overall appearance.

  • Import the previously edited *.gltf file into Blender
  • Select a mesh to decimate

decimate blender

  • Proceed with the decimation, aiming to bring each mesh under 50,000 faces. Always check the 3D rendering. Tip: If your model is not animated, you can decimate multiple meshes by joining them first.
  • Export your model in *.glb format by selecting “Apply modifiers" but not the “Compress" option.

apply modifiers blender

You can now upload your 3D model on the AR Code interface.

Uploading a 3D File to AR Code

To publish a 3D model on AR Code, we recommend using a model that is no more than 15MB. A larger model may have higher definition, but it could also cause a slowdown during the AR display. Lower resolution can speed up the display. For more information, see: Uploading 3D models on AR Code, what File Size and Format?

upload 3d file on AR code

Video Tutorial on Compressing/Reducing the Size of a 3D File in Blender

Here is a video that demonstrates the entire process of compressing a 3D file and uploading it to AR Code. It provides a step-by-step guide to completing this task.

Donut demo

To summarize the steps of this tutorial:

Step 1: Compress 3D Model Textures:

  1. Import your 3D model into Blender
  2. Export your 3D model in .gltf + .bin + textures
  3. Open texture files in GIMP
  4. Scale images (to 1024X1024 or smaller for higher compression)
  5. Export textures in *.jpg format with a resolution of 90 (or lower for higher compression)
  6. Edit your .gltf file using a text editor and replace the texture formats as needed (e.g., ".png" to ".jpg")
  7. Save it

Step 2: Decimate Meshes in Blender:

  1. Import the previously edited *.gltf file into Blender
  2. Select a mesh to decimate
  3. Proceed with the decimation, aiming to bring each mesh under 40,000 faces. Always check the 3D rendering.
  4. Tip: If your model is not animated, you can decimate multiple meshes by joining them first.
  5. Export your model in *.glb format by selecting “Apply modifiers" but not the “Compress" option.
  6. You can now upload your 3D model on the AR Code interface.

Optimizing a 3D model for Augmented Reality display requires careful attention to file size and model complexity. By following the outlined steps and using powerful tools like Blender and GIMP, you can create engaging and efficient AR experiences that run smoothly on various devices. Remember to always test your models in different environments to ensure they provide the best possible user experience.

To compress/reduce the size of industrial CAD models, please follow this tutorial: How to compress/reduce the size of an industrial 3D CAD model with MeshLab and Blender?

Create AR Experiences with AR Code's 3D Modeling Tools

AR Code also provides an array of tools to craft immersive and interactive AR experiences. The Object Capture tool facilitates seamless 3D scanning of objects. For branding and promotions, the AR Logo feature allows you to create impressive 3D logos. Additionally, the AR Photo and AR Portal tools enable the creation of engaging photo-based and portal-based experiences, boosting user engagement. Moreover, the AR Face Filter tool offers exciting social AR experiences based on your image or logo.

AR Code Face Filter

Frequently Asked Questions

What is Blender and which file formats does it support for import and export?

Blender is a powerful open-source software for creating 3D graphics, animations, and visual effects. It supports various file formats for importing and exporting, including GLB, GLTF, DAE, ABC, USD, BVH, PLY, STL, FBX, and X3D, making it highly versatile for different projects and workflows.

Why is it important to compress 3D models before uploading them to AR Code?

Compressing your 3D models before uploading them to AR Code is essential for providing a smooth and efficient AR experience. By reducing the file size, you ensure that the AR content loads quickly. This helps maintain user engagement and delivers a more satisfying experience across various devices.

What is the process for compressing a 3D file in Blender to optimize it for Augmented Reality display?

To optimize a 3D file in Blender for Augmented Reality display, follow these steps: first, compress the 3D model's textures using image editing software like GIMP to reduce file size without losing significant detail. Next, decrease the complexity of the 3D model in Blender using techniques such as decimation, which reduces the number of polygons while preserving the overall shape and appearance. This process ensures a balance between visual quality and performance in AR experiences.

What is the recommended file size limit for a 3D model on AR Code?

For optimal performance on AR Code, it is recommended to keep the 3D model's file size below 15MB. While larger models may have higher detail, they can lead to slow loading times and potential performance issues during the AR display. By using lower resolution models, you can ensure a faster and more responsive AR experience for users.

Powering
101,808 AR experiences
Serving
295,450 Scans per day
Trusted by
80785 Creators



Get Started

Start creating, managing, and tracking your AR Code experiences.
Start creating and managing your Augmented Reality Code experiences.

Get Started

AR Code Object Capture
Create AR Codes instantly for any object with 3D scans from your iPhone Pro or iPad Pro.
AR Code Object Capture


Latest Blog Posts

AI Code
AI Code, prompts users to take a photo, which is then analyzed by AI to provide personalized responses or advice, creating an individualized augmented reality experience.
AI Code


Create, manage, edit, and monitor your AR experiences with our advanced features.

Get Started

AR Logo
The AR Logo feature enables the creation of 3D versions of logos from .SVG image files for enhanced brand representation.
AR Logo


facebook twitter instagram linkedin youtube tiktok