G
G
Gregory2562021-08-31 09:53:02
Unity
Gregory256, 2021-08-31 09:53:02

How to color an object by sectors?

Tell me how to colorize an object with different colors by sector? And how to arbitrarily split it into sectors. For example: a cube - I want to split it into 16 sectors and color them with different colors. Like a Rubik's cube.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pashara, 2021-08-31
@Gregory256

You need to paint the object through the material (through the texture - then the material is one, through the colors - then for each color - its own material).
To do this, a 3D object must be prepared in a certain way: a uv-mesh must be implemented on it (in a certain way for a specific task. It can be generated procedurally, or textures can be adjusted to it with a shader , but this is expensive in terms of execution time, not always universal, and not needed in most cases).
To sum it up: walk up to the 3D man and say: "I need to change this, this and this part of the mesh. Make a scan / different materials for this.".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question