View Full Version : Shadow mapping with textures
milky
12-31-2004, 04:32 PM
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)
gulgi
12-31-2004, 04:47 PM
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... ;)
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.
milky
01-01-2005, 02:06 AM
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...
gulgi
01-01-2005, 05:29 AM
Originally posted by milky:
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...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. :)
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.