Popular topics: General 3D model requirements WANNA Environment Maps

How to add beautiful gems to 3D. NEW!

Diamonds, rubies, emeralds, topazes etc.

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

  1. Set up Substance Painter.
  2. Download archive with various gemstone cuts.

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.

  1. 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.
  2. Texture 3D model using Substance Painter or any other software.
  3. Export textured model to gltf and import into Blender.
  4. 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.
    1. Do not bake AO under gems, otherwise black spots will be visible through the gem.
    2. Leave a bit of space between gems and materials that hold them to avoid coplanar meshes.
    3. All gems should be subnodes of the top level main node to correspond with General model requirements for 3D Viewer 
  5. 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.
  6. 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
  1. Export model to gltf with deactivated Vertex Colors checkbox
  2. 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.

 
  1. After model is uploaded press Edit and select Gems Setting tab. 
  2. First select material you want to edit. 

  1. Number of bounces regulates how many times light will be reflected inside a gem.
     
  1. Roughness, metallic and Specular are pretty straightforward.
     
  1. IOR - Index of Refraction - use physically accurate value for your gem. https://pixelandpoly.com/ior.html
     
  1. KHR Specular regulates Specular Intensity and also lets add a slight color tint to the stone if needed
     
  1. 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

     
  1. 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.
  1. Press Save all button to save changes into optimized Gltf  model.

 

 

Was this article helpful?

Can’t find what you’re looking for?

Our award-winning customer care team is here for you.

Contact Support