Original Post
🔒 Locked
Shadows
Advertisement
Quote:
Original post by shaqdx
Whats the best way to add shadows? I have a cube just above a flat surface but would like to have shadows implemented.
Whats the best method?
Thanks
There is no best method for shadows, there are many ways to do it and highly depends on what you need. If its just a cube over a flat plane surface then you can look into planar shadows (i think thats what they are called) but they only cast a shadow onto a flat plane.
You can have a look at this thread in the graphics programming and theory forums (covers various methods), doing a search (in the forums) for shadows, stencil shadows, shadow volumes or shadow maps should turn up a lot of info on them.
HTH
I saw a method in one of LaMothe's books where you just project the model's vertices onto the ground and texture it in all black. Cheap, probably inefficient, but effective.
That might be a good place to start, provided you're not projecting vertices that are not part of the shadow.
That might be a good place to start, provided you're not projecting vertices that are not part of the shadow.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement