Printess supports the upload of 3D models that are stored in the GLTF (GL Transmission format) format. Nowadays most 3D modelers support export of GLTF models. There are 2 common flavors of GLFT files that are both supported by the upload. A GLTF export consists typically of a .gltf file that is basically an index of all resources that are stored seperately on the file system like texture image files and binary files containing all the 3D meshes. In order to upload such GLTF file along with its resources, all files need to be added to the root folder of a compressed ZIP file. This zip file can then be uploaded on the Printess Accoun- Portal. Then, most 3D modeleres also support the export of GLB (GLTF Binary) files. In this format, the model and all its resopurces is stored inside one “big” binary file that acts as a container for the gltf file itself and all the other resources that are referenced inside the GLTF file. These GLB files can be uploaded directly without the need to pack them inside an addational ZIP file.
##Model Upload
Open the printess account portal (Printess account portal) and switch to the 3D section.
Provide a name like “Coffee Mug”
Copy the json below and paste it into the json text field.
{
"format": "glb",
"textures": [
{
"textureName": "",
"fileUrl": "",
"materialName": "",
"faces": [
{
"key": "",
"x": 0,
"y": 0,
"width": 100,
"height": 100
}
]
}
]
}
##Json Configuration
[
{
"name":"Coffee-Mug",
"baseColorTexture":"coffee_c.jpg",
"metallicRoughnessTexture":"coffee1_c.jpg",
"normalTexture":"","occlusionTexture":"",
"emissiveTexture":""
},
{
"name":"Coffee",
"baseColorTexture":"coffee_c.jpg",
"metallicRoughnessTexture":"coffee2_c.jpg",
"normalTexture":"",
"occlusionTexture":"",
"emissiveTexture":""
}
]
Now, go back to the account portal and fill in the missing information using the information of the modelMaterials.json and the image coordinates:
The last thing to do is to provide a name to the face that will be shown inside the designer:
It is possible to specify more than one face so that several preview documents can be merged on the final 3D model.
It is also possible to specify blend modes for each of these faces. Possible blend modes are:
To specify a blend mode, add a blendMode property to your face definition: