Model preparation Guide
Initial info
This guide contains information about preparing 3D models for use in the twinzo app. It is important to keep in mind that all the information mentioned bellow depends on specific use cases. Any Issues which were not mentioned or are unable to be fixed using this guide need to be discussed on individual basis. In general every step helps 3D model to be processed faster for Twinzo app.
Mentioned criteria
Usable amount of vertexes (Depends on use case mentioned bellow)
No inverted polygon faces (Depends on use case mentioned bellow)
No duplicated vertexes
Use instanced assets instead of unique ones
No empty objects, parents, bones, unnecessary stuff
Maximum object number in single model should not be higher than 6K (We are able to go higher but it can make model unusable for us)
Easy and understandable named materials, textures
Keep maximum number of materials/textures per single object low as possible (Depends on use case)
Correctly created and assigned UVs
Small final file size (On automatic Twinzo platform system file size limit is 100MB)
Supported formats
Criteria divided by use case
Single model used in app
Non Scanned or Lidar based:
If we want to visualize only single object in app, usually criteria tolerance are much higher. For example, this single machine has over 500K vertices. Which is top limit in terms of vertices amount. Everything higher will be most likely not usable. As well amount of materials/textures on single object can be higher.
Scanned or Lidar based:
For a Scanned or Lidar based meshes (In case of Lidar - Point cloud converted to mesh), criteria are not that strict like for their counterparts. Usually if your model has number of vertices under 1.5M / 2M and number of materials with textures are not exceedingly high (100+), than your model should be fine (Depends on your smartphone performance)
Multiple assets used in app
If we want to visualize assets in app. For example something which is part of factory/office and it appears multiple times. Criteria tolerance are much lower. For example palette boxes, press machines, cranes, furniture etc... Limits are:
2K (or lower) vertices with simple material or textures with/out UVs.
3K/4K (or lower) vertices when is important to visualize model in more detail and it doesn’t appear numerous times.
Models which are visualized 5, 10 times in one scene without any additional used assets can have higher amount of vertices with higher texture resolution and more UVs. For example parts of cities or factory/office complex.
Visualizing multi-floor building
If you want to visualize building which has multiple floor levels, its important to try to separate each floor into the individual parts with specific hierarchy so in the end we are able to switch between them. If you are feeling capable to do it yourself or you wanna learn more about Automatic version, we prepared full guide on how to do it: https://twinzo.atlassian.net/l/cp/g9PJ2SxQ
Visualizing BIM models
(Currently not supported through automatic Twinzo platform. In order to solve this issue please contact us individually)
However we are able to process BIM models outside Automatic Twinzo platform. You can learn more about it in this documentation: https://twinzo.atlassian.net/wiki/x/BYBFFg
Common model errors to look out for
These include the most common errors present in most models. These should be avoided and fixed.
1. Scaling and Units
The model should use real life scale in meters: 1 Editor Unit = 1 meter. Models outside of these ranges or in different units can cause precision issues.
The main building volume should be roughly centered around the world origin (X = 0, Y = 0, Z = 0).
2. Inverted polygon faces
The red inside faces visualize which parts of the mesh are going to be invisible (backface culling) when rendering in the application.
Notice when Backface culling is turned on, how the inside of the cube disappears. (Backface culling saves computational resources)
Notice how it’s possible to see inside the pillar from the outside, but not from the inside out (backface culling). This happens because the faces are oriented in the wrong direction - towards the inside.
3. One sided geometry
A single face will have it’s back side invisible (culled). Walls should be solid and have volume.
4. Vertex Normals
Vertex normals are vectors that define which way a vertex is pointing.
The purple lines on the image below are visualizing the normals of each vertex of the dome. (Red surfaces visualize inside faces that are going to be culled)
The Vertex normals on this house have been modified. Notice how the lighting looks wrong because the Vertex normals are not consistent with the faces.
5. Overlapping and Duplicated geometry
This step is very important. Overlapping geometry causes flickering (Z-fighting), lighting errors and such duplication wastes resources.
6. Cleaning up bottom faces
Cleaning up bottom faces and parts of the mesh that are never going to be seen saves texture space and computational resources. Downwards facing geometry is never going to be seen in the twinzo application, therefore it only wastes memory and resources and should be removed from the model.
In the clip below:
Geometry is selected based on the normal facing direction
The selected downwards oriented faces are deleted. (Red faces visualize inside faces that are going to be culled)
7. Object Instancing
This one is also very important to follow.
All 10 of the blue objects use the same mesh. They are all individual separate objects, but all of them use the same mesh.
Modifying the mesh of one instance, reflects on all of the instances using that mesh.
In the clip below only the rightmost selected object is being modified, all other objects to the left of it reflect the changes because they are using the same mesh. They are instances.
All repeating or duplicated objects should use instances instead of “deep” copies that also use a duplicated mesh.
8. Object number
Its recommended to keep number of individual objects under 6000 for single scene. Less objects means better computational performance for mobile devices and also it will reduces processing time. If your 3D model has much more objects, you can partially overcome this issue by using instances “meshes with shared geometry” or merging objects which are divided into multiple separated pieces.
(Currently more than 6000 individual objects in single 3D model are not recommended through automatic Twinzo platform. Anything more will most likely result in bad performance. In order to solve this issue please optimize your 3D model or contact us individually)
9. Materials
Objects should generally have the least possible amount of unique material slots assigned / used. E.g. There’s no need to have 5 different metal material types assigned to one object unless they’re vastly different in appearance.
The number of unique materials in the final exported file should be reduced to the minimum amount possible.
This means:
No material duplicates (Metal Chrome, Metal Chrome.001, Metal Chrome.002, Metal Chrome.003, etc...)
No redundant materials with very slight changes in color or other properties.
All materials should be named properly, clearly and descriptively. E.g. Wall Yellow, Metal Dark Rough, Glass, Plastic Orange Shiny, Carpet Brown, etc...
If you are using PBR materials with various texture images and want to upload model through Automatic Twinzo platform please visit this tutorial: How to embedd Textures into single file
10. Supported file formats
Through automatic Twinzo platform - FBX, OBJ, MTL
The preferred file format is Binary .FBX
Possible to work with outside automatic Twinzo platform - FBX, OBJ, MTL, STL, STP, IFC, DAE (Limited), glTF 2.0.
Possible to export outside automatic Twinzo platform - FBX, OBJ, MTL, STP, DAE (Limited), glTF 2.0.
The model file should not go over ~100Mb
Every format has its own limitation. Generally .FBX, glTF 2.0 or .OBJ are most suitable for us but other formats like .STL or various .CAD cause problems (missing materials, unable to open, unable to properly convert, huge sizes, no instances…..)
What software we are using
Unity 2022+
Blender 3.6+
Meshlab 2021.05+
AutoCAD 2023
CAD Assistant
If you encounter any issues or need assistance with using this product, please do not hesitate to reach out for support. Our team is here to help you resolve any problems and answer any questions you may have.
To create a support ticket, visit our support portal at https://partner.twinzo.eu/helpdesk/customer-care-1