3D - A Poke Ball (Difficulty: 1)
-
Key Topics Covered
Introduction
In this tutorial, we’ll build a Poke Ball that looks like this:
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/6821584b-1658-4fa8-844c-088f52fc0ce0.gif" width="480" style="border-radius: 5px; border: 1px solid #29622d;">
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.
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/43a6f24e-b195-4762-a219-822a46559d96.png" width="400" style="filter: drop-shadow(0.35rem 0.35rem 0.4rem rgba(0, 0, 0, 0.5));">
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:https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/dcebc38b-cc87-4eb8-a3f1-6252211315eb.gif" width="460" style="border-radius: 5px; border: 1px solid #29622d;">
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.
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/ce62a917-c6fb-4ed4-aaf8-1d50cdd2a3c6.png" width="800" style="">
You should get an object like this:https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/2062cac9-3eb1-47e5-a71d-8dc966d16ca2.gif" width="450" style="border-radius: 5px; border: 1px solid #29622d;">
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.
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/166d7150-860a-4e26-9a71-555adf5981fe.gif" width="1000" style="border-radius: 5px; border: 1px solid #29622d;">
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:
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/aec1f9fd-e238-484c-b0ad-367999139100.gif" width="1000" style="border-radius: 5px; border: 1px solid #29622d;">
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.
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/a220c127-60ef-40e1-a65d-9e390b76cc84.gif" width="1000" style="border-radius: 5px; border: 1px solid #29622d;">
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.
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/e4e88714-9c1d-47d9-a857-fae438d538da.gif" width="470" style="border-radius: 5px; border: 1px solid #29622d;">
You can do that by reducing the “slice” number from 50 to 48.https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/b6d280dd-f149-4ffa-9431-7747c82e4325.png" width="600" style="">
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:
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/7df349c2-4679-4242-8455-ba4f77ec8b51.gif" width="480" style="border-radius: 5px; border: 1px solid #29622d;">
Please think about how to add it before looking at the solution below.Here is one way to do it:
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/f62ca82d-f8b7-46f6-a771-a4ffa6952777.png" width="700" style="filter: drop-shadow(0.35rem 0.35rem 0.4rem rgba(0, 0, 0, 0.5));">
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?
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/6821584b-1658-4fa8-844c-088f52fc0ce0.gif" width="480" style="border-radius: 5px; border: 1px solid #29622d;">
The solution is very similar to that of the black eye. Just need to increase the size a bit more and the “slice” smaller.https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/aa88cc50-23de-4b92-aded-4c6629601361.png" width="800" style="">
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.
-
-
I CreatiCode pinned this topic on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login