Shadow/light Mapping

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

Well, here are the 3 links I found most useful…

  [http://home.bip.net/tobias.johansson1/tut_lightmap.htm](http://home.bip.net/tobias.johansson1/tut_lightmap.htm)  
  [http://www.flipcode.com/cgi-bin/knowledge.cgi?showunit=79](http://www.flipcode.com/cgi-bin/knowledge.cgi?showunit=79)  
  [http://www.flipcode.com/tutorials/tut_lightmaps.shtml](http://www.flipcode.com/tutorials/tut_lightmaps.shtml)  

And for relevant 3D info and equations:
http://nondot.org/sabre/graphpro/3d2.html


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).]

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:
http://www.umd.umich.edu/~ldkronos/apparition/research/advanced_per_pixel_lighting.html

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

there are some good articles on the topic elsewhere on thier site (try looking under “white papers” in the developer section).

Good luck

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 :slight_smile:

Ron Frazier
http://www.umd.umich.edu/~ldkronos/apparition

[This message has been edited by LordKronos (edited 09-12-2000).]

Thank you all,

Daniel Palomo van Es

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.

/skw|d