Question: Programming Assignment For the unit 5 assignment, you will utilize many of the capabilities that we have already learned within the course to create, using
Programming Assignment
For the unit assignment, you will utilize many of the capabilities that we have already learned within the course to create, using geometry, lighting, color, transformation, and the other aspects of the D graphics environment, a model of the Methane molecule. The methane molecule is comprised of atoms, including carbon atom and hydrogen atoms.
Your model should look like the figure above and be constructed using sphere objects for the atoms and cylinders or tubes to represent the bonds. The cylinders should be perpendicular to the sphere's surface and at the center of them. Use any blue color tone for the hydrogen atoms, any red color tone for the carbon atom, and the bonds should be white with light gray for the emissive.
You must enable animation for your model, and mouse controls should be enabled so that your program's user can rotate the molecule in any direction.
You must also add a greencolored plane object to your scene. The plane object provides a flat surface under the object that can reflect light and show the shadows created by the object's position interacting with the light source. Make sure that only YOUR OBJECT moves and not the plane.
Note:
It is essential to document your code liberally with comments to ensure that a reviewer understands what you were attempting to do within the assignment.
When you have completed the assignment, you must click on the share button and copy both the Graphics ViewLive and full preview and the Code View URLs and then submit with your assignment. You can also submit your JavaScript code, but you should only cut and paste the code into the submission dialogue box. Do not attach the source code document. Your assignment is due at the end of this unit.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
