PDA

View Full Version : how to generate shadows?



miko
03-01-2003, 02:07 PM
probably i'm too lazy too type google.com so i'm asking here? how to generate shadow volumes? my only idea is to load some strange affine transformation matrix, render to texture and then use it as a lightmap... probably not too good? (or i just invented something new? http://www.opengl.org/discussion_boards/ubb/smile.gif) i have read stecil buffer is used for shadows... what is that damn stencil buffer?... and how to use it for shadows? or just tell me where to start

i need you guys,help http://www.opengl.org/discussion_boards/ubb/smile.gif)

titan
03-01-2003, 03:26 PM
Why should we repeat what you can find yourself on google? nvidia has great documents that explain everything you can find via google. If you just want to dive in you could start here I guess: http://developer.nvidia.com/view.asp?IO=ogl_rtt_shadow

But google is a better place to look.

mikael_aronsson
03-01-2003, 11:58 PM
Hi !

Well, google is a good place to start, and that was what you wanted...

The thing is that there are a number of different ways to do shadows depending on the quality you want, do you need to put shadows on non planar surfaces... things like that, so it all depends on what you are going to use it for.

Mikael

miko
03-02-2003, 01:05 AM
shadow on planar surface should be enough...

mikael_aronsson
03-02-2003, 07:30 AM
Ok,
http://www.google.com/search?q=opengl+planar+shadows&ie=UTF-8&oe=UTF-8&hl=sv&lr=

miko
03-02-2003, 08:12 AM
http://www.opengl.org/discussion_boards/ubb/smile.gif)))