Navigation

    CreatiCode Scratch Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode

    Adding Boxes to a 3D scene

    3D Blocks
    1
    1
    666
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      creaticodeteacher2-mail last edited by admin

       

      Prerequisite

      • The 3D Axis

      Introduction

      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:

       

      Parameters

      Color

      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!

      ccimg||700||,

       
      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:

      ccimg2||700||,

      ccimg||425||,

       

      Edge Radius

      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:

       

      As

      You can give the new box a name using the “as” input field at the end. See Names and Sprite Objects for more details.

       

      Demo

      By changing the properties above, you can make many different types of boxes, such as:

       

      6-Colored Boxes

      You can also add a box with different colors on each of the 6 faces using this block:

      ccimg2||900||,

      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.

      Color Inputs

      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:

      ccimg2||900||,

       

      Learn More

      • 3D Coordinates and Positions
      1 Reply Last reply Reply Quote 0
      • Pinned by  info-creaticode info-creaticode 
      • Referenced by  C creaticodeteacher2-mail 
      • Referenced by  C creaticodeteacher2-mail 
      • Referenced by  C creaticodeteacher2-mail 
      • Referenced by  C creaticodeteacher2-mail 
      • Referenced by  C creaticodeteacher2-mail 
      • Referenced by  C creaticodeteacher2-mail 
      • Referenced by  C creaticodeteacher2-mail 
      • Referenced by  info-creaticode info-creaticode 
      • Referenced by  info-creaticode info-creaticode 
      • Referenced by  info-creaticode info-creaticode 
      • Referenced by  info-creaticode info-creaticode 
      • Referenced by  info-creaticode info-creaticode 
      • Referenced by  info-creaticode info-creaticode 
      • Referenced by  info-creaticode info-creaticode 
      • Referenced by  info-creaticode info-creaticode 
      • Referenced by  info-creaticode info-creaticode 
      • Referenced by  info-creaticode info-creaticode 
      • Referenced by  info-creaticode info-creaticode 
      • Referenced by  info-creaticode info-creaticode 
      • Referenced by  info-creaticode info-creaticode 
      • Referenced by  info-creaticode info-creaticode 
      • Referenced by  info-creaticode info-creaticode 
      • Referenced by  info-creaticode info-creaticode 
      • Referenced by  info-creaticode info-creaticode 
      • Referenced by  info-creaticode info-creaticode 
      • Referenced by  info-creaticode info-creaticode 
      • Referenced by  info-creaticode info-creaticode 
      • Referenced by  info-creaticode info-creaticode 
      • Referenced by  info-creaticode info-creaticode 
      • Referenced by  info-creaticode info-creaticode 
      • Referenced by  info-creaticode info-creaticode 
      • First post
        Last post