Dynamic, variable penumbras

Discussion in 'Architecture and Products' started by Nom De Guerre, May 26, 2006.

  1. Nom De Guerre

    Banned

    Joined:
    Apr 22, 2006
    Messages:
    58
    Likes Received:
    5
    Location:
    Somewhere Over The Rainbow
    Imagine a room that has :

    1) a fluorescent light; and
    2) a single filament light bulb

    on different walls of that room.

    What would be required to have shadow penumbras that dynamically and accurately change in penumbra intensity/softness depending on distance from each light source?
     
  2. Colourless

    Colourless Monochrome wench
    Veteran

    Joined:
    Feb 6, 2002
    Messages:
    1,274
    Likes Received:
    30
    Location:
    Somewhere in outback South Australia
    If i were to do it, i'd use a per shadow caster projected shadowmap system with a variable filter kernel size based on the distance from the point being lit to the shadow caster, distance to the the light, the size of the shadow caster and size of the light. Of course no accounting for speed or accuracy, and obviously no maths here :)
     
  3. Humus

    Humus Crazy coder
    Veteran

    Joined:
    Feb 6, 2002
    Messages:
    3,217
    Likes Received:
    77
    Location:
    Stockholm, Sweden
    Penumbra wedges is a relatively popular technique. I haven't tried implementing it myself, so I don't know exactly how good it is, but should work fairly good and be relatively cheap.
     
  4. Mintmaster

    Veteran

    Joined:
    Mar 31, 2002
    Messages:
    3,897
    Likes Received:
    87
    Do you mean the stuff from Assarsson and Akenine-Möller? That some very pretty stuff, but it's not cheap by any means. Silhouette detection and tons of fillrate is needed, and the shader - which has lots of overdraw - isn't too simple either. I did some work on that technique and trimmed the shader down to 40 instructions, and reformulated it so that you didn't need two draw calls per wedge (!!!), but it remained very taxing. What exactly is your definition of "relatively popular"?

    Still, it has the best image quality I know for any soft shadow technique, and I tried looking for everything out there.
     
Loading...

Share This Page

  • About Us

    Beyond3D has been around for over a decade and prides itself on being the best place on the web for in-depth, technically-driven discussion and analysis of 3D graphics hardware. If you love pixels and transistors, you've come to the right place!

    Beyond3D is proudly published by GPU Tools Ltd.
Loading...