Shadow mapping with textures

Hi!

I’m new here and I have a small question.

I’m using a shadow mapping algorithm similar to the one here: http://www.paulsprojects.net/tutorials/smt/smt.html

It’s working fine, but, the only problem is that i can’t cast shadows on objects with textures…

Does anyone here knows a way to to that?
(I thought about multitexturing but it’s seen to hard to apply)

Originally posted by milky:
Does anyone here knows a way to to that?
(I thought about multitexturing but it’s seen to hard to apply)

Multitexturing is REALY easy… and you should read nehe:s tutorials… :wink:

You can render your shadow map, save to texture.
Render the scene.
Then redner with the shadow-test and darken the area that is in shadow with the correct blending with a constant color.

Originally posted by gulgi:

Then redner with the shadow-test and darken the area that is in shadow with the correct blending with a constant color.

this is done with multitexturing?
I dont see the connection…

Originally posted by milky:
[quote]Originally posted by gulgi:

Then render with the shadow-test and darken the area that is in shadow with the correct blending with a constant color.

this is done with multitexturing?
I dont see the connection…
[/QUOTE]That is how you can do it without multitexturing. I realy recommend using more than 1 texture though. One rendering-pass will be faster than two rendering-passes. :slight_smile: