Reader small image

You're reading from  The Ultimate Roblox Game Building Cookbook

Product typeBook
Published inDec 2023
Reading LevelN/a
PublisherPackt
ISBN-139781805121596
Edition1st Edition
Languages
Tools
Concepts
Right arrow
Author (1)
Taylor Field-Draper
Taylor Field-Draper
author image
Taylor Field-Draper

Taylor Field-Draper is a veteran Roblox developer based in Alberta, Canada, who has been creating on the platform for over 15 years, specializing in level and game design, building, and 3D generalist work. At the time of writing this book, he works as the lead producer for special projects at Gamefam where he oversees the direction, conceptualization, and art production for some of Roblox's most popular events, particularly virtual concerts. Prior to working at Gamefam, Taylor was a freelance game developer for numerous Roblox-focused studios and dozens of games that have collectively garnered billions of accumulative visits.
Read more about Taylor Field-Draper

Right arrow

Creating wooden crates

One of the most widely used props across all genres of games is the humble crate. They come in many different shapes and sizes and make for a great asset that can be duplicated and stacked on top of one another. Crate models are also a prop that can be very easily scaled, stacked, and modified. In this recipe, we will be going over how to create a basic wooden crate model.

How to do it…

We will begin the recipe by creating a large cube and then creating an extruded outline along the top and bottom. Next, we will create corner and diagonal braces. To finish the recipe, we will apply color and material to the crate after we group and name the model.

Let us start:

  1. Insert a square block part onto the baseplate.
  2. Rescale the part to be a large cube. In this recipe, the cube size being used is scaled 5, 5, 5 studs.
  3. Next, place a 0.5 x 0.5 stud block across one of the top sides of the cube. Have the part sticking out of the cube by 0.25 studs to create a lip.
  4. Duplicate the top part and add it to the other three top sides. It should look like what is shown in Figure 1.8:
Figure 1.8: Square block outline at the top with square parts

Figure 1.8: Square block outline at the top with square parts

  1. Duplicate the four parts at the top and move them to 0.25 studs below the bottom of the cube.
  2. Duplicate one of the side parts and then place it vertically on all four corners of the box. This completes the initial outline for the box:
Figure 1.9: Parts placed on each corner

Figure 1.9: Parts placed on each corner

  1. To create a diagonal part across the faces of the box, duplicate one of the vertical border parts and move it to the middle of the face.
  2. Rotate the part by increments of 45 degrees until it lines up with the corners:
Figure 1.10: Diagonal brace after rotating

Figure 1.10: Diagonal brace after rotating

  1. Rescale the diagonal part along its x axis to extend out of the other side of the box. This allows us to create the same diagonal shape on the other side of the box without using an extra part, which helps keep our total part count low, as seen in the cut-away view in Figure 1.11:
Figure 1.11: Diagonal brace extended onto both sides

Figure 1.11: Diagonal brace extended onto both sides

  1. Rescale the diagonal part inward 0.15 studs to give another layer of depth to the model.
  2. Duplicate the diagonal part and then rotate the duplicate part 90 degrees.
  3. Next, group the parts into a model.
  4. Rename your model Crate.
  5. Now, color the parts in your Crate model. Use a darker shade on the inside (or outside) parts of the crate so that the depth of the braces stands out better, as seen in Figure 1.10. In this example, I used (108, 88, 75) for the inside parts and (138, 112, 96) for the outer crate parts.
  6. Finally, add material to your crate. Wood was the material used in this recipe’s example.

    If you are using the Wood material, use the MaterialFlip plugin to fix any incorrect woodgrain flow.

That completes the recipe for building crates. Make sure to anchor your model if you have not done so already!

Figure 1.12: Finished crate

Figure 1.12: Finished crate

Now, you can use this model as a template to create a wide variety of crates to use across your maps.

There’s more…

Z-clipping, also known as Z-fighting, occurs when two faces intersect with each other. This results in both materials fighting to be rendered and is often seen as flickering on the surface. To fix this, move the flickering parts up by at least 0.001studs.

Previous PageNext Page
You have been reading a chapter from
The Ultimate Roblox Game Building Cookbook
Published in: Dec 2023Publisher: PacktISBN-13: 9781805121596
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at ₹800/month. Cancel anytime

Author (1)

author image
Taylor Field-Draper

Taylor Field-Draper is a veteran Roblox developer based in Alberta, Canada, who has been creating on the platform for over 15 years, specializing in level and game design, building, and 3D generalist work. At the time of writing this book, he works as the lead producer for special projects at Gamefam where he oversees the direction, conceptualization, and art production for some of Roblox's most popular events, particularly virtual concerts. Prior to working at Gamefam, Taylor was a freelance game developer for numerous Roblox-focused studios and dozens of games that have collectively garnered billions of accumulative visits.
Read more about Taylor Field-Draper