Your 3D Models on the Web
We recommend using 3D models in GLB (glTF 2.0 binary) format for all WebAR experiences. GLB is currently the best format for WebAR with its small file size, great performance and versatile feature support (PBR, animations, etc).
Converting Models to GLB format
Before you export, ensure that:
- Pivot point is at the base of the model (if you expect it to attach to the ground)
- Forward vector of object is along Z axis (if you expect it to face forward)
If your model is exported as a glTF, drag and drop the glTF folder into gltf.report and click Export to convert it to a GLB.
If your model can not be exported to glTF/GLB from 3D modeling software, import it in Blender and export as gLTF or use a converter.
Online converters: Creators3D, Boxshot
Native converters: Maya2glTF, 3DS Max
A full list of converters can be found at https://github.com/khronosgroup/gltf#gltf-tools.
It's a good idea to view the model in glTF Viewer before importing it to an 8th Wall project. This will help catch any issues with your model prior to adding it to an 8th Wall project.
After you import into an 8th Wall project, ensure that:
- Scale appears correct at (1, 1, 1). If scale is off by a significant amount (i.e. 0.0001 or 10000), do not change the scale in code. Instead, change it in your modeling software and re-import. Changing the scale significantly in code may result in clipping issues with the model.
- Materials appear correct. If your model has reflective materials, they may appear black unless given something to reflect. See the reflections sample project and/or the glass sample project
For more information about 3D model best practices, reference the GLB optimization section.
Please also view the 5 Tips for Developers to Make Any 8th Wall WebAR Project More Realistic blog post.