Vèrtexs

Referència

Mode:

Mode objecte

Plafó:

Propietats ‣ Propietats d’objecte ‣ Instanciació

Instance Vertices allows you to replicate child objects at the location of every vertex of the parent object.

Nota

The relative Object Origin position of the parent and child objects determines offset instanced geometry from parent vertex.

Align to Vertex Normal

Rotates all instanced objects according to the corresponding vertex normals of the parent mesh.

Per a canviar l’eix de direccionament dels objectes instanciats, seleccioneu l’objecte fill i canvieu-li el Eix de trajectòria <bpy.types.Object.track_axis.

There are actually two approaches to modeling using instanced vertices. They can be used as an arranging tool, allowing you to model geometrical arrangements of objects (e.g. the columns of a Greek temple, the trees in a garden, the desks in a classroom). The object can be of any object type which Blender supports. The second approach is to use them to model an object starting from a single part of it (e.g. the spikes in a club, the thorns of a sea-urchin, the tiles in a wall, the petals in a flower).

Nota

Download Example Blend-File

You can download a file with the examples described on this page. In this blend, the first example, a monkey parented to a circle is on layer 1; while a tentacle parented to an icosphere is on layer 2.

Utilització

Instanced Vertices as an Arranging Tool

All you need is a base object (e.g. the tree or the column) and a pattern mesh with its vertices following the pattern you have in mind. In this section, we will use a simple scene for the following part. We will be using a monkey head located at the origin of the coordinate system as our base object and a circle at the same location as our parent mesh.

../../../../_images/scene-layout_object_properties_instancing_verts_monkey-before.png

A monkey head and a circle.

../../../../_images/scene-layout_object_properties_instancing_verts_monkey-after.png

Instanced monkeys on Vertices.

First, in Object Mode, select the base object and Shift-LMB to add the circle to the selection (order is very important here), and Ctrl-P or Object ‣ Parent ‣ Object to parent the base object to the circle. Now, the circle is the parent of the monkey; if you move the circle, the monkey will follow it.

With only the circle selected, enable Instancing Vertices; a monkey head should be placed at every vertex of the circle.

The original monkey head at the center and the parent mesh are still shown in the 3D Viewport but neither will be rendered. If the placement and rotation of your monkey head are odd, you might need to clear its rotation Alt-R, scale Alt-S, location Alt-G, and origin Object ‣ Clear ‣ Origin.

Rearranging

If you now select the base object and modify it in either Object or Edit Mode, all changes will also affect the shape of all instanced objects. You can also select the parent mesh to modify the arrangement of the instances; adding vertices will also add more base objects.

Note that the base objects will inherit changes made to the parent mesh in Object Mode, but not in Edit Mode. So scaling the circle up in Object Mode will enlarge the monkey head, while scaling the circle up in Edit Mode will only increase the distance between the base objects.

Orientació

The orientation of the base objects can be controlled by enabling Align to Vertex Normal in the Instancing panel. This will rotate all base objects according to the vertex normals of the parent mesh.

Per a canviar l’orientació dels objectes instanciats, seleccioneu l’objecte base i canvieu-li el Eix de trajectòria <bpy.types.Object.track_axis.

Output of various orientations.
../../../../_images/scene-layout_object_properties_instancing_verts_orientation.png

Orientation enabled, orientation +Y.

../../../../_images/scene-layout_object_properties_instancing_verts_negy.png

Negative Y.

../../../../_images/scene-layout_object_properties_instancing_verts_posx.png

Positive X.

../../../../_images/scene-layout_object_properties_instancing_verts_posz.png

Positive Z, up X.

Nota

The axes of an object can be made visible in the Properties ‣ Object Properties ‣ Viewport Display panel. To display the vertex normals of the parent mesh, enter Edit Mode and enable this visualization in the Display & Shading ‣ Viewport Overlays ‣ Normals where you can also resize the displayed normals as necessary.

Instanced Vertices as a Modeling Tool

Es poden fer models molt interessants utilitzant Instanciar vèrtexs i un primitiu estàndard. En aquest exemple, es va fer un senzill tentacle extrudint un cub un parell de vegades. Llavors se li va assignar a l’objecte tentacle una polisfera com a pare. Amb Alinear a normal de vèrtex habilitat per a la malla pare (la polisfera), l’orientació de l’objecte base (el tentacle) es va adaptar a les normals de vèrtex de la malla pare (en aquest cas el tentacle va rotar -90 sobre l’eix X en Mode edició).

../../../../_images/scene-layout_object_properties_instancing_verts_tentacle.png

A simple tentacle set to smooth.

../../../../_images/scene-layout_object_properties_instancing_verts_norot.png

Tentacles instanced onto the parent mesh.

../../../../_images/scene-layout_object_properties_instancing_verts_rot.png

Align to Vertex Normal enabled to align instanced geometry.

As in the previous example, the shape and proportions of the arrangement can now be tweaked.

Per a convertir tota la geometria instanciada en objectes reals, seleccioneu la polisfera i Make Instances Real. Per a fer de polisfera i tentacle un sol objecte, assegureu-vos que estan tots dos seleccionats i aneu a Objecte ‣ Unir, Ctrl-J.

Vegeu també

Other duplication methods are listed here.