3D - A Poke Ball (Difficulty: 1)
-
Key Topics Covered
Introduction
In this tutorial, we’ll build a Poke Ball that looks like this:
Step 1 - An “Empty” Scene with 3D Axes
Please create a new project, remove the dog sprite, and add these blocks in the “Empty1” sprite. You can find the “initialize 3D scene” and the “show 3D axis” blocks in the “3D Scene” category.
As shown, the X-axis points to the right, the Y-axis points forward (into the screen), and the Z-axis points up. You can drag your mouse on the stage to rotate the camera around it:
Step 2 - A Dark Grey Ball
Let’s start by adding a dark grey sphere. Please set its size to 300 in all 3 dimensions, and use 64 for the sides count to make the sphere more smooth.
You should get an object like this:
Step 3 - Add a Half-Sphere Cover
There should be a red half-sphere that covers up the poke ball. We can add another sphere that’s slightly larger, with a size of 304 instead of 300, and also a slice of 50 instead of 100.
Step 4 - Rotate the Cover to the Top
Now we need to rotate the red cover to the top. You can use the direction controls in the sprite pane to manually try out the rotation, then add the “rotate to” block using the numbers you get. In this case, we should rotate around the X-axis for -90 (or 270) degrees:
Step 5 - A White Cover at the Bottom
The next step is very similar. We need to add another half-sphere at the bottom, so the rotation angle is 90 degrees.
Step 6 - Reveal the Gap
Now we can’t see the dark ball under the red and white covers. To reveal a gap in the middle, we need to make the covers smaller.
You can do that by reducing the “slice” number from 50 to 48.
Step 7 - Add a Black Cover
Now we need to add a small black cover for the “eye” of the poke ball. It should look like this:
Please think about how to add it before looking at the solution below.Here is one way to do it:
As you can see, we need a slightly larger size so it will cover over the red and white covers. We also need to use a very small “slice” number so it only covers a small area of the sphere.
Step 8 - A Neon Eyeball
Next, let’s add a neon eyeball inside the black eye. Can you give it a try first?
The solution is very similar to that of the black eye. Just need to increase the size a bit more and the “slice” smaller.
Creative Ideas
There are many ways you can build upon this project. Here are some ideas for your inspiration:
-
Different Colors and Textures: you can try different color choices or use new textures for all parts of the poke ball.
-
2 Eyes: you can try to add another eye on the opposite side of the current eye.
-
-