三维 - 外星飞碟(难度:1级)
-
覆盖的关键课题
介绍
在这个程序中,我们会利用三个球体形状来创建一个外星飞碟:
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;">
步骤 1 - 创建一个“天空”场景
请创建一个新项目,并使用"创建三维场景"编程积木来加载“蓝天”场景。这个场景可以很快被加载的。它包含一个有白云的蓝天,并且下方有个海洋。请一并添加三维轴来显示三个维度。
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/d2bf37b4-82f8-46f0-a999-e64114dbc2b5.png" width="400" style="">
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/7c91befa-bc17-437e-8bdd-d9cd168af432.gif" width="480" style="">
步骤 2 - 添加第一个球体
现在让我们添加一个大而平的球体来作为外星飞碟的主体。X和Y的大小应该是一个很大的数值,比如500;而Z的大小(高度)应该要更小,比如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;">
这是需要被添加的新的编程积木。需要注意的是,侧面数被设置成64,来让大的球体看起来更光滑。
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/66009bdf-7122-4e10-b868-b4f30bf92937.png" width="700" style="filter: drop-shadow(0.35rem 0.35rem 0.4rem rgba(0, 0, 0, 0.5));">
步骤 3 - 更新纹理
要让外星飞碟的主体看起来更真实,我们可以对它使用一个纹理。如果你搜索关键词“宇宙”,你将会找到很多可以选择的好看纹理。你也可以改变它的重复次数来让纹理重复更多次。
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/66dc0ef3-395e-40ff-98d6-70fbf11f619b.gif" width="1000" style="border-radius: 5px; border: 1px solid #29622d;">
步骤 4 - 第二个球体
接下来,让我们添加另外一个更小但是更高的球体,但是也拥有不一样的纹理,你可以尝试添加它吗?你应该使用什么x/y/x的数值呢?
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;">
这是你如何利用复制来添加第二个球体的方式:
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/abcf5ad3-0eb0-4fa9-8b67-05d142b2c5d1.gif" width="1000" style="border-radius: 5px; border: 1px solid #29622d;">
步骤 5 - 作为控制室的第三个球体
最后一个球体看起来会更小更高。你也可以在指定颜色时让他变得半透明。
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;">
这是你需要添加的新编程积木:
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/6ace4000-64d8-4c71-a566-3d72db06ae89.png" width="700" style="">
步骤 6 - 把第三个球体切一半
我们应该只需要控制室在外星飞碟的上半部分。我们可以使用“切层”输入来得到半个球体。请尝试产出一个像这样的结果:
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;">
就像展示的一样,当我们把球体变成一个半球体,他正面向错误的方向,所以我们也需要旋转它:
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/3b02ef39-63bb-4ea5-83bd-2a0d2f0eed30.gif" width="1000" style="border-radius: 5px; border: 1px solid #29622d;">
创意点子
有很多你可以改善这个外星飞碟的方法。这里是一些可以激发你的灵感的点子:
-
不一样的颜色和纹理
-
打开第二个球体: 现在第二个球体作为透明盖子出现。如果能够打开,那看起来会更好:
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;">
- 添加其他物体: 你可以在场景中添加一些其他物体,比如外星人、灯、舱门、着陆腿等。
-
-
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