Transparency and Shaders

By default, in FBX, Vyzn uses Unlit Configurable Transparent shader.

Vyzn looks for the following keywords in the names of the materials: “Transparent” and “Glass”. Those keywords trigger pre-defined material settings.

All materials in FBX files are handled automatically and, by default, are transformed to the Opaque material setting.

  1. Glass 10% RQ 3010
  2. MyName1 Glass 75% RQ 4000
  3. Transparent RQ 3002
  4. Glass
  5. MyName2 RQ 2005
  6. [Empty]

The material name consists of: [Name] [Keyword] [Opaque Level] [RQ number].

[Name] is any string name you want to use for your convenience.

[Keyword] is a string and it can be one of the pre-defined setting sets (Glass, Transparent, Opaque) or any other.

[Opaque Level] is a number from 0% to 100% showing the transparency level of the material. This option can be used only for "Transparent" and "Glass" settings. For example, using the opaque level, you can implement 2D billboards instead of geometry-heavy objects (flora and fauna).

[RQ number] is a Render Queue number from 0 to 5000. This option can be used for all materials. The material with the smallest RQ will be rendered and shown first inside the application.

Below is a table showing additional information describing the pre-defined material settings sets:

Material setting set name Opaque Transparent Glass
Keyword No keyword "Transparent" as a separate word in any part of the material's name "Glass" as a separate word in any part of the material's name
ZWrite (overwriting all content behind) On Off
Culling Back (Don’t render polygons facing away from the viewer. If we set it Front, then the polygons would render inside out).
Render Queue 2000 3000 3001
Opaque Level 0% 40%

Render Queue and Opaque Level can be overwritten in the material's name.

Note, that there is no difference between Glass and Transparent except the Render Queue.

To sum up, let’s review our example from above:

  1. Glass 10% RQ 3010
  2. MyName1 Glass 75% RQ 4000
  3. Transparent RQ 3002
  4. Glass
  5. MyName2 RQ 2005
  6. [Empty]
  • Object 1 is a Glass with Render Queue of RQ 3010 and Opaque Level of 10%. There is no custom name.
  • Object 2 is a Glass with Render Queue of RQ 4000 and Opaque Level of 75%. The custom name is MyName1.
  • Object 3 is a Transparent with Render Queue of RQ 3002 and Opaque Level of 40%. There is no custom name.
  • Object 4 is a Glass with default RQ of RQ 3000 and default Opaque Level of 40%. There is no custom name.
  • Object 5 is an Opaque material with RQ of RQ 2005 and Opaque Level of 0%. The custom name is MyName2.
  • Object 6 is an Opaque material with default Opaque Level of 0% and default Render Queue of RQ 2000. There is no custom name.
The objects will be rendered in the following order: 6, 5, 4, 3, 1, 2.