Oren Game Engine Programming

Would you like to react to this message? Create an account in a few clicks or log in to continue.

Detailed information about my game engine programming


4 posters

    Shadow algorithm

    avatar
    sebh


    Posts : 1
    Join date : 2009-02-05

    Shadow algorithm Empty Shadow algorithm

    Post by sebh Thu Feb 05, 2009 2:43 pm

    Hi!

    Congrats for your engine.

    I just want to know which algorithm do you used for your shadow. It seems that it's shadow mapping but do you use some kind of PCF, variance or exponential shadow mapping?

    Keep up the good work! Smile


    PS: I have written an potal based engine few years ago but it was with shadow volume... Screenshot and source code on my website Wink
    avatar
    orenk2k
    Admin


    Posts : 11
    Join date : 2009-02-01
    Location : Isreal

    Shadow algorithm Empty Re: Shadow algorithm

    Post by orenk2k Thu Feb 05, 2009 3:07 pm

    hi
    i used to do shadows using shadow volume tech, but they are not supporting none opaque surfaces (such as fences, trees etc) and not to mention translucent materials, they have lots of drawbacks (still, they could be enabled via cvar, and works with shadow mapping as well) so i'm using variance shadow mapping as they are more forgiving than regular shadow mapping.
    thanks and bye
    avatar
    mikfig


    Posts : 4
    Join date : 2009-03-05

    Shadow algorithm Empty Light bleeding

    Post by mikfig Thu Mar 05, 2009 2:59 am

    I looked at the slides for variance shadow mapping, and I was wondering if you were experiencing any problems with light bleeding. If so, how did you go about fixing them?

    Thanks,
    Mikfig
    avatar
    orenk2k
    Admin


    Posts : 11
    Join date : 2009-02-01
    Location : Isreal

    Shadow algorithm Empty Re: Shadow algorithm

    Post by orenk2k Thu Mar 05, 2009 11:01 am

    hi
    i had at first, but now i don't, if you search the bleeding i think you will find but it is not very clear where they are any more.
    you can't fix it (unless you do more samples and you end up doing some brute force pcf), but you can reduce it by darkening the penumbra regions.
    this could be done by modifying the 'result' (which you compute right now as the shadow occlusion value) so that any values below some threshold will be mapped to 0 and the rest will be mapped to 1, so basically you clamp the result into [0..1] range when the result is less than your threshold.
    for more info you can read "gpu gems 3 - summed area variance shadow maps - 8.4.3", thanks to nvidia it is now public Smile
    avatar
    mikfig


    Posts : 4
    Join date : 2009-03-05

    Shadow algorithm Empty Re: Shadow algorithm

    Post by mikfig Fri Mar 06, 2009 2:37 am

    Ok thanks. Very Happy

    Mikfig
    avatar
    baocai


    Posts : 1
    Join date : 2011-04-26

    Shadow algorithm Empty Re: Shadow algorithm

    Post by baocai Tue Apr 26, 2011 5:27 am

    Now I know runescape gold

    Sponsored content


    Shadow algorithm Empty Re: Shadow algorithm

    Post by Sponsored content


      Current date/time is Wed May 01, 2024 11:35 pm