Exporting Maya assets for Lens

In Maya, how you export content so it is viewable in Lens depends on the workflow:

For a Metal/Roughness workflow, the shader that you use depends on whether you are using transparency values/maps or an Opacity map:

  • When objects use transparency, use the Phong shader.
  • If you are using an Opacity map, use the StingrayPBS shader, as shown in this picture:
Applying the StingrayPBS shader to a model

Then, follow these steps to apply the Opacity map:

  1. Change the StingrayPBS shader type to Standard_Masked, as shown in this picture:
  1. Open the StingrayPBS Texture drop down menu. Because you selected Standard_Masked, this menu now has a Mask Map channel, as shown in this picture:
  1. Put the Opacity map in the Mask Map channel.

Other notes for Metal/Roughness workflows:

  • If you are using Transparency values or maps, separate the objects that are being influenced by these values or maps from the objects that do not contain any transparency. 
  • When texture maps are applied, make sure to select the texture checkbox for each map that is being used. These checkboxes are in the Attributes drop down menu within the StingrayPBS shader, as shown in this picture:
Selecting the texture check box for each map that is being used

For a Specular/Gloss workflow, use the Phong shader, as shown in this picture:

Using the Phong shader with a specular/gloss workflow

Other notes for Specular/Gloss workflows:

  • If the model uses an Opacity or Transmission map, put it in the Transparency node in the Phong shader.
  • If the model uses a Transmission map, invert the Transmission map and relabel it as an Opacity map. This new Opacity map drives the original transmission value within Lens.

Now you can import the model into Kraken and view it in Lens by following these steps:

  1. Import the model:
    – To add the model file to an existing Kraken asset, select the asset, go to the Files tab of the Preview panel, and add the model.
    – To add the model file to a new asset, click the + New button and import the model.
  2. Select the asset, and under its thumbnail image click View this model in 3D.

For more information about Lens, see Lens Real-Time 3D Viewer.