Creating Realistic 3D Plant 2: Bending Leaves Using Curves
In the previous tutorial, we created an awesome double-sided leaf. Although looking good, leaves have all sorts of bends and twists.
In order to shape it without destroying the mesh, we need a way to bend and deform the object. In this tutorial, you will learn how to create a non-destructive setup that allows for easy and fast shaping of any object. We will cover Curves, Modifiers, Parents, and Collections!
Preparing The Stem
1. Stem Correction
Taking the leaf from the previous tutorial, we can begin preparing it for bending.
Just like we did in the last tutorial, it's good to duplicate the object before making changes that cannot be reversed.
Right now, the stem is bent to the left, which isn't something we want. We can bend it later to fit our needs, but at this point we must straighten it to ensure proper working of modifiers. The best way to straighten an object without losing its length is by rotating.
2. Transform Pivot Point
In order to make the rotation precise we need to change our Pivot Point. Let's go ahead and click on the Transform Pivot Point box in the viewport's middle top and select 3D Cursor.
3. Preparing The Rotation
Select the leaf and enter Edit Mode. Lets find the edge section where the bending starts. Place the 3D Cursor with Shift + Right Mouse Click in the middle of it and select all of the vertices beneath it. Remember that if you want to select vertices under the visible mesh, you must be in Wireframe Mode or enable Toggle X-Ray; otherwise, only the visible portion of the mesh will be selected.
4. Rotating
Now we need to rotate the bottom part of the mesh with R until the first selected edge section of the stem aligns with the upper section. After first rotate, place the 3D Cursor on the first selected edge section, deselect it, and rotate again. Repeat until the stem is straightened.
You may also verify that the stem is straight by pressing B, which will display Horizontal and Vertical lines that will provide help.
5. Origin
It's always good to have Origin located in the right place on the mesh. It will ensure proper working of the modifiers and help with transforming object.
Let's go into Edit Mode and select the edge loop at the end of the stem. Press Shift + S Cursor to Selected at the bottom of the pie menu. Go out of the Edit Mode to Object Mode and with the object selected click Right Mouse Button Set Origin Origin to 3D Cursor. We can also apply the scale and rotation of the object with Ctrl + A Rotation and Scale.
With the leaf having a straight form and origin in the right place we are ready to make it bend! We will use Curves for this job.
Curves
In Blender, curves are one of the fundamental types of objects that can be used to create and manipulate 3D shapes. A curve is a collection of control points and handles that define a path or shape in 3D space.
There are several types of curves in Blender, including:
Bezier curvesNURBS curvesPaths
Bezier curves are the most commonly used type of curves in Blender, and are made up of a series of connected control points.
Each control point on a Bezier curve has two handles, which can be used to adjust the curvature and direction of the curve. By adjusting the position and orientation of these handles, you can create curves with a wide range of shapes and contours.
In our case, we will use a curve to manipulate the shape of the leaf.
6. Adding The Curve
Using curves to manipulate objects can be a little confusing, but we will explain key elements to make it work correctly.
If you are an experienced Blender user, you can use a Bezier curve, which will give you more control in manual shaping, but it will be slower. However, we will use Path curve because it will allow us to use a quick and nifty method of shaping using Object Constraint.
With the 3D Cursor placed on the Origin of the leaf, let's press Shift + A Curve Path. It will spawn a big line in the viewport. Like every other object, we should name it properly, so let's press F2 and write something appropriate.
Let's rotate it to the left with R + Z + -90 and scale it with S + 0.13 (This is the value that provides correct dimensions if the leafs scale is correct. If it is not slightly larger than the size of the leaf, you can scale it manually by pressing S and moving the mouse).
Having a curve rotated to the left will let us bend top of the leaf without moving the whole mesh.
7. Origin Of The Curve
We need to set the Origin in the correct place, and we will do it the same way as with the leaf. With the curve selected, let's go into Edit Mode. We will see that this curve consists of 5 Control Points. Let's select the bottom Control Point and press Shift + S Cursor to Selected. Go out of the Edit Mode into Object Mode and press Right Mouse Click Set Origin Origin to 3D Cursor.
Curve modifier to it.8. Curve Modifier
We have now prepared a proper setup for the Curve modifier to function correctly. Lets select the leaf, go into the Modifier Properties tab and add Curve modifier. Lastly, we can select our curve in the Curve Object.
9. The Curve Magic
Now if we select our curve and go into Edit Mode, select any of the Control Points, press G and move we can see the magic happening: by moving a control point, the leaf can be deformed in a smooth and consistent manner.
10. Hook
Let's leave the Control Points as they were on the default positions and select the top one. We now want to create a controller that will let us manipulate the curve without selecting it and going into Edit Mode every time. It will let us quickly shape a lot of leaves.
With the top Control Point selected lets press Ctrl + H Hook to New Object. This operation will add a Hook Modifier to the curve and a new empty object that will be our bending controller.
11. Changing Size Of The Controller
We can now go out into Object Mode and select the controller. It is far too large, so we should make it smaller. Let's go into the Object Data Properties tab and change its size to something like 2 cm.
12. Life Got Easier
Now we can see that moving the controller in the Object Mode is deforming the leaf!
13. Adding The Parent
Now we want to create a Parent Object that will hold the whole leaf setup together. Let's place the 3D Cursor on the Origin of the leaf. Shift + A Empty Sphere (You can use any empty object you want, but having different shapes for different tasks is a good idea).
Lets change its size the same way we did for the controller empty in Object Data Properties.
14. Setting The Parent
Now we want to select all of the leafs setup components:
- leaf
- curve
- controller
and shift select the parent empty the last. Press Ctrl + P Object. Now we can see that moving/rotating/scaling the parent object will also affect the whole leaf setup, and from now on this will be the way of doing such operations on the leaf.
Collections
Its always good to have things organized. We can sort things in Blender by grouping them in a Collection. They are very useful when we want to hide or select some stuff.
15. Adding New Collections
We can add a new collections in the Outliner Editor. Simply Right Mouse Click on an empty space in the Outliner Editor and select New Collection.
16. Sorting The Objects In Collections
Lets Create separate collections for:
- Leaf Controllers
- Leaf Curves
- Leaf Parents
- Leaves
We can add an object to a collection in two ways:
-
In the viewport we can select an object, press M and select the collection.
-
Second method requires drag and dropping an object on collection in the
Outliner Editor. Our leaf setup is currently hidden under leafs parent, we can expand it to see the parented objects.
Now if we duplicate the leaf setup the objects will be sorted in the correct collections. This gives us opportunity to quickly select sorted objects by Right Mouse Click on a collection and Select Objects.
Set Of The Leaves
In the next chapters we will go through process of creating the plant.
Before we continue, it's good to prepare more leaf objects so that our plant will have a whole variation of leaves! Search for parts that you like on other atlases and gain some practice by modeling them the same way we did in the first tutorial. At this point its also important to do the Tutorial nr 5 to check if the displacement is working correctly on the leaves.