In this blog post we will use Glowscript to create a 3D animation of a snowman.
Our aim is to create our snowman by adding different 3D shapes such as spheres, cylinders, cones, etc. We will then create a compound object to join these shapes together in a single object. Finally, we will use an infinite while loop to animate/rotate the snowman around the Y axis.
Glowscript/vPython?…
To complete this challenge and find out about all the 3D shapes you can use in Glowscript, you will need to refer to the Glowscript/vPython online documentation.
(x,y,z) Coordinates
Note that to complete this challenge you will need a good understanding of how 3D coordinates work:
Complete the code
We have started the code for you. Your task is to complete this code to customise this snowman further. (Use Google Chrome to preview this animation)
Extension Task
Build a snow globe around your snowman. You will need to use an opacity argument when creating the glass sphere.
Solution...
The solution for this challenge is available to full members!Find out how to become a member:
➤ Members' Area