Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: Shadow mapping with textures

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2004
    Posts
    2

    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)

  2. #2
    Junior Member Newbie
    Join Date
    Jun 2002
    Location
    Stockholm, Sweden
    Posts
    18

    Re: Shadow mapping with textures

    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.

  3. #3
    Junior Member Newbie
    Join Date
    Dec 2004
    Posts
    2

    Re: Shadow mapping with textures

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

  4. #4
    Junior Member Newbie
    Join Date
    Jun 2002
    Location
    Stockholm, Sweden
    Posts
    18

    Re: Shadow mapping with textures

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •