# 03.01 Creating a cake (WIP)

**If you haven't learned how to create a basic prop, please do so here:** [02.01-introduction](https://deepest-inertia-studio.gitbook.io/pyroworks-modding-tool-guide/02.-making-a-basic-prop/02.01-introduction "mention")**.**

## Creating the model

First, go to into Blender, select all objects **\[A]** and delete them **\[DEL]**. Press **\[SHIFT + A]** and select **Mesh->Cylinder**. This is where we'll change the caliber of our cake. I'm planning on making a very basic peony cake, so I'll make it 30mm. On the right side in the **Object Properties** tab, set the scale to 0.03. To set the appropriate scale for the caliber, just divide the caliber in mm by a 1000. For example 20mm would have 0.02. Set it in all axes for now.

<figure><img src="https://1829292589-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTVLyyVLToWwLXqMerFSR%2Fuploads%2FuC8JU6KZ9sLZv7Fg8G1k%2Fobraz.png?alt=media&#x26;token=4420cce0-16b9-44f4-ab40-34dd2239cb48" alt=""><figcaption><p>How it currently looks, along with the object properties tab</p></figcaption></figure>

Of course you can see it's waaay too long, to change it press **\[S]** and then scale along the Z axis **\[Z].** Move your mouse up and down to change the height of the tube. Then go into edit mode **\[TAB]** and select the top of the cylinder with **\[LEFT CLICK]** and then press **\[I]**. Move your mouse to change the thickness of the tube. After you've found a good thickness, press **\[LEFT CLICK]** again and press **\[E]** and then move your mouse down almost to the bottom. If you put it too low or too high, you can press **\[G]** and then **\[Z]** to change it again. You can go out of Edit Mode again using **\[TAB].**

<figure><img src="https://1829292589-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTVLyyVLToWwLXqMerFSR%2Fuploads%2FHYzutrv2nIjGn7pVKno0%2Fobraz.png?alt=media&#x26;token=c9253157-eaf7-44d8-9e10-c848aa71cebc" alt=""><figcaption><p>The almost finished tube</p></figcaption></figure>

Now, press **\[F3]** and search for **Shade Auto Smooth** and press enter. This should make our tube look way smoother. Now, we just need to add more of them. I plan to make a 25 shot cake. This would mean, it's a 5x5 grid of tubes. Go into the **Modifier Properties** on the side where the object properties are **(the wrench icon)** and click **Add Modifier**, then look for **Array** and add it. Change the count to 5, and then add another array modifier, but change the factor from \[1,0,0] to \[0,1,0].

<figure><img src="https://1829292589-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTVLyyVLToWwLXqMerFSR%2Fuploads%2FcEQRY0hnD3o9iYTFSYhh%2Fobraz.png?alt=media&#x26;token=8a414ce3-324a-4c36-8c8e-734483b238cc" alt=""><figcaption><p>Finished tubes</p></figcaption></figure>

Once you're done, hover over the modifier and press **\[CTRL + A]** to apply it. Do it for the other one as well. Once you're done, there should be no modifiers left.

<figure><img src="https://1829292589-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTVLyyVLToWwLXqMerFSR%2Fuploads%2F05vI43Vc3hPplKUhojjj%2Fobraz.png?alt=media&#x26;token=9e7d0244-61b1-4e38-ba9c-5ac245748b51" alt=""><figcaption></figcaption></figure>

Now you can see that the tubes are not in the center (the 3D cursor is the center of our object)

<figure><img src="https://1829292589-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTVLyyVLToWwLXqMerFSR%2Fuploads%2FdhsKAPcCXmjHJJNYkRSg%2Fobraz.png?alt=media&#x26;token=2a484b0e-216f-475d-89c1-6ae2cd629532" alt=""><figcaption><p>How the 3D cursor looks</p></figcaption></figure>

To fix it, select our tubes with **\[LEFT CLICK]** (you can see it's selected if you see an orange outline around it). Now go into Edit mode \[TAB] and press **\[SHIFT + S]** and select **Selection to Cursor (Keep Offset)**. Now our tubes should be in the center.

<figure><img src="https://1829292589-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTVLyyVLToWwLXqMerFSR%2Fuploads%2FMMtOyLjjlpPI8O2nuvB6%2Fobraz.png?alt=media&#x26;token=c3bd2510-e81a-4c12-995d-67357c3f4c30" alt=""><figcaption><p>The tubes in the center</p></figcaption></figure>

Next, we need to add a box around it. Press Shift+A and select Mesh->Cube. You can see it's very big, so scale it down using **\[S]**.&#x20;

<figure><img src="https://1829292589-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTVLyyVLToWwLXqMerFSR%2Fuploads%2FrbWFkuDPqMAdQVrTZ1A1%2Fobraz.png?alt=media&#x26;token=888ffc7e-6e2c-4a71-8a47-88cec55c8227" alt=""><figcaption><p>Matched size of the box.</p></figcaption></figure>

Now you can change it's size by pressing **\[S]** and selecting seperate axes (by pressing **\[X]**, **\[Y]**, or **\[Z]** after pressing **\[S]**). In my case, I needed to scale it up so I pressed **\[S]** and then **\[Z]** and matched it. Note that you might need to move the box a little down by pressing **\[G]** and then **\[Z]** to make sure the bottom of our tubes isnt visible.

<figure><img src="https://1829292589-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTVLyyVLToWwLXqMerFSR%2Fuploads%2FXrKtiQV9Et6bKbZSylSN%2Fobraz.png?alt=media&#x26;token=1a619b90-391c-4a94-9fae-887d9bb21d94" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1829292589-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTVLyyVLToWwLXqMerFSR%2Fuploads%2FBDlljWKpfO0hFXRADhTH%2Fobraz.png?alt=media&#x26;token=eae5d438-bcff-4d81-a0ae-795c2c6b745e" alt=""><figcaption><p>The box moved down</p></figcaption></figure>

Now we need to apply transforms for both the tubes and the box. With the box selected, press **\[CTRL + A]** and press **Apply Transform**. Do the same with the tubes. We're almost done! Now we just need to UV unwrap the cube - that means being able to put the label on it.

### Video tutorial

{% embed url="<https://www.youtube.com/watch?v=Ich4COAmR0I>" %}

## UV Unwrapping

Go into the shading tab on top and then select UV editor from here.

<figure><img src="https://1829292589-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTVLyyVLToWwLXqMerFSR%2Fuploads%2FF2qHYRavRM1qo2EbYEBa%2Fobraz.png?alt=media&#x26;token=f9075e95-b82c-4098-ba05-bda4c53cd0c6" alt=""><figcaption><p>The shading tab on top.</p></figcaption></figure>

With the UV editor tab selected, you should see our Cube UV basically done so we don't need to do much. We'll need to extract this UV to create a label for it. To export, press **UV->Export UV Layout** and export it wherever you want on your PC.

We'll also need to UV unwrap our tubes to make sure the cardboard textures looks good on them. First of all hide our main cube by pressing the eye icon of our box in hierarchy, then select our tubes with **\[Left Click]** and go into edit mode **\[TAB]** and select all **\[A]** (make sure all of the tubes are outlined orange) then press **\[U]** and select **Smart UV Project.** There's no need to Export the UV for the tubes.

Next we also need to add materials. With the tubes selected, go into **Material Properties** window and press **New**. Rename it to for example **Cardboard**. Next show our Box by pressing the eye icon in hierarchy again and select it. Add a material and call it for example **Label**. This should be it and we can go on to create our label.

### Video tutorial

## Creating a label

Hop in to your image editor of choice and create a new canvas, I usually create it with the size of 4096x4096. Import the UV map and scale it so it stretches across the entire canvas. Now you can start drawing or pasting in the label of the firework you're creating. Here's a guide for the directions:

<figure><img src="https://1829292589-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTVLyyVLToWwLXqMerFSR%2Fuploads%2FAUD4MuVMpS6R5OSEJQ03%2Fobraz.png?alt=media&#x26;token=8c21aace-1703-477e-8d27-f6531e0cd0ed" alt=""><figcaption><p>The directions on your UV</p></figcaption></figure>

###

## Video Tutorial

* [Creating a label in Krita by PyroLucaHD](https://www.youtube.com/watch?v=z1nQ0r2C1SE)
* Creating a label in GIMP by me
