Managing different materials

solved
#1

extract from the https://armory3d.org/manual/#/graphics/materials

In fact, it seems that this parameter is to be set in the Shader Editor, so not in the Node Editor

1 Like

#2

That’s right, it is in the shader editor, we should fix that. :+1:

1 Like

#3

Done :+1: https://github.com/armory3d/armory_docs/pull/35/commits/9856e871f7d444e8fe47f1f9cf0b2b946aaca5f7

4 Likes

#4

It could be interesting too to give in the manual a summarize that explains how to control different colors by setting different Node Names.

For example something like the following with a MaterialGoal applied to an object and the RGBGOAL name for the RGB Node in the Shader Editor like thereafter


and that we can manage different colors using different names simply like that
image

Thanks to @Lubos for this simplicity of use :+1:

A simple new Armory exemple could be the use of an Array of colors and then with of an index value you choose a color among severals.

image

Choosing the color with an index
image

Example of result like thereafter with the colors of the Goal in red or green according to the distance between the Goal ball and the robot arm Effector, and the colors of the back pannel, here in grey or black, according to the %Alea value.


2 Likes