Как покрасить полигоны в блендер
Перейти к содержимому

Как покрасить полигоны в блендер

  • автор:

Приёмы работы в Blender. Часть 3

Как покрасить много объектов в один материал?
Создайте новую сцену и удалите куб который дан на старте. На этот куб уже применён материал и Вы можете запутаться. Создайте новый куб. Сделайте несколько его копий. Выберите их.

Среди выбранных объектов есть главный. Главный объект стандартно выделен жёлтым цветом.

Не снимая выделения назначаем материал. Он назначится только на главный объект.

Красим в яркий цвет для понимания происходящего.

Давим Ctrl+L (Link). В появившемся окне выбираем Materials.

На все объекты применился один и тот же материал.

Важный момент — устанавливается связь всех объектов с одним материалом, а не создание уникального материала на каждый объект.

Выберем один из кубов.

Изменим его цвет.

Изменился цвет всех кубов. Потому что материал один и тот же. Цифра в панели материалов указывает на количество объектов на которые применён этот материал.

Кликнем левой кнопкой мыши на этой цифре.

Материал изменил имя и связь с материалами других объектов разорвалась. Меняем цвет этого объекта. Изменится только он.

Буква F в строке названия материала.

Присвоение материалу Fake User‘а защитит материал от удаления.

  1. Выбор объектов, которые надо покрасить в один материал
  2. Указание главного объекта, на котором уже назначен тот самый материал
  3. Ctrl+L (Link) > Materials

Я хотел рассказать как назначать большому количеству объектов одинаковые характеристики. В данном случае материалы. Подобным способом можно работать не только с материалами, но и с геометрией, анимацией, текстурами и т.д. Например, то что приходилось использовать мне.

Меш
Связывается сетка полигонов (меш) и материал. Измени один объект и изменятся все. Вообще настройка здесь.

Но можно и с помощью Ctrl+L (Link) > Object Data.

Анимация
Связывается анимация. Можно через меню Ctrl+L (Link) > Animation Data. А редактирование вручную здесь:

Группы
Например: колесо автомобиля с диском, покрышкой, тормозом, болтами, логотипами. Там у Вас и меш и кривые и пустые объекты. Разнородные объекты которые нельзя объединить не применив модификаторы. Не хочется их применять. А колёс 4 штуки. Решение. Назначаем всем объектам одну и ту же группу. Теперь в меню добавления новых объектов есть возможность добавить в сцену эту группу.

Можно Ctrl+L (Link) > Group. Ручные настройки здесь:

Может возникнуть необходимость убрать группы с большого количества объектов. Есть команда Remove From All Groups. Я выбираю все объекты с которых надо убрать группы. Давлю клавишу «Пробел». Выскакивает поиск команд и я набираю там название команды Remove From All Groups и применяю.

Модификаторы
Ctrl+L (Link) > Modifiers. Это копирование модификаторов. Удаление тех что были и назначение новых с другого объекта.

How to change the color of an object in Blender?

Changing the color of an object in Blender can mean different things. Do we want to change the color for the final render or in the viewport? If we want to change the color in the viewport, what viewport mode are we in?

Let’s cut to the short version of how to change the color of an object in the viewport.

To change the color of a specific object in the 3D viewport, go to the viewport shading menu in the top right corner of the 3D viewport while in solid shading mode and check object under color. Next, select the object, go to the properties panel and press the object properties tab, which is the orange box icon. Go to viewport display and change the color.

To change the final render color of an object, select the object, go to the material tab in the properties panel, that is the red sphere icon and add a material, expand the surface section and change the base color to the color you want.

With that covered, we will dive into some detail, covering multiple ways of how to change colors around both for the viewport and for images we render.

How to change the color of an object in the viewport

We are always in one of multiple viewport shading modes. Depending on the viewport shading mode, there are different ways we can adjust and change how our objects are displayed.

By default, we are in solid shading. We can see what mode we are in and change to a different mode in the top right corner of the 3D viewport.

If you cannot see the shading buttons, middle mouse clicks and drag on the header towards the left and the hidden parts of it will become visible from the right.

The shading modes are (from left to right):

  • Wireframe mode
  • Sold mode (default)
  • Material preview
  • Rendered

Changing the color in wireframe mode doesn’t really apply or make much of a difference, so we will start with our options in solid view mode.

To access the settings for a viewport shading mode, press the down arrow next to rendered view mode. This dropdown is context sensitive and will change depending on your current viewport shading mode.

Here we have several options allowing us to customize the look and feel of our viewport. In this article we focus on the coloring of objects. Primarily objects that have faces and surfaces that can actually have a color. While we can change the color of objects that don’t have a surface in the viewport, such as lamp objects or the camera, we will focus on objects with surfaces here.

Also, there are other factors than color that affect the final look of the objects in our viewport, such as the lighting and various overlays and shadow settings. If you want the full story, you can check out these articles.

Also, if you want a quick way to make your viewport look awesome, press Matcap in the lighting section and pick the look you want.

Now, if we focus on the color section, we have six options.

  • Material
  • Object
  • Attribute
  • Single
  • Random
  • Texture

Let’s cover them in turn.

Material means that the material of a face determines its viewport color. This is the default. If we select this, we can select an object, such as the default cube and go to the material tab in the properties panel.

We can select one of the materials present in the material list, then expand the viewport display section, to find the color settings. If we change this to any color, all objects with this material will have the selected color in the viewport.

For as long as the color is set to material in the solid viewport shading settings, all objects with this material will be blue in the viewport regardless of how the actual material looks when we render it.

You can also play around with the metallic and roughness settings in the viewport display settings for the material to see how this affects the material.

If we instead change the solid viewport color to object, we can setup viewport colors in a similar way. But instead of basing it on what material is currently on an object, we simply set a color per object.

Go to the viewport shading menu while still in solid shading mode and select object for the color.

Instead of going to the material tab, go to the object tab and find the viewport display section here instead.

Next, if we set the color to attribute, Blender will use the vertex color we have painted on our object. There is a special mode in the 3D viewport called vertex paint that we can use to paint objects based on vertices. So, each vertex can have its own color and colors will blend along edges.

While displaying colors in the viewport isn’t the primary use of vertex painting, it is still an option.

Next is single, this mode simply gives us a color attribute picker in the shading settings menu to pick a color from that all objects will get.

The random option will give each objecta random color. There isn’t much else to it. The color pattern between objects gets quite similar and an object never get very saturated colors. This is to make it easier on the eyes.

Left for last is the texture option, this will use the texture from the currently active texture node with the currently active UV map.

The active texture is whatever texture is setup in the last selected image texture node in the shader editor for the material on the object.

Likewise, the UV map used is the selected UV map form the UV map list found in the object data tab in the properties panel. That is the green triangle icon. You can expand the UV Map section to find the list of available UV Maps for the selected object here and the UV map currently selected will be used to map the texture.

To learn more about textures, I encourage you to read this article:

To learn everything, you need to know about UV maps, there is also this article:

For material preview mode and rendered shading mode, we have to look into how to actually render color. We will come back to this below, but for now we will look at how to bulk change colors for multiple objects in the viewport.

How to change the color of multiple objects at once in the viewport?

For complex scenes with a lot of objects, we sometimes need to quickly change colors around for multiple objects to get a better pre-visualization of the scene.

The first way is to have the objects in our scene already setup with the right materials and simply change the viewport display color for our materials while using the material color option in sold shading view.

This way we can then just change the materials for objects in our scene and the viewport display color will change as well.

To quickly change material on multiple objects, you can select all objects you want to have the material and then last shift select an object that already has the material on it. After that, press Ctrl+L to bring up the Link/Transfer data menu and choose «link material» this will make it so that all selected objects will get the material from the active object.

The active object being the last selected object with the lighter orange outline in the viewport.

But what if we don’t want to involve materials? After all, they will affect the final render.

What we can do instead is to use the object color option in the viewport shading menu and use the viewport display color on the object level instead of the material level.

To quickly change the color of multiple objects using the object color mode, you can first change the viewport display color on one object.

Next, select all objects you want to have the same viewport color and last, shift select the object that is already setup with the correct viewport display color. Then right click the color in the properties panel and choose «copy to selected».

This will copy the viewport display color from the active object to all other selected objects.

You can do the same for any parameter in the properties panel to copy a setting from one-to-many objects.

If you need to brush up on how to make effective selections in Blender, you can also read this guide.

How to change the rendered color of an object?

To change the rendered color of an object, we need to change the material. Follow these steps:

  • Select your object and go to the material tab.
  • In the material list check so that you have a material, if not, press the plus sign on the right side.
  • Open the surface section below the list and you will find a «base color» setting, click it and change it to any color.

When you render, the object will have the color you choose. But for the 3D viewport, you will still see the same color as before. By default, in various shades of grey.

But if you change the viewport shading mode to material preview or rendered view, you will see the material in the viewport.

There is much more to learn about materials and a good place to start is here:

How to change the rendered color of multiple objects?

In Blender, materials stand by themselves, and we simply link in materials to objects and assign them to either the whole object or to one or more faces on the object.

So, to change the color of multiple objects, we simply assign the same material to them all at once. But first we need to have a material setup on an object. We can then link this material to all other selected objects.

To do this, select all objects you want to have the material you created, then hold shift and select the object with the material already assigned to make that object the active object as indicated by the lighter orange outline.

Next press Ctrl+L to bring up the link/transfer data menu and choose material.

The material on your active object will now populate the material list of all selected objects.

Final thoughts

We have now covered how to color objects in our viewport and in the final render. To go ahead and render the scene from the cameras point of view, press F12 or go to render->Render image from the menu bar at the top.

We learned about different shading modes in the viewport and that there is a difference between colors in different modes.

Assign Random Colors To Polygons In Blender

In this Blender quick tip tutorial learn how to assign random colors to polygon faces in our 3D geometry. To start off, have your target mesh selected and go into shading view as shown below. For this tutorial, a simple icosphere with a displacement modifier was used create an abstract shape. However, this method to assign random colors to polygon faces will work with any type of mesh in Blender 2.8+.

While your cursor is in the viewport, use the Z key and press 2 on the number pad to go into Material View so we can see our material while we edit them.

Random Colors Material View

In Properties panel under materials tab, create a new material and give it a name.

New Material

In the Shader Editor panel, use SHIFT+A key and Input Geometry to add a geometry node.

Geometery Node

Add in a Math node by using SHIFT+A key and then Converter Math.

Math Node

Connect the True Normals out from the Geometry node to the math node. Duplicate the math node by using SHIFT+D key and set it to multiply.

Node Setup 1

Add an Object Info node by using SHIFT + A then Input Object Info. Connect the object info output to the value input of the Multiply node.

Node Setup 2

Duplicate the Multiply node once more and set the value to 25. Finally we’ll dubplicate the Multiply node once more but this time we’ll set it to Modulo and the value to 1.0.

Node Setup 3

SHIFT + A then Converter > ColorRamp. Connect the Modulo math node to the ColorRamp node and ColorRamp output to the Base Color input in the Principled BDSF.

Node Setup 4

Set your desired color in the ColorRamp node. You can add or remove colors by using the + and – icons. Once you’ve selected your colors, your random color shader is complete.

Random colors shader

If you don’t want to have gradient colors present in your shader, you can set the ColorRamp RGB to Constant. This will only render the color that you have chosen in the ColorRamp node. If want to learn how to render wireframes read How To Render Wireframes In Blender EEVEE.

Как изменить цвет объекта в блендер?

Как применить материал в Blender к нескольким объектам?

Давим Ctrl+L (Link). В появившемся окне выбираем Materials. На все объекты применился один и тот же материал. Важный момент — устанавливается связь всех объектов с одним материалом, а не создание уникального материала на каждый объект.

Как добавить свой материал в блендер?

Необходимо нажать Shift + F1 (или File > Append). Находите скачанный blend-файл и в нем есть папка Material. Вот в ней и находятся все материалы присутствующие в данном blend-файле. То есть материалы хранятся отдельной библиотекой и в состав blender не включаются (ну как какой-нибудь плагин).

Как покрасить отдельные полигоны в Blender?

  1. Сначала создаем материалы, сколько нужно, один красный, другой синий положим.
  2. Потом переходим в Edit mode, выделяем нужные полигоны, которым хотим назначить другой цвет
  3. Потом жмем кнопку Assign и.
  4. Выделенные полигоны получают тот материал, который нужно

Как применить свою текстуру в блендер?

Если мы хотим добавить текстуру, нам нужна нода с текстурой. Добавить ее можно через меню заголовка Add → Texture → … . Также работает Shift + A. Добавим Brick Texture и соединим ноду со свойством Base Color основной ноды.

Что такое Ноды Blender?

Шейдерные ноды (Shader Nodes) существенно расширяют возможности стандартных материалов Blender, позволяя представить освещение как серию базовых преобразований.

Как в блендере сделать цвет?

  1. Выбрать объект.
  2. В окне кнопки (внизу) выберите ‘Shading’ (серый шар), а затем ‘Material buttons’ (красный шар)
  3. В разделе «связь и конвейер» нажмите ‘Add new’.
  4. Измените цвет материала (‘Col’).

Как назначить материал на полигон в блендер?

Если вкратце: в режиме редактирования добавляете материал, выделяете нужные грани и жмете кнопку «Assign» при выбранном нужном материале. Ещё можно потянуть материал на на объект.

Как удалить материал блендер?

Правой кнопкой по материалу и Delete или кнопкой Purge All удалить все блоки данных, которые нигде не используются.

Как сделать стекло прозрачным блендер?

Перейдите в настройки Материала (F5). Здесь можно настроить цвет объекта (Можно смешивать Красный, Синий и Зеленый) и настройку прозрачности объекта (А — расшифровывается как Alpha). Этот параметр сильно влияет на прозрачность: 0.000 — объект полностью невидим; 1.000 — объект полностью виден.

Как сделать прозрачный материал в блендер?

За прозрачность в Blender Render отвечают параметры «Transparency» (Прозрачность) во вкладке «Material». Активируем их галочкой. По умолчанию значение параметра «Alpha» равно единице, чем оно меньше, тем материал будет прозрачней. Эффект Френеля «Fresnel» и смешение «Blend» регулируются шкалами справа.

Как сделать прозрачную текстуру в блендере?

Создаем новый материал, добавляем текстуру. Здесь необходимо включить режим «GLSL» во вкладке «Render» => «Shading». За прозрачность в Blender Game отвечают параметры «Transparency» (Прозрачность) во вкладке «Material». Чем меньше значение параметра «Alpha», тем прозрачней будет материал.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *