Create a Candy Cane & Holiday Ornament in Autodesk Maya

Jan 04 2017 Extras, Featured Content, Tutorials

Greetings!

In celebration of the holidays we have put together a beginners tutorial that will allow you to create your own candy cane and ornament in 3D! For this tutorial we will be working exclusively in Autodesk Maya.

Final Product – What We Will Create:

Final Product

Step 1 – Find Reference

  • Reference is super important when working in 3D. A candy cane is simple enough that we could probably freehand it. However, having a reference image will always make your final product more accurate and realistic.

    Here is the image I will be using to trace my curve in Maya:

  • Candy Cane Reference

    Step 2 – Importing Image Planes

      1

    • To start, we are going to set up our reference image so we can draw an accurate curve. Once you have Maya open there will be four orthographic panels. Click the top left box and hit your space bar to enter the “Top View.”
    • 2

    • Click the Image Plane button (as shown) to import your Candy Cane image.
    • 3

    • Browse your computer for your image and hit open. To stay organized, it’s always best to save any reference images/textures in your projects “sourceimages” folder.
    • 4

    • Once we have our Candy Cane image imported, click on the Channel box located to the far right of the screen. Inside the Channel box adjust the Alpha Gain to 0.03. This will make your image plane transparent so you can see your object and curve better.

    Step 3 – Curve Tool

    Now that our image planes are set up, we are ready to build our curve.

      5

    • Click Create. In the drop-down menu select Curve Tools and choose any of the listed tools. It doesn’t matter which tool you decide to use. All curve tools will yield similar results. The only difference between them is the drawing technique. I am going to use the CV Curve Tool.
    • 6

    • Start at the bottom of the candy cane and follow the shape by clicking with your left-mouse-button to create points. Don’t worry about making it completely perfect, you can adjust these points after your curve has been created. When you are finished, hit enter.
    • 7

    • The line you created will turn green. This means you now have an editable curve. Right-mouse-click on your curve and choose the Control Vertex option. This will allow you to edit the points on your curve.
    • 8

    • To edit a point, simply click the pink vertices (selected vertices will become yellow) and use your manipulation tool (W) to adjust your points. Position your points to match the shape of your Candy Cane image.

    Step 4 – Extruding Shapes

    Now that our curve is created we want to turn it into a polygon shape. To do this we will use a few easy steps. I found this way yields the best results, and it’s a cool trick that we will also use later when we build our ornament.

      9

    • Return to your orthographic view and enter the perspective view.
    • 10

    • Select the Polygon tab and click on the Polygon Plane to add a plane to your scene. When the plane drops into the scene we want it to have no divisions. On the right in the Channels box you will notice there are two boxes for Subdivisions Width and Height. Mine came in with 10 divisions each way. We don’t want this. If you have this issue, set both of these to 1.
    • 11

    • Now we want to rotate our plane so it’s following the direction of our curve. In the Channels box type 90 into Rotate X.
    • 12

    • Before we snap our shape to the curve, we need to rebuild our curve. First have your curve selected. Then, in the top menu select Curves. Hover your mouse over Rebuild. You want to click on the little option box I have indicated in red.
    • 12

    • A menu will pop up with different options. Make sure yours matches mine as shown. What’s important here is that we indicate we want 25 spans. Hit Rebuild when finished.
    • 12

    • Now that we have rebuilt our curve, make sure you have the move tool active (w) and your plane selected (highlighted green.) With the move tool active, hold down the shift key and click on your curve. This allows you to select both your plane and the curve. Once you have both objects selected, hold the right-mouse-button down over your curve and select Control Vertex.
    • 13

    • This will bring up your curve points once again. We are looking for the start of our curve. The best way to know where that is, is to find the points that look different from the others. The first one will be an outlined square vs a dot. The second will be shaped like a lower case “u.” I have indicated mine in red above. We want to snap our plane to the “u” shaped point.
    • 14

    • Once you have indicated where your “u” shaped point is, do not click on the point. Instead, hold down your V key. You will notice the middle of your move manipulation tool will turn from a square to a circle. This means that you are ready to snap your object to a point.
    • 15

    • You might want to move your square a little closer to the “u” point so it snaps easier. Once you have done this, hold down the V key, middle-mouse-click on the “u” shaped point. Your plane should instantly snap to the point. Your plane is now connected to your curve!

      (Note: If your plane is a little big like mine you can scale it up or down to your desire. Obviously the smaller your plane is, the thinner your candy cane will be. To do this just hit the R key and select the yellow square in the middle of your manipulation tool to scale up and down.)

    • 16

    • We are now ready to extrude. To begin, right-mouse-click on your plane and select Face. Once you have done this, select the face that points in direction of your curve. Your face will turn orange when selected.
    • 17

    • With the face of your plane selected, shift-click on your curve to select that as well.
    • 18

    • To extrude, click on Edit Mesh in the top menu. Then select the Extrude Option Box.
    • 19

    • In this menu, you want to change the Divisions to 25, just like we indicated when we rebuilt the curve. This will make each segment match every point on the curve. When you are finished, hit Extrude.
    • 20

    • Sweet! We have a Candy Cane! If you have black faces like I do above, this is a Normals issue and can be easily fixed. If your faces are grey, ignore the next step.
    • 21

    • In the Mesh Display menu, just select Reverse. This should fix the issue.

    Step 5 – Twist

    We’re almost finished. Now we are going to add the Twist for the Candy Cane Stripes. This step isn’t necessary depending on how you want to do your textures.

      22

    • In the Channels box, there will be a polyExtrudeFace1 option under Inputs, click on this and it will give us several different options. Scroll down and find Twist.
    • 23

    • This part all depends on your preference. You can add as many twists as you want. I went for about 1300 twists.

    Step 6 – Texture

    Now for the red and white stripes! You can use a photo texture and apply it to the entire object, or you can make your own simple stripes as I will show.

      24

    • To quickly select your faces, click on your first face and then shift-double-click on the face next to it. This will make a quick selection.
    • 25

    • Right-click on one of the faces, and select Assign New Material in the drop down menu.
    • 26

    • In the pop-up menu choose Phong.
    • 27

    • Once the material has been applied, to the right you will see that the Attribute Editor has appeared. Double-click on the grey box in the first Color option and change it to red.
    • Repeat these steps to make the white stripes on the remaining faces.

    Step 7 – Smooth

    We’re almost there, but this thing still looks kinda crazy. Let’s smooth it out.

      28

    • To smooth our candy cane out, select Mesh and in the drop down menu and then select the option box for Smooth.
    • 29

    • Put 2 in the Division levels. You can increase the smoothness by adding division levels, but keep in mind the more you smooth your geometry, the more likely Maya is to crash. Hit Smooth.
    • 30

    • And tada! We have made a candy cane!

    Creating an Ornament

    Once you have finished the Candy Cane tutorial, making this ornament will be pretty easy. We will be reusing a few steps as well.

    Step 1 – Ornament Base

      1

    • To make the base for our ornament, create a sphere from the Polygons panel.
    • 2

    • Select faces on the top of your sphere (as shown.) Make sure no other faces are selected on any other parts of the sphere.
    • 3

    • Under the Edit Mesh, select Extrude in the drop-down menu.
    • 4

    • Once you’ve hit Extrude, click on the little circle with a line through it. This will orient your manipulation tool’s pivot back to center. Also set your Divisions back to 1 if it is not set to 1 already.
    • 5

    • Click the yellow arrow and extrude up on the Y-axis.
    • 6

    • Right click on the object and select Vertex.
    • 7

    • Click and drag your left-mouse-button over the vertices on the top portion of the ornament. We are going to flatten these out so they take on the correct shape.
    • 8

    • With the scale tool active (R) click the top square (yellow) and scale down to flatten all the vertices out on an even plane. We have finished our base.

    Step 2 – Ornament Topper

    We are now going to make the topper metal piece for our ornament. This is what we will connect the hanging hook to.

      9

    • Now we want to duplicate the base of our ornament. This will make creating the topper much easier and faster. To duplicate an object use Ctrl+D. Do not move the object. Instead go to the Channel box. Under the Display tab, click the last icon that looks like a plane with a sphere. This will create a new layer in your scene called layer1. It will allow you to hide the original base we created.
    • 10

    • If you double-click layer1 you can rename it. I named mine Ornament. Hit Save.
    • 11

    • With the ornament layer selected, click on the box with the V. This will hide your original base ornament. By hiding it, we won’t mess up the original geometry we created.
    • 12

    • With the new geometry selected, select all faces on the object except for the top portion previously created. Hit Delete.
    • 13

    • Now that we have a shape to create the metal topper for our ornament, we will need to center our pivot. To do this go to Modify and select Center Pivot.
    • 14

    • Let’s insert edge loops to help us create that wave effect that most ornaments have on the top. To do this, go under Mesh Tools and then select Insert Edge Loop.
    • 15

    • With the Insert Edge Loop tool active, create edges on every other face as shown above. Try to make them as similar as possible.
    • 16

    • Now select the vertex on each single edge loop as shown. Use Ctrl+left-mouse-button to select more than one vertices at a time.
    • 17

    • With the move tool active, translate down on the Y-axis to pull these points downwards.
    • 18

    • Insert an edge loop towards the top of the shape, as shown.
    • 19

    • Now select all the faces between the two edge loops that are close together. We are going to delete these to make the slits in ornament toppers. Once all faces are selected, hit Delete.
    • 20

    • We are almost done. Now unhide your original Ornament geometry by clicking on the V box again. When the V appears your geometry should be visible once more.
    • 21

    • Make sure your topper is selected and have the scale tool (R) active. Scale your topper up to be slightly larger than your base. Position the geometry up or down as desired until the topper looks correctly placed.
    • 22

    • The last thing we are going to do for the topper is create a simple Torus from our Polygon’s panel.
    • 23

    • With the Torus selected, in the Channel box change the Section Radius to about 0.11.
    • 24

    • Scale and position the Torus to the top of your ornament as desired. Just make sure you put 90 in Rotate Z to position the Torus upright.

    Step 3 – The Hook

    We are going to make the hook that our ornament hangs from. If you followed my Candy Cane tutorial, we are going to use that same method.

      25

    • First, we will have to hide our geometry so we can focus on creating our hook. To do this, drag your left-mouse-button over all objects. Then right-click on your Ornament layer and choose Add Selected Objects. This will add the rest of your ornament geometry into the layer we created. Then, click on the V box to hide everything.
    • 26

    • Next, import an image plane into the top view so you can follow the hook shape. You can also freehand the hook shape if you want.
    • 27

    • In the top view, use the CV Curve Tool to trace or create the shape of the hook.
    • 28

    • I suggest starting from the top of the hook verses the bottom so it will be easier to extrude the shape.
    • 29

    • With your new curve selected go to Curves and select the Rebuild option box.
    • 30

    • Enter 20 into the Number of Spans. Hit Rebuild when finished.
    • 31

    • Create a Plane from the Polygon Panel. In the Channels Box, make sure Subdivisions have a 1 for the width and height.
    • 32

    • Enter 90 in Rotate X and scale the plane down to a small size.
    • 33

    • Like the Candy Cane tutorial, we want to snap the plane to the curve. First, have your plane selected. Then, right-click on the selected curve and then click Control Vertex.
    • 34

    • Snap the plane to the start of your curve (the ‘u’ shaped vertex) by holding down V and middle-mouse-clicking on the point. Make sure you have the move tool active.
    • 35

    • Now that the plane is snapped to the curve, select the face of the plane pointing in the direction of your curve, and then shift-select the curve. Then go to Edit Mesh and click on the Extrude Option Box.
    • 36

    • In the Extrude Option Box, set the Divisions to 20 to match the number we entered when we rebuilt our curve. Hit Extrude when finished.
    • 37

    • You should now have a hook. If any edges are funky, feel free to adjust them. If your geometry is black, just go to Mesh Display and select Reverse to swap the Normals. This should put your geometry back to default grey.
    • 38

    • You can add Edge Loops and adjust if you feel certain areas need them.
    • 39

    • Once you are happy with the shape, go to Modify and then Center Pivot to put your pivot back to the center of the geometry.
    • 40

    • Enter 180 into Rotate X.
    • 41

    • Now delete history on your object so that we can remove the curve from the scene. To do this go to Edit, then Delete By Type, and then select History.
    • 42

    • You can now delete any reference images and curves from your scene.
    • 43

    • Now, unhide your Ornament layer. Position and scale the hook to properly fit your ornament. We’re ready to move onto textures.

    Step 4 – Texture

    Again, you can use photo textures for this if you wish. I am going to show you how to apply simple basic textures just like we did with the Candy Cane.

      44

    • Right-click on the base of your Ornament and select Assign New Material.
    • 45

    • Choose Phong in the materials menu.
    • 46

    • Once the Phong is applied, in the Channels box double-click on the grey box next to Color. Select a color for your ornament. Hit Done.
    • 47

    • Repeat the same steps to create textures for the remaining objects.

    Step 5 – Smooth

    We want to smooth our geometry to remove those hard edges.

      48

    • On the base of the Ornament, we are going to add an edge loop towards the top so that when smoothed it won’t lose its shape.
    • 49

    • To smooth go to Mesh and select the option box for Smooth.
    • 50

    • For the Division levels enter 2. Hit Smooth. Repeat these steps for the rest of your objects. A fast way to do this is to click on the next object and hit the G key. This will repeat the last action you made.
    • 51

    • Once you have finished smoothing objects, you’re all done!

    We hope you enjoyed our Christmas Modeling Tutorial for Beginners. Please keep checking back for more fun stuff in the future. Thank you and Happy Holidays from all of us at Digital Tap!