PDA

View Full Version : Shadow Maping..



dabeav
08-06-2002, 06:40 AM
Can anyone tell me a GOOD EASY to fallow tutorial on shadow mapping, that will work pretty much with any video card. I was looking into the method of compairing light possistions with the depth buffer. Anyone have a realy realy good tutorial sight?? Thanks its appreciated.

bakery2k
08-06-2002, 10:33 AM
It's not a tutorial, but I have an example on my website. If you ignore the parts about 16 and 24 bit shadow mapping, it's not too complicated, and will work on just about any card with multitexture (needs EXT_texture_env_combine).

The site is at http://users.ox.ac.uk/~univ1234

[This message has been edited by bakery2k (edited 08-06-2002).]

dabeav
08-06-2002, 12:14 PM
Thank you, i will check it out.

ToolChest
08-07-2002, 02:16 PM
bakery2k,

This is a little ot, but I was checking out your cell shading demo (very nice) and I was wondering how you do the lookup into the sharp lighting texture. I have a gf2 and I was wondering what extention supports this.

Thanks...

John.

Quaternion
08-08-2002, 08:58 AM
I guess he is just use the dot product (L dot N) as a texture coordinate to access the look up 1D texture.

ToolChest
08-08-2002, 02:03 PM
ya... I'm not familiar with vertex programs, so I didnít understand it. Last night I read up on vertex programs a little and I saw that you can calc the text coords on the fly. I got what he was doing confused with looking up into a texture per fragment (woops). I have a gf2 pro and I wanted to do env mapping. I think thatís the term. Using a normal mapís per fragment normal to lookup into a cube map of the surrounding env. Iíve seen it done, but I donít know the extension used or if my card supports it. It makes really nice water. http://www.opengl.org/discussion_boards/ubb/smile.gif

John.

bakery2k
08-08-2002, 02:08 PM
Thats it. The vertex program does L Dot N and uses the result as the s texture coordinate to look into the texture. The per pixel reflection you are talking about is like my "Dot product reflect" demo, using NV_texture_shader. Unfortunately, this is not supported on GF2.

[This message has been edited by bakery2k (edited 08-08-2002).]

ToolChest
08-09-2002, 06:16 AM
bakery2k,

Oh well, I'm always looking for some new fx to add to the game. http://www.opengl.org/discussion_boards/ubb/smile.gif

Thanks for the info...

John.