Reflection cubemap example

In this example, we will demonstrate how to implement cubemap reflections on the objects in the scene.

  • Open the DeepAR Studio

  • Now import FBX via File → Import Legacy FBX → choose "sphere.fbx" from the Reflections_example folder

  • Next, go to the Texture tab

  • Choose Add → Cubemap and load the cubemap.png image from the Reflections_example folder

  • For cubemaps you can choose a lower texture quality setting. Select the JPEG - 60% texture quality.

  • Now choose the Sphere quad under the RootNode

  • In Material properties under the Select shader choose Reflection Cubemap shader

  • For Cube map select cubemap.png

  • Color value adds tint and transparency to the reflective material

Cubemap format must follow a few rules:

  • Cubemap consists of six images which are merged into one image in a column, one image below the other

  • Images must the follow order by which they are stacked into one image:

  • The first image is the one in the positive X-axis of the cube (the right side)

  • The second one, negative X-axis (left side of the cube)

  • Third, the positive Y-axis (up side)

  • Fourth, negative Y-axis (bottom side)

  • Fifth, the positive Z-axis (front side)

  • Last one, negative Z-axis (back side)

MatCap Normal Map example

In this example, we will demonstrate how to use the MatCap Normal Map shader in an effect.

  • Open the DeepAR Studio

  • Now import FBX via File → Import FBX → choose "original_face.fbx" from the Matcap_example folder

  • To add the MatCap texture choose Add → Texture in the Textures tab and load the 00009.png image from the Matcap_example folder

  • To add the Normal map texture choose Add → Texture in the Textures tab and load the metal1_normalmap.jpg image from the Matcap_example folder

  • Now select the Mesh quad under RootNode

  • In Material properties choose MatCap Normal Map under Select shader drop-down list

  • For Input texture choose your MatCap texture (00009.png)

  • For Normal map choose your Normal map texture (metal1_normalmap.jpg)

  • Color value adds tint and transparency to the material

Download both examples with all assets

Did this answer your question?