Please read the standard instructions for all assignments.
The goal of this assignment is to gain experience in working with materials and lighting. It’s not primarily about geometry, though there are some new things here, such as using the inside of a cube. It’s also not about cameras, so feel free to use TW.cameraSetup()
.
Here’s the goal, a room with a light fixture in it that I’m calling a “sconce”:
See the standalone version here, which is what your solution should look like.
I give you the model solution to clarify what I’m looking for. I expect that you will not try to reverse-engineer the solution. I have made it difficult (so you won’t accidentally see the solution), but it would not be impossible. Please don’t try.
Write your own program that mimics this scene:
THREE.MeshBasicColor
.specular
colors are all shades of gray.Light
class is a subclass of the Object3D
class, which has a property named visible
that is a boolean that controls whether or not an object is rendered.)Submit the URL to your pen via the dropbox on blackboard. Do not change your code after the deadline.
Grading will be broken down into two parts, basic functionality and style and documentation
Rating | Actual Points | |
---|---|---|
Basic functionality (80%) | ||
a good start | 50 | |
significant progress | 60 | |
good | 70 | |
excellent | 80 | |
Style and documentation (20%) | ||
missing | 0 | |
fair | 10 | |
good | 15 | |
excellent | 20 | |
Total (100%) |
Grading of the basic functionality will be in terms of the following requirements:
This page is based on https://cs.wellesley.edu/~cs307/assignments/hwk4-sconce.html. Copyright © Scott D. Anderson. This work is licensed under a Creative Commons License.