How to draw a static scene's shadow?
I have read some articles, it suggest me to use stencil buffer,
but stencil buffer need hardware support, How can I draw the shadow?
Can anybody give some sample code?
Shadowing is a huge topic that we couldn''t possibly explain here. I suggest a Google search, or check out articles at NVidia''s developer pages.
Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions
Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions
quote:
How to draw a static scene''s shadow?
if it''s a truly static scene (nothing will ever move in it) then you should just precalculate everything using some kind of raytracing and use light maps.
You could knife you geometry where the shadows fall, and burn the shadow colour into the approperate verts colour.
(Watch out for gourard effects though - usually solved with more sub division)
(Watch out for gourard effects though - usually solved with more sub division)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement