3D - A UFO (Difficulty: 1)
-
Key Topics Covered
Introduction
In this tutorial, we’ll build a UFO with 3 sphere shapes:
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/a60fd49f-a8b8-403a-a67b-9d70533bd242.gif" width="470" style="border-radius: 5px; border: 1px solid #29622d;">
Step 1 - Initialize the “Blue Sky” Scene
Please create a new project, and use the “initialize 3D scene” block to load the “Blue Sky” scene. This scene is pretty fast to load. It contains a blue sky with clouds with an ocean below. Please also add the 3D axis to show the 3 dimensions.
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/7361f295-3dbe-4f72-9767-589e54df1e36.png" width="400" style="">
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/7c91befa-bc17-437e-8bdd-d9cd168af432.gif" width="480" style="">
Step 2 - Add the first sphere
Now let’s add a big flat sphere to serve as the main body of the UFO. The X and Y sizes should be a large number like 500, and the Z size (the height) should be much smaller, such as 50.
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/c3753254-c06f-4301-b7d3-018e44a19999.gif" width="470" style="border-radius: 5px; border: 1px solid #29622d;">
Here is the new block to be added. Note that the “sides” number is set to 64 to make the large sphere look smoother.https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/cebf2c3f-d8f3-483a-8d7f-d60b42c66b5f.png" width="700" style="filter: drop-shadow(0.35rem 0.35rem 0.4rem rgba(0, 0, 0, 0.5));">
Step 3 - Update Texture
To make the UFO body look more real, we can apply a texture to it. If you search by the keyword “space”, you will find many good textures to choose from. You can also change the repeat count to make the pattern repeat more times.
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/c0d6bb14-82f4-49c0-8905-6dabf2f84e37.gif" width="1000" style="border-radius: 5px; border: 1px solid #29622d;">
Step 4 - The Second Sphere
Next, let’s add another sphere that’s smaller but taller, and also with a different texture. Can you try to add it? What values should you use for the x/y/z sizes?
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/a185df32-4e4d-4856-89c2-1f829b7ccd8f.gif" width="470" style="border-radius: 5px; border: 1px solid #29622d;">
Here is how you can add the second sphere by duplication:https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/ad3b4583-231e-4408-a712-8b123a8fb69c.gif" width="1000" style="border-radius: 5px; border: 1px solid #29622d;">
Step 5 - The Third Sphere for the Control Room
The last sphere would be even smaller and taller. You can make it semi-transparent as well when you specify the color.
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/a32fb133-68b1-4577-b454-648ff087ce07.gif" width="470" style="border-radius: 5px; border: 1px solid #29622d;">
Here is the new block you need to add:https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/b0f938d9-0536-4755-a4c2-c72ec80091a7.png" width="700" style="">
Step 6 - Cut the Third Sphere in Half
Suppose we want the control room to be only on the top half of the UFO. We can use the “slice” input to get a half sphere. Please try to produce a result like this:
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/a60fd49f-a8b8-403a-a67b-9d70533bd242.gif" width="470" style="border-radius: 5px; border: 1px solid #29622d;">
As shown, when we change the sphere to a half-sphere, it is facing the wrong direction, so we need to rotate it as well:https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/fc4dcde7-972a-4cf2-b101-c0c516b61576.gif" width="1000" style="border-radius: 5px; border: 1px solid #29622d;">
Here is the complete program for your reference:
Creative Ideas
There are many ways you can enhance this UFO. Here are some ideas for your inspiration:
-
Different colors/textures for the different parts of the UFO
-
Open up the second sphere: currently the second sphere shows up through the transparent cover. It would be nice to open it up like this:
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/427ae0b8-acf0-475c-b7b2-e6a4e931142d.gif" width="470" style="margin-left: 40px; border-radius: 5px; border: 1px solid #29622d;">
- Add Other Objects: you can add some other objects to the scene, such as aliens, lights, hatch doors, landing legs, etc.
-
-
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