Wednesday, 17 April 2013

Where there is light, there is shadows

Finally, the shadow is added into our graphics topic. ^__^ Adding shadow into the scene is not hard. It basically works like the depth pass we did previously. However, instead of using camera as the 'eye', we are using directional light. Overall, this assignment wasn't hard. I could accomplish it within 2 hours with my repeatedly stupid mistake (I kept forget that to calculate the shadow I should use light as the 'eye' instead of camera). Btw, I found this nice tutorial on internet: http://www.rastertek.com/dx11tut40.html

Final scene with shadow
Shadow map in PIX

For this assignment, I disabled the point light movement and used it for the directional light movement. The small white dot, the representation of the light point still remain the same. In order words, when the directional light is moved, it won't move this light mesh.
 
The control are:
[I]: y+
[K]: y-
[J]: x-
[L]: x+
[U]: z+
[O]: z-  
 

No comments:

Post a Comment