View Full Version : Shadow/light Mapping
09-12-2000, 12:26 AM
Does anyone know where I can get tutorials on Shadow and/or Light Mapping?
Thanx in advance,
Daniel Palomo van Es.
Ps. I know there is one in the news page of opengl.org, but it is japanese comented, my japanese is not so good today http://www.opengl.org/discussion_boards/ubb/wink.gif
09-12-2000, 03:59 AM
Well, here are the 3 links I found most useful...
And for relevant 3D info and equations:
I hope that helps out!
Good luck, and invest in some coffee for your long hours ahead!
[This message has been edited by drakaza (edited 09-12-2000).]
09-12-2000, 09:28 AM
Not sure how broad of support you are looking for, but I recently put up an article that covered shadow mapping on nVidia GeForce cards. The article is located at:
Addmitedly, the article mostly covers per pixel lighting, but shadow mapping is covered closer to the bottom, though it is a bit more complex variation of it.
Another good source is on the nVidia developers site. I think that demo might even support some non-Geforce cards (just checked, yes it does). This demo can be found at:
http://www.nvidia.com/Marketing/Developer/DevRel.nsf/bookmark/997389B838D1AA5688 2568930066367E (http://www.nvidia.com/Marketing/Developer/DevRel.nsf/bookmark/997389B838D1AA56882568930066367E)
there are some good articles on the topic elsewhere on thier site (try looking under "white papers" in the developer section).
P.S. OK, after posting, it just occurred to me that you might be talking about static lightmapping/shadowmapping. If thats the case, sorry. I guess I've just been really caught up in dynamic lighting and shadowing lately and I kinda forgot there was anything else :-)
[This message has been edited by LordKronos (edited 09-12-2000).]
09-13-2000, 12:01 AM
Thank you all,
Daniel Palomo van Es
09-13-2000, 12:18 AM
The basic idea behind a shadow map is to render the scene from the perspective of the light source into a buffer not unlike a z-buffer. Now each pixel in the buffer stores the distance to the light source. This buffer is called a shadow map.
Then you render the scene from the camera using only ambient lighting. The values in the shadow map are compared with the z-buffer values. This means you do not need to render lighting, texturing or color values in this pass. Some problems occur with this method though: your shadows will appear blocky if your buffer depth is not high enough.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.