Skip to main content
Skip table of contents

3D / GLB

Sample files

Here are all the relevant files used in the tutorial: GLB-Beispiel-rissc.zip

https://pixabay.com/photos/seamless-tileable-texture-cardboard-1807376/

Live example

Here you can view the sample file in printformer:
Box in printformer

Step 1: Create your model in Blender

Bildschirmfoto 2025-03-17 um 10.32.25.png

Step 2: Add an image as material

  1. Select the 3D model and switch to the Materials tab.

  2. Add a new material.

  3. Rename the material to OUTMAT1. For multi-page templates, the integer corresponds to the page in the template. You can therefore also set multiple materials to map all pages of the editor.

  4. To create a precise mapping, the added image must have the same dimensions as the template in printformer (including bleed, if applicable).

    Bildschirmfoto 2025-03-17 um 10.33.13.png
  5. You can also add additional materials. These have no relation to the printformer. Therefore, the naming is not relevant. In this example, the box is given an interior with a wood look.

    Bildschirmfoto 2025-03-17 um 10.33.38.png

Step 3: Map the image to the 3D file in UV editing

  1. Switch to UV-editing-mode.

  2. Here, you usually start with the finished product. So you should exclude the bleed additions.

Bildschirmfoto 2025-03-17 um 10.30.58.png

FYI Texture:

Use colored auxiliary texture: To map a folding box cleanly, we recommend using a colored texture. This makes orientation easier and is displayed when you first load it in the Printformer Editor.

Export GLB file: When you first open it in the Printformer Editor, your colored help texture will be visible for a brief moment.

Texture is replaced in the editor: The editor replaces the texture in less than a second with the current version of the template, which often has a neutral (white) background.

Insert final texture: After mapping, replace the auxiliary texture with a color-matched version with the same dimensions. This will make it visible directly in the 3D view in the editor.

Step 4: Export the model as GLB

There are several relevant settings for exporting. We have compiled the relevant ones for you in a preset. printformer.py You must save this in the correct directory. If you do not yet have a preset for glTF, the export_scene.gltf folder does not exist. Either create a preset yourself beforehand or create the folder yourself. You can then save the file in the following directory:

MAC

Replace USERNAME and VERSION respectively

CODE
/Users/USERNAME/Library/Application Support/Blender/VERSION/scripts/presets/operator/export_scene.gltf/

WINDOWS

Replace USERNAME and VERSION respectively

CODE
C:\Users\USERNAME\AppData\Roaming\Blender Foundation\Blender\VERSION\scripts\presets\operator\export_scene.gltf/

  1. When you are satisfied with the result, click onFile > Export > glTF (.glb/gltf).

  2. Now select the preset printformer.

    Bildschirmfoto 2025-03-11 um 15.38.04.png

    Bildschirmfoto 2025-03-11 um 15.38.42.png
  3. Select the storage location and click Export.

Step 5: Customize the initial view

The initial orientation and size of your model often need to be adjusted.

Bildschirmfoto 2025-03-17 um 10.47.15.png

In the example, an empty cube was set as the parent so that the animation keyframes did not have to be readjusted. Scale and align your model and upload the .glb file again.

Bildschirmfoto 2025-03-17 um 10.51.40.png

Now the initial view should also be correct.

Bildschirmfoto 2025-03-17 um 10.47.26.png

FYI - Advantages of GLB over X3D

Camera: You can define and export fixed cameras. These can be selected later in the 3D preview.

Exposure: Exposure added by you can be exported.

Animation: Animations created in Blender are played back in the 3D preview.

Settings: Additional settings for GLB files can be defined in the template configuration.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.