glTF Materials (glTF 2.0-compliant PBR) / 3ds Max

If your content needs to be compatible with glTF 2.0 standard for some reason, you can use physical materials for this purpose as described below.


Setting Up

Add a Physical Material shader node as follows: go to Materials/Map Browser and choose Physical Material from the General material list.

Then you can connect texture nodes to the Physical Material as described below. Note that all textures are optional and any of them can be safely omitted.

Color Space and Gamma Correction

For correct rendering, the color space should be taken into account for images. All images, except the Base Color and Emission textures, must be presented in the linear color space. To do this, select Override Gamma with the 1.0 value in the Gamma Preferences when you open an image in the Open Image dialog box (as can be seen below).

On the contrary, the Base Color and Emission textures must be opened in sRGB color space (with Gamma 2.2). To make it happen, just leave Automatic in the gamma preferences of the Open Image dialog box.

Transparency Texture

The engine will use the Alpha channel from the Base Color texture as a transparency map automatically, if it is present. To make the transparency visible in the 3ds Max viewport, connect the Alpha channel of the Base Color texture to the Transparency Color Map input.

Also in the Preferences of the texture, in the Bitmap Parameters panel you should set Mono Chanel Output to Alpha and RGB Channel Output to Alpha as Gray.

Exporting Textures from Substance Painter

The models and the baked normal and occlusion maps (if any) can be loaded in Substance Painter via OBJ format.

Overall 3 maps are produced in this software in the end: base color/transparency, occlusion/roughness/metallic and normal.

To facilitate exporting textures from Substance Painter and to ensure maximum capabilities within the Verge3D engine we recommend using Verge3D export preset. Place this preset file to the export-presets folder usually located in the My Documents\Allegorithmic\Substance Painter\shelf\ directory (create it if does not exist).

When exporting textures from Substance Painter, choose Verge3d for 3ds Max in the export dialog window so that all generated textures are compatible with the glTF 2.0 standard Verge3D is based on.

Got Questions?

Feel free to ask on the forums!