Adding Boxes to a 3D scene
creaticodeteacher2-mail last edited by creaticodeta2-mail
Boxes are the most basic building blocks for 3D worlds. For example, in Minecraft, you use boxes to compose all kinds of objects.
To add a box in your scene, use the add box block from the 3D Object category:
You can set the color of the box by clicking on the color input and then moving the slider. Note that “Saturation” controls how intense the color is, and “Brightness” controls how bright or dark the color is. “Transparency” allows you to make the box transparent.
For example, these 3 green boxes have transparency values of 0, 30 and 60. The higher the value, the more transparent it is. In fact, you can even make an invisible box by setting transparency to 100!
You can also use the up and down arrows to change the values by 1 each time. This gives you more control in case you want to set an exact number:
Size in x/y/z
These 3 numbers control the size of the box in each of the x, y and z directions. For example, the following program adds a box with sizes of 400 for X, 300 for Y, and 200 for Z:
The edge radius property gives your box rounded edges and corners. A larger value will make the corners of the box more rounded. For example, the following picture shows the difference between edge radiuses of 0, 10 and 30:
You can give the new box a name using the “as” input field at the end. See Names and Sprite Objects for more details.
By changing the properties above, you can make many different types of boxes, such as:
You can also add a box with different colors on each of the 6 faces using this block:
This block works very similarly to the “add box” block, except that you can set 6 colors, and you can not set the edge radius with it.
The 6 inputs controls the colors of the “top”, “bottom”, “right”, “left”, “back”, “front” faces. Note that the entire box has only one transparency, and it can be set using the first input’s transparency slider. Here is an example: