Using built-in REDsdk materials

Building custom materials and programming custom shaders can be a tough and time-consuming task. Fortunately, REDsdk provides various ready-to-use built-in materials, either via its large external library or via internal functions.

The realistic material

REDsdk contains a special 'ready-to-use' material called the realistic material. This is an all-purpose, fully customizable material able to reproduce the look and feel of almost every surface in nature. This material features energy preservation, an anisotropic reflectance model, transmission scattering and much more. It can be used in real-time application, but its main usage is for the creation of photo-realistic images.

More details about this material here: Using the realistic material, and a tutorial here: Using the realistic material.

The generic material

The generic material is an all-purpose, fast and simple material intended for real-time as for photo-realism. It have to be created via the REDsdk function RED::IMaterial::SetupGenericMaterial.

All you need to know about the generic material is located in the page Using the generic material, and a tutorial can also be found here: Generic material.

REDsdk's library of material

The other way to use built-in materials is by accessing the large external REDsdk materials library. This library contains several materials for all usages filtered by categories like bricks, stone and wood. See the full library here: REDsdk material library catalog

The material library

All the details about installing, loading and using the REDMaterial library can be found in the following page: Using REDsdk's library of materials.

A tutorial is also available to learn how to load a library material and assign it to a shape: Using the realistic material.

The material editor

REDMaterialEditor is a standalone program that lets you create, save & edit realistic-based materials to later use in your application. The page 'Using REDsdk's material editor' explains how to use it.

The material editor

Using PBR metallic material

Several material and texturing softwares use a PBR (Physically Based Rendering) metallic workflow. REDsdk provides a helper function to convert data from PBR metallic to the realistic material: RED::ImageTools::ConvertMetallicToRealisticMaterial.

Basically, a metallic workflow works with these material data:

Some of these maps can't be plugged directly in the realistic material. The RED::ImageTools::ConvertMetallicToRealisticMaterial function converts the 4 maps: albedo, roughness, metalness and ao into 3 new textures: diffuse, reflection and anisotropy that are valid inputs for the realisitic material. The normal and displacement maps can be plugged directly.

The metallic workflow from front to back: albedo, roughness, metalness, ao, normal, displacement