Перейти к содержимому

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

  • автор:

Viewing normals in Blender?

I’m sure there is a way to view the normals, but I can’t find it anywhere. Can you please tell me where to find this option? Thanks!

2 Answers 2

Edit Mode > Viewport Overlays > Normals.

In 2.8, the normals display settings are in the Viewport Overlays menu found in the top right of the 3D view by default, under Normals. Note that you must be in Edit Mode:

enter image description here

In the 3D-View, while your Mesh object is in Editmode, open the properties area with N or the little plus sign on the upper right.

Редактор нормалей¶

Редактирование нормалей — достаточно простой и эффективный способ изменить собственное затенение трехмерной модели, не усложняя ее геометрию.

С помощью редактора нормалей, в некоторых случаях, можно достичь результатов, аналогичных применению карт нормалей . При этом метод редактирования нормалей является более предпочтительным с точки зрения потребления вычислительных ресурсов и видео-памяти.

Пример работы редактора нормалей:

_images/normal_editor_example.png

Слева — обычное затенение геометрии, справа — дерево с редактированными нормалями.

_images/simple_geometry.png

Слева — ворота с обычным затенением, в центре — ворота с редактированными нормалями, справа — геометрия модели ворот с сеткой.

_images/grass.png

Слева — обычное затенение геометрии травы, справа — трава с редактированными нормалями.

_images/glasses.png

Слева — очки с обычным затенением, справа — затенение геометрии с редактированными нормалями.

Основные особенности редактора нормалей:¶

для хранилища массива данных с направлениями вертексных нормалей используется “родной” блок данных Blender (появился в версии 2.74);

редактирование нормалей и отображение затенения теперь происходит в режиме редактирования ( Edit Mode );

все изменения записываются сразу же автоматически;

вращение нормали выделенного вертекса можно производить непосредственно в окне Viewport’a по горячим клавишам Shift+Ctrl+R , подобно остальным операциям вращения в Blender;

редактированные нормали экспортируются автоматически.

Интерфейс¶

Интерфейс редактора нормалей располагается на панели инструментов Blend4Web > Normal Editor . Перед началом работы редактора для объекта необходимо включить режим затенения Shading: Smooth и нажать кнопку Activate на панели редактора нормалей или выставить галочку Auto Smooth в настройках меша.

_images/normal_editor_interface.png

Activate¶

Кнопка Activate включает режим редактирования вертекных нормалей.

Достаточно в режиме Edit Mode нажать кнопу Activate , и можно приступать к редактированию вертексных нормалей. Пока она остаётся в активном режиме, затенение объекта и его экспорт будут осуществляться с учетом редактированных вертексных нормалей. Другими словами, после внесения изменений, для их отображения во Viewport’е Blender и в движке Blend4Web кнопка должна быть оставлена активной.

Show Normals¶

Для удобства в панель продублирована оригинальная кнопка Blender, включающая отображение маркеров вертексных нормалей во Viewport’е, а так же настройка их длины.

Достаточно просто включить кнопку Show Normals прямо на панели редактора вертексных нормалей Blend4Web или в правой панели Blender в разделе Mesh Display и настроить комфортную длину маркера в поле Size .

Rotate¶

При помощи этого инструментария можно вращать нормаль каждого вертекса индивидуально. Функция Rotate также доступна по горячим клавишам Shift+Ctrl+R и позволяет вращать вертексные нормали в привычном для пользователя Blender режиме.

Выделив один или несколько вертексов, которые хотите изменить, вращайте их, используя визуальную сферу на панели редактора вертексных нормалей Blend4Web, или задайте направление каждой координате в цифровом значении.

Более удобный вариант манипуляции с вертексными нормалями предоставляет кнопка Rotate . Вращение происходит по координатам в пространстве экрана, но, как и при обычном вращении объектов в Blender, можно изолировать нужную ось координат и вращать только по ней (нажав X , Y или Z ) и вводить угол поворота при помощи цифровых клавиш.

Scale¶

Эта функция используется для масштабирования нормалей и доступна как из панели Tool, так и при помощи клавиш Shift + Ctrl + S . Масштаб нормали задаётся при помощи цифровых клавиш; клавиши X , Y и Z задают ось координат, вдоль которой осуществляется масштабирование.

Обратите внимание, что видимая длинна нормали определяется параметром Size и не меняется при масштабировании.

Режимы Absolute и Offset¶

Редактор нормалей может функционировать в двух режимах: режиме Absolute и режиме Offset. Режим может быть выбран с помощью двух кнопок, расположенных прямо под вышеописанной кнопкой Rotate . По умолчанию используется режим Absolute .

Режим Absolute¶

_images/normal_editor_absolute.png

В этом режиме редактор нормалей работает по умолчанию. В нём координаты нормального вектора абсолютны и могут быть заданы с помощью полей X , Y и Z либо с помощью сферического контроллера, расположенного рядом с ними.

Режим Offset¶

_images/normal_editor_offset.png

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

Поля X , Y и Z используются для задания соответствующих компонент вектора, а кнопки Sub и Add определяют, вычитается ли пользовательский вектор из нормального или складывается с ним.

Split Normals¶

Режим Split Normals позволяет редактировать вертексные нормали индивидуально для каждой грани ( Face в Blender), образующей редактируемую вершину ( Vertex в Blender). Переключатель вертексных индексов позволяет перемещаться между нормалями разделенного вертекса.

Перейдя в режим Split Normals , выберите нужный вертекc и измените направление его нормали. Прежде всего подвергнется модификации та нормаль, которая имеет наименьший индекс в очереди (то есть 0) редактируемого вертекса. Далее, перемещаясь по индексам, перейдите на следующую нормаль этого вертекса и редактируйте ее.

Average¶

Average усредняет направление вертексной нормали, исходя из направлений нормалей, разделенных функцией Split Normals .

Для того, чтобы объединить несколько разделенных вертексных нормалей в одну так, чтобы она имела их среднее направление, достаточно выделить нужный вертекс и нажать Average Split .

Restore¶

Кнопка Restore восстанавливает исходное направление нормалей выделенных вертексов.

Для того, чтобы восстановить нормали к исходному направлению (которое раcсчитывается на основе нормалей полигонов), нужно выделить нужные вертексы и нажать кнопку Restore .

3D Cursor, Axis и Face¶

Кнопка 3D Cursor ориентирует нормали выбранных вершин по направлению к 3D-курсору (если активирован параметр Towards на панели Vertex Normal Cursor ) или в противоположную сторону. Кнопка Axis направляет нормали вдоль одной из осей координат (ось задаётся на той же панели Vertex Normal Cursor ). Кнопка Face ориентирует нормали всех вершин выбранной грани параллельно нормали этой грани.

Чтобы воспользоваться функцией 3D Cursor , выделите нужные вертексы и расположите курсор в нужном вам месте. После нажатия кнопки 3D Cursor все выделенные вертексы будут направлены в сторону от курсора, как будто бы они выстреливают из одной точки. После этого можно также включить опцию Towards на панели Vertex Normal Cursor ; эта опция разворачивает нормали по направлению к курсору.

Использовать функцию Axis очень просто: достаточно выбрать вершины и нажать кнопку, после чего функция направит нормали этих вершин вдоль оси координат, выбранной на панели Vertex Normal Cursor (по умолчанию выбрана ось Z) или в противоположном направлении (если отключить опцию Towards на той же панели).

Чтобы направить нормали вертексов параллельно нормали грани, выделите нужную грань (или несколько граней) и нажмите Face . Все нормали вертексов, образующих эту грань, будут направлены параллельно нормали самого полигона.

Функции 3D Cursor , Axis и Face также обладают параметром Factor , который используется для смешивания начальной позиции нормалей с окончательной. По умолчанию значение этого параметра равно 1.0 (используется окончательная позиция).

Copy/Paste¶

Копирует направление нормали с одного вертекса на другой.

Выделите вертекс для копирования и нажмите Copy . Затем выделите вертекс, на который хотите копировать результат, и нажмите Paste . Вставлять скопированную информацию можно на множество разных вертексов. Кнопки не активны в режиме Split Mode и не переносят данные уже “разделенных” нормалей на другие вертексы.

Copy From Mesh¶

Эта функция позволяет копировать направление вертексных нормалей с одной геометрии на другую. Существует два режима копирования, Matched Vertices и Nearest Vertices .

В режиме Matched Vertices копируются направления нормалей с вертекса одной модели на вертекс другой, если у них одинаковые координаты; прочие вертексы игнорируются. В режиме Nearest Vertices копируются нормали с ближайших вертексов другой модели.

Работа с этой функцией производится в объектном режиме. Первым нужно выделить объект, с которого будет происходить копирование, далее объект, на который будет происходить копирование. Необходимо также выделить вертексы целевого объекта, на которые необходимо произвести перенос направления нормалей.

Normals¶

The Normal Edit Modifier can be used to edit normals.

The Weighted Normal Modifier can be used to affect normals by various methods, including Face Strength (see below).

You can also copy normals from another mesh using Data Transfer ( operator or modifier ).

Shading¶

Object ‣ Shade Smooth / Shade Flat

Face ‣ Shade Smooth / Shade Flat

../../../_images/modeling_meshes_editing_normals_example-flat.png

../../../_images/modeling_meshes_editing_normals_example-smooth.png

As seen in the previous sections, polygons are central to Blender. Most objects are represented by polygons and truly curved objects are often approximated by polygon meshes. When rendering images, you may notice that these polygons appear as a series of small, flat faces. Sometimes this is a desirable effect, but usually we want our objects to look nice and smooth.

Smooth¶

The easiest way is to set an entire object as smooth or faceted by selecting a mesh object, and in Object Mode, select Shade Smooth in the Object menu. This forces the assignment of the “smoothing” attribute to each face in the mesh, including when you add or delete geometry.

Notice that the outline of the object is still strongly faceted. Activating the smoothing features does not actually modify the object’s geometry; it changes the way the shading is calculated across the surfaces (normals will be interpolated), giving the illusion of a smooth surface.

Select the Shade Flat item in the Object menu to revert the shading back (normals will be constant) to that shown in the first image above.

Smoothing Parts of a Mesh¶

Alternatively, you can choose which faces to smooth by entering Edit Mode, then selecting some faces and picking Shade Smooth from the Face Menu.

When the mesh is in Edit Mode, only the selected faces will receive the “smoothing” attribute. You can set faces as flat (removing the “smoothing” attribute) in the same way by selecting edges and picking the Shade Flat from the Face Menu.

The Auto Smooth option is a quick and easy way to combine smooth and faceted faces in the same object.

Face Strength¶

Another way to affect normals is to set a Face Strength on the faces of the model. The Face Strength can be either Weak, Medium, or Strong. The idea is that the Weighted Normal Modifier can be set to pay attention to the Face Strength as follows: when combining the normals that meet at a vertex, only the faces with the strongest Face Strength will contribute to the final value.

For example, if three faces meet at a vertex and have the face weights weak, medium, and strong, then only the normal associated with the strong face will be used to set the final result.

Tools¶

Flip Direction¶

Mesh ‣ Normals ‣ Flip

This will reverse the normals direction of all selected faces. Note that this allows you to precisely control the direction (not the orientation, which is always perpendicular to the face) of your normals, as only the selected faces are flipped.

Recalculate Normals¶

Mesh ‣ Normals ‣ Recalculate Outside and Mesh ‣ Normals ‣ Recalculate Inside

Ctrl-N and Shift-Ctrl-N

These tools will recalculate the normals of selected faces so that they point outside (respectively inside) the volume that the face belongs to. The volume does not need to be closed; inside and outside are determined by the angles with adjacent faces. This means that the face of interest must be adjacent to at least one non-coplanar other face. For example, with a Grid primitive, recalculating normals does not have a meaningful result.

Set From Faces¶

Mesh ‣ Normals ‣ Set from Faces

Set the custom normals at corners to be the same as the face normal that the corner is part of.

Rotate¶

Mesh ‣ Normals ‣ Rotate

This is an interactive tool. As you move the mouse around, the selected normals are rotated. You can also invoke the Rotate Normals tool by pressing the Rotate transform key R , followed by N .

Point to Target¶

Mesh ‣ Normals ‣ Point to Target

All selected normals are set to point from their vertex to the target after confirmed by Return or LMB .

A target is set by the keys:

The mouse cursor M

The object origin O

The cursor (set at this click) Ctrl-LMB

A mesh item selection (set by this click) Ctrl-RMB .

The tool operation can be modified; if one of the following keys has been previously pressed:

All normals will point in the same direction: from the center of selected points to the target.

Each normal will be an interpolation between its original value and the direction to the target.

The normal directions are reversed from what was specified above.

Will reset the custom normals back to what they were when the operation started.

Merge¶

Mesh ‣ Normals ‣ Merge

Merge all of the normals at selected vertices, making one average normal for all of the faces.

Split¶

Mesh ‣ Normals ‣ Split

Split the normals at all selected vertices so that there are separate normals for each face, pointing in the same direction as those faces.

Average¶

Mesh ‣ Normals ‣ Average

Average all of the normals in each fan of faces between sharp edges at a vertex.

Copy Vectors¶

Mesh ‣ Normals ‣ Copy Vectors

If a single normal is selected, copy it to an internal vector buffer.

Paste Vectors¶

Mesh ‣ Normals ‣ Paste Vectors

Replace the selected normals with the one in the internal vector buffer.

Smoothen Vectors¶

Mesh ‣ Normals ‣ Smoothen Vectors

Adjust the normals to bring them closer to their adjacent vertex normals.

Reset Vectors¶

Mesh ‣ Normals ‣ Reset Vectors

Put normals back the to default calculation of the normals.

Select by Face Strength¶

Mesh ‣ Normals ‣ Select by Face Strength

Use the submenu to pick one of Weak, Medium, or Strong. Then this tool selects those faces that have the chosen face strength.

Set Face Strength¶

Mesh ‣ Normals ‣ Set Face Strength

Use the submenu to pick one of Weak, Medium, or Strong. Then this tool changes the Face Strength of currently selected faces to the chosen face strength.

© Copyright : This page is licensed under a CC-BY-SA 4.0 Int. License

Show Normals

For Blender 2.8+/2.9+ and newer the way Normals are shown has changed slightly in that the settings are no longer part of what was View Properties. Instead the options can now be found in Overlay.

Design note: with Blender 2.8+/2.9+ objects render doubled-sided by default based on Viewport Shading, culling this to determine which way a surface might be pointing (single-sided rendering) differs as a result. Normals helps in this regard by quickly indicating surface orientation without toggling settings on/off per each mode.

Normals

In Blender there are two distinct types of Normal that can be displayed, Vertex and Face, with an ancillary third, Split, indicating these same elements in relation to breaks in surfaces continuity (e.g. as a consequence of Shade/Mesh Smoothing). Normals can be shown as an individual class or type e.g. vertex normals, or in combination with another or all options, e.g. vertex and/or + vace and/or + split. When enabled, Normals are displayed in Blender as a thin coloured line, depending on the type, perpendicular to the element illustrating its orientation relative to neighbouring elements, a flat plain for example, would display a line at 90° to its surface, a subdivided flat plain, several such lines.

Design note: in Blender a Normal generally identifies an averaged XYZ coordinate in 3D space that’s relative to an objects Origin – if an object in Object Mode, or complete mesh in Edit Mode, is manipulated (moved, rotated or scaled) it has no effect on the orientation of a Normal unless the associated element itself, the individual vertex or face, is directly modified or manipulated.

Normals point perpendicular to element

Normals (blue lines) point perpendicular [green] to their respective elements, Vertex or Face [red], indicating the orientation of said element, in particular with respect to its neighbours.

Enable Normals

To activate Normals, select the object or objects in question and switch to Edit Mode ( Tab ).

Design note: Normals only display in Edit Mode and are shown globally (not selection based).

Here, in the 3D View Header click in the Overlays button upper-right to access the Viewport Overlays drop-down and towards the bottom click the appropriate icon, Display Vertex Normals to show normals for vertexes, Display Normals for faces and surfaces (including Ngons etc.) and/or Display Split Normals to show the orientation of vertex normals that are split (surface continuity breaks). A set of lines will appear coloured dark-blue, pale-blue and pink respectively.

Design note: the length of a normal can be adjusted to accommodate working at different scales, to do this change the Size: value (length is relative to grid scale, the default 0.10 is 1/10th of 1 Unit but may appear longer on some projects that on others due to scale differences, which necessarily prompt higher values to be used, i.e. a line that’s 0.10 in one project might need to be 1.00 to appear the same in another.

Activating Normals for display

To enabled Normals so they’re visible in the 3D View click the Overlay button then set the option in the Viewport Overlays menu – Display Vertex Normal, Display Normals and Display Split Normals.

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

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