A lesson is completed when you tick it, when you watch its video to the end or when you score 80% on its quiz. The certificate is issued online after the final assessment, from a score of 32 out of 40.
Lesson 34, module 9: 3D Exporting to glTF, FBX or USDZ and slimming down the model A 30 MB 3D model: why does the product page take ten seconds to load? One format per destination. GLB: the web, a single file FBX: Unity, Unreal, Blender USDZ: augmented reality on iPhone STL or 3MF: printing Two questions are usually enough. [Diagram: Which format to export?] 1. Is the model going on a web page or an online shop? 2. Must it open in augmented reality on iPhone with its animations? Yes to all: GLB for the page, plus a USDZ supplied for iPhone; FBX for Unity or Unreal, STL or 3MF for printing. It's the textures that weigh the most, almost always. [Diagram: What makes a GLB file heavy] Textures Geometry Animations Structure Slim down the top layer first: it's almost always the culprit. One command to slim it down, tested on a 3.77 MB model. Prompt: gltf-transform optimize casque.glb casque-web.glb --compress meshopt --texture-compress webp --texture-size 1024 Result: casque.glb (3.77 MB) → casque-web.glb (about 545 KB). Geometry compressed with Meshopt, textures in WebP at 1024 px max. Before delivering, four checks. Real-world scale and origin at the bottom Validator with no errors File size under the destination's target Original archived, not slimmed down Inspect, slim down, validate, test: a short loop. [Diagram: The slimming loop] 1. Inspect 2. Slim down 3. Validate 4. Test Two or three rounds are enough; always keep the original intact. In the exercise, you prepare three files for a lighting manufacturer.
Your turn: Three files for a lighting manufacturer The written lesson, worked exercise and quiz are below the video.
Lesson 34 of 50 · module 9, 3d
Export to glTF, FBX or USDZ and slim down the model
Each destination has its format: GLB for the web, FBX for Unity, Unreal and Blender, USDZ for augmented reality on iPhone, STL or 3MF for printing. Export at real size, origin at the bottom, then reduce the GLB with glTF Transform: a 3.8 MB model drops to about 0.5 MB.
24 min of reading
1 min 57 of video
6 diagrams
1 demande to copy
3 exemples pratiques
4 exercices answerss
5 questions
1 ressource
By the end of this lesson, you will know how to
Choose the export format for your 3D model's destination
Export a model at real-world size, origin at the bottom, from Meshy or Blender
Reduce and validate a GLB file with glTF Transform, according to what the destination accepts
What’s covered
One format per destination
Exporting properly from Meshy or Blender
What takes up space in a model
Reduce file size with glTF Transform
3 worked examples, followed from start to finish
Exercise with answers · Three files for a lighting manufacturer
3 practice exercises, from guided to demanding cases
The quiz
Key points
GLB for the web, FBX for Unity, Unreal and Blender, USDZ for augmented reality on iPhone, STL or 3MF for printing.
Export at real-world size, with the origin at the base of the object (above it for a hanging object).
Reduce the textures first: 1,024 px is enough on a phone, 2,048 px for a close-up.
Choose Meshopt for an animated object, Draco for a static object, and no extension when the platform converts the file.
Validate each file, test it on a real phone and archive the unoptimised original.
The same 3D object rarely goes to just one destination. The lamp modelled for the product page is also used for the catalogue render, the augmented reality view on iPhone and sometimes a printed model for the trade show. Each destination reads a different format, and each has its own size limit. A badly chosen file won’t open; a file that’s too heavy opens too late, and the buyer has gone. This lesson shows you how to export the right format at the right scale, then optimise a GLB with tested commands.
One format per destination
Formats exported by Meshy and their uses (checked 15 November 2026)
Format
What it contains
Destination
GLB
A single file: mesh, embedded textures, animations
Websites, online shops, web viewers, Android
FBX
Mesh, skeleton, animations; textures as separate files
Unity, Unreal, Blender, animation software
OBJ
Mesh and separate textures, limited features, no animation
Compatibility with older software
USDZ
Apple archive: mesh, textures, animations
Augmented reality on iPhone and iPad (AR Quick Look)
STL
Geometry only
Single-colour 3D printing
3MF
Geometry; colour only through multicolour printing
3D printing, colour included
BLEND
Blender file
Retouching, rendering, scene assembly
DXF
Mesh saved as faces
CAD software
Which format should you export?
1Is the model going on a web page or an online shop?
No FBX for Unity, Unreal or Blender, STL or 3MF for printing, BLEND for editing.
2Does it need to open in augmented reality on iPhone with its animations?
No GLB only: one file, textures and animations included.
Yes to allGLB for the page, plus a supplied USDZ for iPhone; FBX for Unity or Unreal, STL or 3MF for printing.
One question per destination; most projects export two or three.
glTF 2.0 is the Khronos Group’s open standard for transmitting 3D models, published as international standard ISO/IEC 12113:2022. GLB is its binary, single-file version: it is the format to aim for with anything displayed in a browser. glTF also accepts textures compressed in KTX2 format, which use less memory on phones. USDZ, Apple’s format, is still needed for animated augmented reality on iPhone; the next lesson shows when a page can generate it by itself.
Exporting properly from Meshy or Blender
Download at real size from Meshy
Open the model in your generations, then use the download button next to the viewer.
Choose the format: GLB for the web, FBX for a game engine or Blender, USDZ for iPhone, STL or 3MF for printing.
In the download settings, turn on resizing (paid plan), enter the real height and choose the unit.
Set the origin at the bottom, so the object sits on the floor in viewers and in augmented reality.
Download, then name the file with the object, height and version: lampe-gres-48cm-v1.glb.
Setting labels and locations may vary with the application version. In Blender, glTF export is in the File menu, under Export, choosing the binary format (a single .glb file). For USDZ, choose the Universal Scene Description export and give the file the .usdz extension: Blender produces an archive containing the USD file and its textures. Its texture downsizing option for USDZ (from 256 to 4,096 px, or a custom size) avoids a file too heavy for iPhone. Skeletons, animations within the scene’s frame range and shape keys are exported; modifiers other than the armature are not.
What takes up space in a model
What takes up space in a GLB file
Textures
Colour, normals, roughness, metalness, occlusion: often more than two thirds of the file size.
Geometry
Vertices and faces; it is compressed with Draco or Meshopt.
Animations
Clip keyframes; Meshopt compresses them, Draco does not.
The structure
Nodes, materials, names: a few kilobytes.
Reduce the top layer first: it is almost always the culprit.
On the Khronos sample helmet we tested, five 2,048 px textures (colour, normals, metalness and roughness, occlusion, emission) account for most of the 3.77 MB. Reducing the textures to 1,024 px divides their area by four; for a view on a phone screen, the difference isn’t visible. For a close-up on a computer, keep 2,048 px. Geometry comes next: Draco compresses it heavily but doesn’t touch animations; Meshopt compresses both geometry and animations, which makes it the right choice for an animated character.
Reduce file size with glTF Transform
Install glTF Transform and inspect a modelTerminal
# Installer l'outil en ligne de commande (Node.js requis), une fois pour toutes
npm install --global @gltf-transform/cli
# Afficher le contenu du modèle : scènes, maillages, matériaux, textures et leur poids
gltf-transform inspect lampe-gres-48cm-v1.glb
# Vérifier le fichier contre la norme glTF (aucune erreur attendue)
gltf-transform validate lampe-gres-48cm-v1.glb
glTF Transform is a free tool under the MIT licence; version 4.5.1 checked on 15 November 2026. It uses the Sharp library for images: if installation fails, follow the Sharp installation page.
Reduce a GLB for a page that uses model-viewerTerminal
# Tout en une commande : géométrie et animations compressées avec Meshopt,
# textures recompressées en WebP et limitées à 1 024 px de côté
gltf-transform optimize lampe-gres-48cm-v1.glb lampe-gres-48cm-web.glb \
--compress meshopt --texture-compress webp --texture-size 1024
# Variante pour un objet sans animation : Draco compresse davantage la géométrie seule
gltf-transform optimize lampe-gres-48cm-v1.glb lampe-gres-48cm-web.glb \
--compress draco --texture-compress webp --texture-size 2048
Tested on 15 November 2026 on the Khronos sample helmet: 3.77 MB brought down to about 545 KB with the first command, 1.34 MB with the second. The optimize command also simplifies the mesh by default, with a low tolerance: always compare the result with the original. The resulting file uses extensions (Meshopt, Draco, WebP) that the viewer must be able to read: model-viewer reads them, another viewer may not.
Reduce a GLB for a shop that wants a file with no extensionsTerminal
# Réduire les textures à 1 024 px de côté au plus, sans compresser la géométrie
gltf-transform resize lampe-gres-48cm-v1.glb lampe-etape1.glb --width 1024 --height 1024
# Recompresser les textures en JPEG, qualité 80
gltf-transform jpeg lampe-etape1.glb lampe-gres-48cm-boutique.glb --quality 80
# Contrôler : aucune erreur, textures en image/jpeg de 1024x1024
gltf-transform validate lampe-gres-48cm-boutique.glb
gltf-transform inspect lampe-gres-48cm-boutique.glb
Tested on 15 November 2026: 3.77 MB brought down to 1.25 MB, no validator errors, no compression extensions. This is the safe route when the platform converts the file itself, for example to generate a USDZ.
The 15 November 2026 test on the Khronos sample helmet (3.77 MB)
Processing
Resulting size
Extensions added
Use for
1,024 px JPEG textures, geometry untouched
1.25 MB
None
Shop that converts the file, maximum compatibility
Draco, WebP textures at 2,048 px
1.34 MB
Draco, WebP
Static object viewed close up
Meshopt, WebP textures at 1,024 px
About 545 KB
Meshopt, WebP
Page with model-viewer, animated or static object
The slimming loop
1Inspect
Texture size, vertex count, extensions used.
2Reduce file size
Textures reduced and recompressed, geometry compressed.
3Approve
The glTF validator must report no errors.
4Test
On a real phone, over 4G: loading, rendering, animation.
Two or three passes are enough; always keep the original intact.
Have ChatGPT or Claude read the inspection output
You are a 3D web developer. Here is the output of the “gltf-transform inspect” command on our model: [paste the output].
Destination: [Shopify product page / page with model-viewer / mobile app], target size [number] MB, object [animated or not].
Task: 1. say what takes up the most space (textures, geometry, animations), using the figures from the output; 2. suggest the glTF Transform command or commands to run, using only inspect, validate, optimize, resize, jpeg, webp, draco, meshopt; 3. say which extensions the resulting file will use and whether the destination needs to be able to read them.
Do not invent any options: if you are unsure about an option, tell me to check with “gltf-transform <commande> -h”.
Roughly what you should get
A diagnosis with figures (for example “five 2,048 px textures, about 80% of the size”), one or two complete commands and the list of extensions. Check each suggested option against the command’s help before running it, then run the validator again.
Always archive the uncompressed original alongside the delivered versions, with the prompt and the settings: a texture reduced to 1,024 px cannot be recovered, and one day the client will ask for a close-up. This is the fifth point of the pre-release check: delivery.
Mistakes to avoid
Uploading the GLB to the shop straight out of the tool, with 4,096 or 8,192 px textures.
The file weighs tens of megabytes, the 3D view takes several seconds to load on mobile and the platform’s recommendations are exceeded.
Reduce the textures to 1,024 or 2,048 px and recompress them, then check the file size and validate the file.
Compressing an animated character with Draco thinking it will reduce everything.
Draco only compresses geometry: animations keep their full weight.
Use Meshopt for an animated object, and Draco only for a static one.
Delivering a GLB with compression extensions to a platform that converts the file itself.
The conversion may fail or ignore extensions it cannot read, and the error only shows up after the page goes live.
For a platform that converts the file, deliver a GLB without extensions, with textures reduced to JPEG.
Exporting without setting the real-world size or the origin.
In augmented reality, the object appears giant, tiny or sunk into the floor, and the buyer can no longer judge its size.
Enter the real height when downloading and place the origin at the base (at the top for a hanging object).
3 SME situations followed from start to finish: the prompts exactly as they were written, the model answer to aim for, and what was checked before sending.
Example 1
A product page that goes from 8 seconds to under 2, at a sofa manufacturer
Olivier is web project manager at a 70-employee sofa manufacturer near Cholet. The 3D views on his WooCommerce shop, built with model-viewer, take about 8 seconds to appear on 4G: the GLBs delivered by the agency weigh 18 to 25 MB.
The sofa before and after
Before
21.4 MB
4,096 px PNG textures
About 8 s on 4G
After
About 1.6 MB
WebP 1,024 px, Draco
Under 2 s on 4G
Request 1
You are a 3D web developer. Here is the output of “gltf-transform inspect” on our three-seater sofa: 1 mesh of 180,000 vertices, 1 material, 5 PNG textures at 4,096 × 4,096 px (colour, normals, metalness and roughness, occlusion, empty emission), total size 21.4 MB, no animation.
Destination: page with model-viewer, target size 2 MB. Suggest the commands, using only inspect, validate, optimize, resize, jpeg, webp, draco, meshopt.
Model answer
Diagnosis: the five 4,096 px textures make up most of the file size; the empty emissive texture is unnecessary.
Suggested command:
gltf-transform optimize canape-3p-v1.glb canape-3p-web.glb --compress draco --texture-compress webp --texture-size 1024
Then: gltf-transform validate canape-3p-web.glb
Extensions used: Draco and WebP, both read by model-viewer.
To check: the optimize command also removes single-colour textures, so the empty emissive texture should disappear.
Olivier runs the command: the sofa drops to about 1.6 MB. He compares the fabric closely with the original: the velvet texture remains legible at 1,024 px on a phone.
Request 2
Write a five-line delivery brief for the agency that produces our models: GLB at real size, origin at the base, textures no larger than 2,048 px, a single material, unoptimised original delivered separately, naming as product-dimension-version.
Model answer
3D model delivery instructions
1. One GLB per product, at real size in centimetres, origin centred at the base.
2. Textures of 2,048 × 2,048 px at most, a single material unless agreed.
3. The uncompressed original delivered separately, in the same folder.
4. Name: product-dimension-version, for example canape-3p-220cm-v1.glb.
5. The file passes the glTF validator with no errors before delivery.
The instructions are attached to the agency’s purchase order. Final slimming is still done in-house, depending on the destination page.
What was checked before sending
The delivery: size down from 21.4 MB to about 1.6 MB, no validator errors.
Defects: velvet texture compared closely with the original on a phone.
The brief: real-world size and origin checked in augmented reality in a living room.
Ballpark: loading in under 2 seconds instead of 8, and half an hour of processing for the whole catalogue of 14 sofas.
Example 2
Board game pieces exported for printing and for Unity
Anaïs is the founder of a three-person board game publisher in Toulouse. Her figurines generated in Meshy have two uses: resin-printed prototypes for in-store testing, and a digital version of the game developed in Unity by a contractor.
One figurine, two exports
1Meshy model
Rigged and textured figurine.
2STL 40 mm
Geometry only, for resin.
3FBX and textures
Rig and animation for Unity.
4One ZIP per figurine
Nothing gets lost along the way.
Request 1
I need to export 12 figurines, 4 cm tall, generated in Meshy for two uses: single-colour resin printing, and import into Unity with an attack animation for each. For each use, give me the format, the download settings and the file naming.
Model answer
Printing: STL (geometry only, enough for single-colour resin), resized to 4 cm high, origin at the bottom, named figurine-chevalier-4cm-print-v1.stl.
Unity: FBX, which keeps the skeleton and animation, textures as separate files delivered in the same folder, at the game’s real-world scale, named figurine-chevalier-unity-v1.fbx with its textures folder.
To check: the thickness of weapons and spears for printing, often too thin at 4 cm.
Anaïs finds out the printer wants millimetres: she sets the unit to millimetres when downloading, 40 mm.
Request 2
Write the message to the Unity contractor to go with the 12 FBX files: folder contents, scale, animation names, and what they should flag to me.
Model answer
Hello,
Here are the 12 figurines in FBX format, each with its own texture folder. They are at board scale, with the origin at the base. Each file contains an animation named “attack”. The skeleton follows the standard humanoid model exported by Meshy.
Please let me know about any figurine whose animation distorts or whose textures don't load.
Anaïs
The contractor reports that two figurines have missing textures: they had been moved out of their folder. Anaïs now delivers one ZIP per figurine.
What was checked before sending
The delivery: STL in millimetres for the printer, FBX with textures for Unity, one ZIP per figurine.
Defects: weapon thickness checked before printing.
Rights: figurines generated under the Pro plan, private models.
Ballpark: an hour of exporting for 24 files, instead of a week of back-and-forth with the printer and the contractor.
Example 3
An animated USDZ for an estate agency’s window
Stéphane is a negotiator and handles communications for an 8-person estate agency in Arcachon. He wants a QR code in the window to open, on iPhone, the animated 3D model of a new-build development, for which the developer has supplied the GLB with an animation of the roof opening.
From the developer’s GLB to the QR code
10 hImport
14 MB GLB in Blender.
10 h 20First export
USDZ without animation: frame range too short.
10 h 40Second export
Frame range extended, textures at 1,024 px.
11 hShop window
QR code and notice in place.
Request 1
You are a 3D artist. I have a 14 MB GLB with an animation, supplied by a developer. I want an animated USDZ for augmented reality on iPhone. Give me the steps in Blender, without inventing any menus, and tell me what is likely to be lost.
Model answer
1. Import the GLB into Blender from the File menu, under Import, glTF 2.0.
2. Play the animation in the timeline and check the scene's frame range: only that range will be exported.
3. Export from the File menu, under Export, as Universal Scene Description, with a file name ending in .usdz.
4. Tick animation export and reduce textures to 1,024 px with the USDZ texture downscaling option.
Risks: modifiers other than the armature are not applied; absolute shape keys are not exported. Test on a real iPhone.
The first USDZ does not animate: the scene’s frame range ended before the animation finished. Stéphane extends it and re-exports.
Request 2
Write the 30-word text to go with the QR code in the window, stating that the model is a non-contractual illustration supplied by the developer.
Model answer
Tour the residence from home: scan this code with your iPhone and place the model on your table. Non-contractual 3D illustration, supplied by the development’s developer.
The notice protects the agency: a model of a new development is not the property delivered.
What was checked before sending
The delivery: USDZ opened on two different iPhones, full animation.
Transparency: “illustration not contractually binding” notice in the shop window.
Rights: model supplied by the developer, use authorised in writing.
Ballpark: an hour of conversion instead of ordering a version specific to the developer, with a week’s lead time.
Nathalie manages the website of a 22-employee rattan pendant light manufacturer in Langon. Using Meshy on the Pro plan, she has produced a GLB of the flagship pendant: 38 cm in diameter, 9.6 MB, five 4,096 px textures, no animation. She needs one file for the Shopify product page, one for the “Nos créations” page built with model-viewer, and one for the augmented reality view on iPhone. Prepare the three exports and the commands, and explain how to check them.
For each destination, set the format and the target file size.
Check the scale and origin: a pendant light hangs from the ceiling.
Write the glTF Transform commands for each file.
Explain how to get the USDZ.
List the checks and the file naming.
See the answers
The three files
Destination
Format
Processing
Target size
Shopify product page
GLB without extensions
Textures reduced to 2,048 px then JPEG, geometry untouched
About 4 MB at most
Page with model-viewer
GLB
Draco (static object), 1,024 px WebP textures
1 to 2 MB
Augmented reality on iPhone
USDZ
Blender export to .usdz, textures reduced to 1,024 px
As light as possible
Scale and origin: 38 cm diameter set at download. For a pendant light, an origin at the bottom is wrong: the object is designed to hang. glTF Transform can place the pivot point above the object (center command, pivot option); in Meshy, the origin can be set at the bottom or the centre. Nathalie chooses the centre in Meshy, then checks the position in the viewer.
The commands for both GLBsTerminal
# 1. Fiche produit Shopify : textures 2 048 px en JPEG, sans extension de compression
gltf-transform resize suspension-rotin-38cm-v1.glb etape1.glb --width 2048 --height 2048
gltf-transform jpeg etape1.glb suspension-rotin-38cm-shopify.glb --quality 80
# 2. Page avec model-viewer : objet fixe, donc Draco, textures WebP de 1 024 px
gltf-transform optimize suspension-rotin-38cm-v1.glb suspension-rotin-38cm-web.glb \
--compress draco --texture-compress webp --texture-size 1024
# 3. Contrôle des deux fichiers
gltf-transform validate suspension-rotin-38cm-shopify.glb
gltf-transform validate suspension-rotin-38cm-web.glb
Woven rattan is a case where optimize’s automatic simplification can erase strands: compare closely with the original, and rerun with the --simplify false option if the weave degrades.
USDZ: download it from Meshy, or open the original GLB in Blender and export as Universal Scene Description with the .usdz extension, reducing textures to 1,024 px. Check: open all three files, including the USDZ on a real iPhone, record file sizes, no validator errors, 9.6 MB original archived with the settings. Cost: no credits.
Practise
Three more exercises, from the most guided to the most demanding. The material is provided in full: copy it into your tool, then check your work against the criteria before opening the answers.
Level 1 · guided10 min
Match each destination to its format
For each of the six requests, give the export format and the origin setting.
The material to work on
1. A 3D view of a teapot on a Shopify product page.
2. A wall light in augmented reality on iPhone, no animation.
3. An animated robot imported into Unreal by a studio.
4. A single-colour printed trophy for an awards ceremony.
5. A vase to be edited and rendered in Blender.
6. A multi-colour printed figurine.
Check your work
1: GLB, origin at the base
2: USDZ, or GLB if the page generates the USDZ; check the origin is against the wall
3: FBX, skeleton and animation
4: STL, real height in millimetres
5: BLEND or GLB
6: 3MF from multi-colour printing
See the answers
Request
Format
Origin and scale
1. Teapot
GLB without extensions, JPEG textures
At the base, real size
2. Wall light
USDZ supplied, or generated by the page
Against the wall: wall placement in the viewer
3. Robot
FBX
At the base, game scale
4. Trophy
STL
At the base, in millimetres
5. Vase
BLEND or GLB
At the base
6. Colour figurine
3MF
At the base, in millimetres
The teapot file, ready for ShopifyTerminal
# Textures limitées à 2 048 px puis JPEG qualité 80, sans compression de géométrie
gltf-transform resize theiere-fonte-v1.glb etape1.glb --width 2048 --height 2048
gltf-transform jpeg etape1.glb theiere-fonte-shopify.glb --quality 80
gltf-transform validate theiere-fonte-shopify.glb
Cost: no credits.
Level 2 · independent18 min
Reduce the size of an e-bike GLB
From the inspection output, say what takes up the most space, write the commands for the model-viewer page and for the Shopify product page, then estimate the rough saving.
The material to work on
OUTPUT OF “gltf-transform inspect velo-urbain-v1.glb” (summary)
Meshes: 3 (frame, wheels, handlebars), 240,000 vertices in total
Materials: 4
Textures: 8 in PNG
- 4 at 4096 × 4096 (frame colour and normals, wheel colour and normals)
- 4 at 2048 × 2048 (metalness and roughness, occlusion)
Animations: 1 (wheel rotation, 3 s)
Total size: 31.8 MB
DESTINATIONS
A. “Our bikes” page with model-viewer, target size 3 MB, wheel rotation kept
B. Shopify product page, about 4 MB
Check your work
The diagnosis points to the textures, especially the four at 4,096 px
Command A uses Meshopt, because the object is animated
Command B downsizes the textures and converts them to JPEG without a compression extension
Both files pass the validator
The four materials are flagged: Shopify asks for a single one unless needed
See the answers
The commandsTerminal
# A. Page model-viewer : l'objet est animé, donc Meshopt (Draco ne compresse pas les animations)
gltf-transform optimize velo-urbain-v1.glb velo-urbain-web.glb \
--compress meshopt --texture-compress webp --texture-size 1024
gltf-transform validate velo-urbain-web.glb
# B. Shopify : textures à 2 048 px au plus, en JPEG, géométrie intacte
gltf-transform resize velo-urbain-v1.glb etape1.glb --width 2048 --height 2048
gltf-transform jpeg etape1.glb velo-urbain-shopify.glb --quality 80
gltf-transform validate velo-urbain-shopify.glb
Reducing 4,096 px textures to 1,024 px removes fifteen-sixteenths of their area: the expected saving runs to tens of megabytes. Weigh the result rather than assume it.
The four materials are an issue for Shopify, which asks for a single one unless there is a specific need: flag it to the graphic designer, who can merge them in Blender. Cost: no credits.
Level 3 · demanding case35 min
The export specification for a 40-product catalogue
Write the export specification for a garden products distributor: formats by destination, target file sizes, standard commands, naming, archiving and checks. Then have ChatGPT or Claude produce a script that applies the command from the model-viewer page to a whole folder, and explain how you check it before running it.
The material to work on
CONTEXT
Garden products distributor, 30 staff, Agen. 40 products modelled in Meshy on the Pro plan: 32 static objects (pots, benches, solar lamps), 8 animated objects (fountains, opening parasols).
DESTINATIONS
- Shopify shop: 3D view on every product page
- “The garden in 3D” page built with model-viewer: all 40 products
- Augmented reality on iPhone for the 8 animated objects
- Trade show: 5 products printed at 1:10 scale in one colour
CONSTRAINTS
- Target size: 4 MB for Shopify, 2 MB for the model-viewer page
- The originals stay archived on the company file server
Check your work
Static and animated objects are processed differently (Draco or Meshopt)
Shopify receives GLBs without compression extensions
The 8 animated objects have a supplied USDZ, exported from Blender or Meshy
The 5 showroom models are in STL, at 1:10 scale, in millimetres
Naming and archiving of the originals are set
The script is reviewed and tested on a single file before being run on the folder
See the answers
Destination
Format and processing
Target size
Name
Shopify
GLB, 2,048 px JPEG textures, no geometry compression
4 MB
produit-dimension-shopify.glb
model-viewer page, static objects
GLB, Draco, WebP 1,024 px
2 MB
produit-dimension-web.glb
model-viewer page, animated objects
GLB, Meshopt, WebP 1,024 px
2 MB
produit-dimension-web.glb
iPhone, animated objects
USDZ supplied, 1,024 px textures
As light as possible
produit-dimension.usdz
Trade show
STL at 1:10 scale, in millimetres
Not applicable
produit-1-10-print.stl
The script request
Write a bash script, with comments in English, that goes through the “originaux” folder and, for each .glb file: 1. runs “gltf-transform optimize <fichier> web/<nom>-web.glb --compress meshopt --texture-compress webp --texture-size 1024” if the file name contains “anime”, otherwise the same command with “--compress draco”; 2. runs “gltf-transform validate” on the result; 3. writes to a rapport.csv file the name, the size before and after in MB, and OK or ERREUR depending on the validation. Never modify the files in the “originaux” folder.
Roughly what you should get
A script of about twenty lines, with a loop over the files, a test on the name and writing of the report. Check before running it: that the output files go into “web”, never into “originaux”; that the options are exactly those from the lesson. Test it first on a copy of two files, then open both results.
Checks: one file in five opened on a phone, all files validated, sizes recorded in the report, originals intact and backed up. Cost: no credits, about two hours for the specification and the first pass.
Every prompt and request to copy from the course (image, video, voice, music and 3D), including answers, worked examples and practice exercises, organised by module and lesson, with filters to find the one you need.
For each lesson, the main exercise and the three graded practice exercises with their materials, to do on paper or alongside the creative tools; all the answers are grouped together at the end.
The course’s worked examples, medium by medium: the situation, the prompt exactly as it was written, the typical result and what was checked before release.
All the lessons in a single PDF: objectives, written course with its diagrams, tables and requests, common mistakes, exercise and key takeaways. The practice exercises and answers are in the workbook, the examples in the collection.
Your notes stay on this device; they are not sent anywhere.
A question for the tutor
A result that doesn’t match the model answer, a prompt that gets you nowhere, a case specific to your business: write to us with your prompt and the response you got. A Bonbay Académie trainer replies within 24 working hours, on your case.