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 5 of 5

Thread: VSM Shadow

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2011
    Location
    Québec,Canada
    Posts
    9

    VSM Shadow

    Hi guys.
    I'm posting concerning shadow implementation. I have try to implement soft shadows with PCF. I have test with 2 "map" size and i haven't got the result that i was expecting.

    Here its a map of 5X6 cube
    http://www.youtube.com/watch?v=xN55zZLz1c0

    Here its a map of 10X12 cube
    http://www.youtube.com/watch?v=fjeozyfi9q8

    Someone told me that i should use VSM so i did try it.
    Here it's the 5x6 map with VSM
    http://www.youtube.com/watch?v=yI_ERZQJwBI

    As you can see, it's a bit weird sometimes. How can i make it more pretty?

    Even if actually my VSM map look weird, i want to continue with this technique and implemented bigger map. I will use cascading shadow map. Someone have a good tutorial or project or papers about that subject that could help me?

    Thank you.

  2. #2
    Member Regular Contributor
    Join Date
    Oct 2010
    Location
    France
    Posts
    466

    Re: VSM Shadow

    Which face do you render when doing VSM ? You should render back faces. It is the only way to avoid light back faces rendered in shadow (and so having such artifacts). Also try to change the sampling value if you already did the first.

    Shadow-mapping is a technique based on images. Then you can have very nice shadows or face strange things depending on various things, for example having to alterate a bit the z value of the depth-map texture coordinates. Some others even have to modify the bias matrix.

    If you want a more perfect technique for shadowing, then have a look at shadow volume. It is a technique based on geometry, so you need to know the geometry of each object casting shadows.

    Concerning cascading sm, I don't have any link near me, but google is your friend.

  3. #3
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: VSM Shadow

    Shadow volume does not scale well with geometry complexity.
    VSM should give better results than what you have, are you sure you do each step correctly ?

  4. #4
    Junior Member Newbie
    Join Date
    Dec 2011
    Location
    Québec,Canada
    Posts
    9

    Re: VSM Shadow

    I'm pretty sure i'm doing it the right way. Today, i will play a bit with all the parameter and try to have a better effect. If i don't come up with something good, i will post you a sample of my source so you can take a look at what i'm doing. Than you

  5. #5
    Junior Member Newbie
    Join Date
    Dec 2011
    Location
    Québec,Canada
    Posts
    9

    Re: VSM Shadow

    Okay i have fix my VSM
    http://www.youtube.com/watch?v=-4TTCkCYlW0

    Now i want to implement cascading shadow or split- paralell. Shoud i implement this first or do multitexturing before? (like put a brick texture on the wall)

    thank you

Posting Permissions

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