Circle Image

Pixaflux

Tutorial Materials

In this tutorial, you will learn how to work with Materials in PixaFlux.

A Material is a collection of images with the same position and size that represent all the optical properties of the material.

Rust PBR Images

In0 Albedo

In0 Normal

In0 Roughness

In0 Metalness

In0 Occlusion

Material Nodes

The Materials nodes execute operations related to materials. There are nodes that combine multiple images into a material (Material and Material Reader), nodes that operate on a single material (Material Transform and Material Tile), nodes that mix materials (Material Blend node), and nodes that break the material into its component images (Material Split).

Almost all the operations performed by the Material nodes can be executed by other image nodes, but material nodes keep all the images consistent and simplify the node graph.

Material Templates

The Material Templates are structures that define the names and types of the images that compose the material.

Image Window OpenCL Preferences

PixaFlux includes two read only material templates:

pbr albedo metal

Defines a material for the PBR albedo metal shading model in PixaFlux.

Image names and formats:

pbr diffuse specular

Defines a material for the PBR diffuse specular shading model in PixaFlux.

Image names and formats:

Users can add new material templates in the Preferences window.

Create and Blend Two Materials

Now you will create two Materials in PixaFlux and blend them using a Mask.

Note: This tutorial uses PBR textures downloaded from textures.com.

Create the Crumpled Rust Material

  1. Download the Crumpled Rust 1024 x 1024 texture files.

  2. Drag and drop the crumbled rust albedo, normal, metallic and roughness images into the node graph.

  3. Create a To Normal node Normal icon Arrow To Normal icon and connect [Reader normal › image] to [image › To Normal].

  4. Create a To Value node Normal icon Arrow To Normal icon and connect [Reader roughness › image] to [image › To Value].

  5. Create a To Value node Normal icon Arrow To Normal icon and connect [Reader metalness › image] to [image › To Value].

  6. Create a Material node Material icon Arrow Material iconand connect the material textures to the Material inputs.

    Material Crumpled Rust

  7. The Crumpled Rust material doesn't have an ambient occlusion image so leave the occlusion value at 1.0.

Create New Bare Bronze Material

  1. Download the Bare Bronze 1024 x 1024 texture files.

  2. Create a Material Reader node Material icon Arrow To Normal icon.

  3. Load the new bare bronze textures into the material image slots.

    Material Crumpled Rust

    Material Crumpled Rust

The Material Reader node loads the material textures and convert them to the required image format.

Tile the Crumbled Rust Material

  1. Create a Material Tile node Material icon Arrow Material Tile icon and connect [Material rust › material] to [material › Material Tile].

  2. Set the Material Tile size to 1024 x 1024 and transform the material using the Transform manipulator or the attributes.

    Material Tile Output

Blend the Crumbled Rust and the Bare Bronze Materials

  1. Create a Material Blend node Material icon Arrow Material Blend icon and connect [Material Tile › material] to [bg_material › Material Blend].

  2. Connect [Material Reader › material] to [fg_material › Material Blend].

  3. Create a Perlin noise node Generate icon Arrow Material Blend icon and set the size to 1024 x 1024, set the frequency to 8 x 8 and set range low to 0.4 and range high to 0.5. Check saturate.

  4. Connect [Perlin Noise › image] to [mask › Material Blend].

    Material Blend Graph

    Material Blend Output

Split the Material into images

  1. Create a Material Split node Material icon Arrow Material Split icon and connect [Material Split › material] to [material › Material Split].

    Material Split Graph

    Albedo

    Material Split Albedo

    Normal

    Material Split Normal

    Roughness

    Material Split Roughness

    Metalness

    Material Split Metalness

    Occlusion

    Material Split Occlusion