Skip to content

Commit eca32b9

Browse files
included tutorials for STEP to GLTF and Changing Material Variants
1 parent c16be99 commit eca32b9

5 files changed

Lines changed: 147 additions & 2 deletions

File tree

docs/learn/3d-bits/3d-assets/preparing-gltf.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,20 @@ Not all CAD or BRep editors can export directly to GLTF. In many cases, you’ll
2727

2828
When you do triangulate, you’ll usually be able to choose how dense the mesh will be. This is a crucial decision: fewer triangles mean the GPU can render your model much faster. The goal is to create low-poly models that still look good. Don’t expect a browser to smoothly handle millions of triangles - especially on older devices. Even high-end GPUs will struggle if you push them too far. Designing a configurator is a lot like designing a video game: performance matters just as much as visual quality. We go deeper into this mindset in [Configurators Are Games](./configurators-are-games.md).
2929

30+
## Video Tutorial: STEP TO GLTF
31+
32+
<div class="responsive-video-container">
33+
<iframe
34+
width="560"
35+
height="315"
36+
src="https://www.youtube.com/embed/7mqd2FLlpcU"
37+
title="From STEP to GLTF - Convert PRO CAD 3D Models For 3D Bits Shopify App"
38+
frameborder="0"
39+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
40+
allowfullscreen>
41+
</iframe>
42+
</div>
43+
3044
# Editing Triangulated Models
3145

3246
Once you have a triangulated model, you’ll probably need to make adjustments. We recommend Blender for this. It’s free, open source, and maintained by some of the most experienced 3D professionals in the industry. Of course, it’s not the only option - commercial tools like 3ds Max can also handle triangulated models perfectly well.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
sidebar_position: 3
3+
title: "Change Materials, Colours and Textures of 3D Shopify Products"
4+
sidebar_label: Changing Materials
5+
description: Change materials, colors, and textures of your 3D products on Shopify with 3D Bits app - in 41 minutes you’ll learn everything you need to know!
6+
tags: [shopify, 3d-bits]
7+
---
8+
9+
# Change Materials, Colours, Textures of 3D Shopify Products
10+
11+
## Blender to 3D Bits Workflow Explained
12+
13+
In this step-by-step tutorial, you’ll discover how to create, assign, and save material variants in Blender, then export them with the help of the [KHR_materials_variants](https://www.khronos.org/blog/streamlining-3d-commerce-with-material-variant-support-in-gltf-assets) extension into a GLTF file using the official [Blender](https://www.blender.org/) add-on from the [Khronos Group](https://www.khronos.org/3dcommerce/). From there, we’ll guide you through the process of importing these material variants directly into the 3D Bits app for Shopify and mapping them to your product page inputs for a seamless shopping experience.
14+
15+
## Video Tutorial
16+
17+
<div class="responsive-video-container">
18+
<iframe
19+
width="560"
20+
height="315"
21+
src="https://www.youtube.com/embed/s00GpQp5Qmg"
22+
title="Change Materials, Colors, And Textures Of 3D Products On Shopify With 3D Bits App"
23+
frameborder="0"
24+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
25+
allowfullscreen>
26+
</iframe>
27+
</div>
28+
29+
With guidance from Matas Ubarevicius, you’ll also learn how to:
30+
31+
With guidance from Matas Ubarevicius, you’ll also learn how to:
32+
33+
- Set up your Shopify product & template using the BITBYBIT VIEWER theme app extension block.
34+
- Dynamically connect 3D Bits metafields with extension block settings inside your Shopify template.
35+
36+
And that’s just the start! The most exciting part is using the 3D Bits Viewer Editor to fully customize your 3D product experience. You’ll learn how to:
37+
38+
- Adjust GLTF asset scale for perfect display.
39+
- Assign material variants to Shopify variant values.
40+
- Change camera positions for the best viewing angles.
41+
- Apply skyboxes, backgrounds, and loading indicators.
42+
- Add dynamic lighting with shadows for realistic effects.
43+
- Save and copy your scene configuration directly to the Shopify product “3D Bits Scene Config” metafield.
44+
- Even add constant rotation to make your products stand out.
45+
46+
By the end of this tutorial, you’ll have everything you need to create engaging, interactive 3D product pages that help your customers explore, customize, and fall in love with your products before they buy.
47+
48+
Car 3D Model Credits: (c) 2015, Khronos Group, Khronos logo. (c) 2017, Khronos Group, 3D Commerce logo. Asset is CCBY 4.0, created by Eric Chadwick of Darmstadt Graphics Group GmbH, 2024. Original asset is public domain "FREE Concept Car 004" by [Unity Fan](https://sketchfab.com/3d-models/free-concept-car-004-public-domain-cc0-4cba124633eb494eadc3bb0c4660ad7e). Download and details here on [GitHub](https://github.com/KhronosGroup/glTF-Sample-Assets/tree/main/Models/CarConcept)

docs/learn/3d-bits/tutorials/preview-3d-scans.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
sidebar_position: 8
33
title: "Tutorial: Using BITBYBIT PREVIEW with a 3D Scanned Product"
4-
sidebar_label: PREVIEW with 3D Scan
4+
sidebar_label: Preview with 3D Scan
55
description: Learn how to use the BITBYBIT PREVIEW block in Shopify's "3D Bits" app to embed a Bitbybit project featuring a 3D scanned product onto your e-commerce store.
66
slug: /shopify/tutorials/preview-3d-scan # Or adjust as needed
77
tags: [shopify, 3d-bits]
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
---
2+
sidebar_position: 6
3+
title: "From STEP to GLTF - Convert PRO CAD 3D Models For 3D Bits Shopify App"
4+
sidebar_label: Preparing GLTF Assets
5+
description: Merchants often have product files created for manufacturing in professional CAD software such as FreeCAD, Fusion 360, CATIA, SolidWorks, Rhino, and others. But preparing these precise CAD models for web configurators is not straightforward.
6+
tags: [shopify, 3d-bits]
7+
---
8+
9+
# FreeCAD → Blender → Khronos Compressor → 3D Bits App for Shopify
10+
11+
## Learn how to prepare the models for web configurators
12+
13+
Merchants often have product files created for manufacturing in professional CAD software such as FreeCAD, Fusion 360, CATIA, SolidWorks, Rhino, and others. But preparing these precise CAD models for web configurators is not straightforward.
14+
15+
To achieve smooth performance and fast loading times, you need to:
16+
17+
* Optimize tessellation to keep triangle counts low without losing detail.
18+
* Minimize the number of meshes - each extra mesh means an extra draw call, which can hurt frame rates.
19+
* Balance texture quality and file size so your models look great while loading quickly.
20+
21+
That’s why it’s essential to choose an efficient workflow for converting STEP files into optimized, compressed GLTF models ready for the web.
22+
23+
## Video Tutorial: STEP TO GLTF
24+
25+
<div class="responsive-video-container">
26+
<iframe
27+
width="560"
28+
height="315"
29+
src="https://www.youtube.com/embed/7mqd2FLlpcU"
30+
title="From STEP to GLTF - Convert PRO CAD 3D Models For 3D Bits Shopify App"
31+
frameborder="0"
32+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
33+
allowfullscreen>
34+
</iframe>
35+
</div>
36+
37+
In this tutorial, Matas Ubarevicius walks you through the full process of converting BREP-based geometry into lightweight, high-quality meshes:
38+
39+
1 - Start in FreeCAD – Import your STEP file, group parts by color, and tessellate them into meshes.
40+
2 - Merge meshes so each one represents a single material.
41+
3 - Export to PLY files and bring them into Blender.
42+
4 - Apply materials in Blender, then export the model as GLTF.
43+
5 - Compress your GLTF using the Khronos Compressor web tool.
44+
6 - Upload to Shopify and import it into the 3D Bits app for seamless store integration.
45+
46+
By the end, you’ll have a streamlined, professional workflow for showcasing interactive 3D products in your online store—fast, optimized, and visually beautiful.
47+
48+
Thanks to [Ironside Armour](https://ironsidearmour.com) for providing the example 3D model.
49+
50+
[Python Macro For Selecting Objects By Colour](https://forum.freecad.org/viewtopic.php?p=733311&sid=b54256709987b58056037b42fab2ed73#p733311)
51+
Author: Forum User Roy_043
52+
53+
```python
54+
import FreeCAD as App
55+
import FreeCADGui as Gui
56+
57+
def getShapeColor(obj):
58+
if not hasattr(obj, "ViewObject"):
59+
return None
60+
if not hasattr(obj.ViewObject, "ShapeColor"):
61+
return None
62+
return obj.ViewObject.ShapeColor
63+
64+
def selectByShapeColor():
65+
doc = App.ActiveDocument
66+
if doc is None:
67+
App.Console.PrintWarning("There is no active document\n")
68+
return
69+
objs = Gui.Selection.getSelection()
70+
if len(objs) != 1:
71+
App.Console.PrintWarning("Select a single source object\n")
72+
return
73+
shape_col = getShapeColor(objs[0])
74+
if shape_col is None:
75+
App.Console.PrintWarning("Object does not have a ShapeColor\n")
76+
return
77+
objs = [obj for obj in doc.Objects if getShapeColor(obj) == shape_col]
78+
Gui.Selection.clearSelection()
79+
for obj in objs:
80+
Gui.Selection.addSelection(obj)
81+
82+
selectByShapeColor()
83+
```

docs/learn/3d-bits/tutorials/viewer-with-3d-scan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
sidebar_position: 4
33
title: "Tutorial: Using BITBYBIT VIEWER with a 3D Scanned Product (Gaussian Splat)"
4-
sidebar_label: VIEWER with 3D Scan
4+
sidebar_label: Viewer with 3D Scan
55
description: Learn how to use the BITBYBIT VIEWER block in Shopify's "3D Bits" app to display a 3D scanned product (Gaussian Splatting model) on your e-commerce store.
66
tags: [shopify, 3d-bits]
77
---

0 commit comments

Comments
 (0)