Report Øyvind done
This commit is contained in:
@@ -84,7 +84,15 @@ coordinated choppers:
|
||||
|
||||

|
||||
|
||||
## Optional Tasks (b), c), d) + f))
|
||||
## Optional Tasks
|
||||
|
||||
### Optional a)
|
||||
|
||||
Implementing the Phong lighting model is a simple case of implementing the phong equation in the fragment shader. To achieve this, the viewing vector of each vertex had to be passed to the fragment. Based on how our camera is implemented, this vector is allways the inverse of the final vertex transform `glposition`. We pass this to the fragment shader, compute the ambient, diffuse and specular components and combine them to a single intensity vector (normalized) which we multiply, with the fragment color vector, thus producing the final color for the fragment. Below is an image of the phong model in action:
|
||||
|
||||
Please note that the parameters are not fine-tuned, and the resulting image is a bit
|
||||
|
||||

|
||||
|
||||
### Optional b)
|
||||
|
||||
@@ -174,6 +182,12 @@ Finally, the helicopter animationctx is stopped if it "falls out of the world",
|
||||
in other words, if its y-position is less than `-1000.0`. At this point the
|
||||
scenenode of the door is deleted.
|
||||
|
||||
Note the animation does not intend to be very realistic, the sort of cartoonish feel it gives is intentional and adds to the humorous factor of the animation.
|
||||
|
||||
A snippet of one possible shot of the animation is shown below.
|
||||
|
||||

|
||||
|
||||
### Optional f)
|
||||
|
||||
The cake is a lie
|
||||
|
||||
BIN
gloom-rs/report/images/phong.png
Normal file
BIN
gloom-rs/report/images/phong.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 147 KiB |
BIN
gloom-rs/report/images/reject_doors.png
Normal file
BIN
gloom-rs/report/images/reject_doors.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 70 KiB |
Reference in New Issue
Block a user