Background
WANNA rendering engine is capable of showing beautiful gems like diamonds or sapphires. Some of this beauty is proprietary and requires special model preparation; this article describes how to achieve the desired effect.
Preparation
Suggested workflow
The best way to model items with repetitive gems is to use instances. Unfortunately not all modeling tools support them, so we suggest the following workflow to work around it.
- Create base model geometry in any tool of your choice. You don't need to add any gems at this point, they will be added later.
- Texture 3D model using Substance Painter or any other software.
- Export textured model to gltf and import into Blender.
-
Add gemstones to the model using samples from the archive and Reset their transformations (this is temporary solution to a problem we uncovered). All gemstones of the same cut should be instances of the same mesh.
- Do not bake AO under gems, otherwise black spots will be visible through the gem.
- Leave a bit of space between gems and materials that hold them to avoid coplanar meshes.
- All gems should be subnodes of the top level main node to correspond with General model requirements for 3D Viewer
-
Name materials used for gems in a special way:
- Any diamond-like material with visible dispersion (diamond, cubic zirconia, etc.) should be called wanna_diamond_XXX, where XXX can be replaced with anything. For example, wanna_diamond_1, wanna_diamond_2, etc. Materials for the gems in the archive are pre-set to diamonds.
- Any other gem material (sapphire, emerald, ruby, etc.) should be called wanna_colored_gem_XXX, where XXX can be replaced with anything.
- Set base materials parameters to the following for all gems. If you are using cuts from our archive, they are already preset there.
Base color |
According to the gem color on the reference |
Metallic | 0 |
Specular | 0.5 |
Roughness | 0 |
IOR corresponding to gem | See pixelandpoly.com/ior.html |
Transmission | 1 |
Blend Mode | Opaque |
-
Export model to gltf with deactivated Vertex Colors checkbox.
- Upload it to Wanna Studio, as the rest of the settings will be set there.
Currently, gem settings can only be adjusted in a workspace with a 3D viewer. Therefore, if you need to configure gems for virtual try-on, please ask your manager to create a workspace with a 3D viewer for you. Once the model is set up, download its OPTIMIZED file and upload it to the try-on workspace you need.
- After model is uploaded press Edit and select Gems Setting tab.
-
First select material you want to edit.
-
Number of bounces regulates how many times light will be reflected inside a gem.
- Roughness, metallic and Specular are pretty straightforward.
- IOR - Index of Refraction - use physically accurate value for your gem. https://pixelandpoly.com/ior.html
- KHR Specular regulates Specular Intensity and also lets add a slight color tint to the stone if needed
- Thickness factor - use a real stone thickness in units used when creating a model.
If you are creating different watch sizes for try-on, use the following coefficients:
Watch size 45 - Thickness factor * 1.512
Watch size 50 - Thickness factor * 1.361
Watch size 55 - Thickness factor * 1.237
Watch size 60 - Thickness factor * 1.134
Watch size 65 - Thickness factor * 1.047
- Attenuation distance is a way to set color to colored gem. Attenuation distance regulates how deep light needs to go through before it is absorbed (Color intensity). Attenuation color is basically gem color.
- Press Save all button to save changes into optimized Gltf model.