Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
The Ultimate Roblox Game Building Cookbook

You're reading from   The Ultimate Roblox Game Building Cookbook Design immersive experiences with easy-to-follow recipes for world and game development

Arrow left icon
Product type Paperback
Published in Dec 2023
Publisher Packt
ISBN-13 9781805121596
Length 218 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Taylor Field-Draper Taylor Field-Draper
Author Profile Icon Taylor Field-Draper
Taylor Field-Draper
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Chapter 1: Getting Started with Studio Modeling 2. Chapter 2: Introduction to Solid Modeling and CSG Tools FREE CHAPTER 3. Chapter 3: Sculpting Terrain 4. Chapter 4: Learning to Use VFX 5. Chapter 5: Building a Multiplayer Obby 6. Chapter 6: Designing a House 7. Chapter 7: Single-Player Map Flow 8. Chapter 8: Building a PvP Map 9. Chapter 9: Monetizing Your Experience 10. Chapter 10: Extra Building Recipes 11. Index 12. Other Books You May Enjoy

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.

lock icon The rest of the chapter is locked
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.
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 $19.99/month. Cancel anytime
Banner background image