Build a polyhedron that looks roughly like the Washington monument. Some key dimensions of the Washington Monument: o The width of the base is about 55 feet. o The width of each side at the top is about 34 feet. o The height of the small pyramid (pyramidion) at the top of the monument is 55 feet. o The height of the whole monument is 555 feet. This should help you get something that looks approximately like the Washington monument. Exactness is not necessary, and indeed, you should make your code appropriately parameterized. Some additional requirements. Your polyhedron will have 8 sides (four for the pyramidion and four for the tower). You should not have a base. The origin of the monument should be at the center of the base, directly below the peak. Each side should be a different color, so that all the edges are plainly visible. o Use a variety of different ways of specifying the colors (e.g. THREE.ColorKeywords, hexidecimal notation, CSS string, RGB) o Use RGB color at least twice, to show you know how to use it. Document the color you are using. Your material should be the default one-sided material, so that if we look at the monument from below, the sides will disappear. use Three.js API for this
Build a polyhedron that looks roughly like the Washington monument. Some key dimensions of the Washington Monument:
o The width of the base is about 55 feet.
o The width of each side at the top is about 34 feet.
o The height of the small pyramid (pyramidion) at the top of the monument is 55 feet. o The height of the whole monument is 555 feet.
This should help you get something that looks approximately like the Washington monument. Exactness is not necessary, and indeed, you should make your code appropriately parameterized.
Some additional requirements.
-
Your polyhedron will have 8 sides (four for the pyramidion and four for the tower). You should not have a base.
-
The origin of the monument should be at the center of the base, directly below the peak.
-
Each side should be a different color, so that all the edges are plainly visible.
o Use a variety of different ways of specifying the colors (e.g. THREE.ColorKeywords, hexidecimal notation, CSS string, RGB)
o Use RGB color at least twice, to show you know how to use it. Document the color you are using.
Your material should be the default one-sided material, so that if we look at the monument from below, the sides will disappear.
use Three.js API for this
The code uses Three.js to create a Washington Monument-like 3D model. Three.js is a sophisticated JavaScript toolkit that simplifies 3D graphics with WebGL for dynamic 3D scenes in web apps. The pyramidion and tower of the Washington Monument will be replicated in this project, with colors and rudimentary lighting added for aesthetic appeal.
Step by step
Solved in 3 steps