3D Molecules

molecule-H2OIn this blog post we will use Glowscript to create a 3D animation representing the molecule H2O.

Our aim is to recreate the molecule by joining three spheres together (one sphere for each atom). We will then create a compound object to join these three spheres together in a single object (our molecule). Finally using an infinite while loop we will animate/rotate the molecule around itself.

Here is our 3D animation: (Use Google Chrome to preview this animation)


Right Click on the animation to change the view point (rotate camera angle).

Find out more…


To learn more about all the instructions you can use in GlowScript/VPython, use this on-line documentation.

Your task:


Can you create and animate a more complex molecule such as the molecule methane: CH4.
molecule-methane
Note: You can also represent links between atoms using cylinders.
unlock-access

Solution...

The solution for this challenge is available to full members!
Find out how to become a member:
➤ Members' Area

Did you like this challenge?

Click on a star to rate it!

Average rating 4.8 / 5. Vote count: 5

No votes so far! Be the first to rate this post.

As you found this challenge interesting...

Follow us on social media!

Tagged with: , , ,