Shadows again, and also something about the camera

Shadows..

I have shadows already but they are not shown if the objects are too small or very far away from the light source (the artificial sun), and therefore the vehicle shadows aren't seen because they are far away from the light source. 

The shadows I'm using now is a Shadow Map which is the first being rendered and this is a depth map from the light's point of view, after that I'm rendering the camera's point of view with the depth map projected onto the camera view to determine which pixels that are seen by the light and which ones that are not. The pixels not seen by the light should be black like if they are being shadowed and the contrary.

I'm going to change these type of shadows to a shadow volume technique instead as you can read about here: https://en.wikipedia.org/wiki/Shadow_volume
But this will be done later on..

Camera..

After I've came to this conclusion with the shadows; I've came up with a fresh idea which was to implement a method to give the player the ability to chose weather he/she would like to see the vehicle move from above or to step into the vehicle so that the player can see from within the cockpit of the vehicle. This way the player can toggle between floating above and seeing his unit go to war from within if wanted.

This can be seen in the following GIF animated image.



See you!

Kommentarer