Uploaded image for project: 'Snowstorm'
  1. Snowstorm
  2. STORM-1819

Ternary/graded shadow support

    XMLWordPrintableJSON

    Details

    • Type: Story
    • Status: Closed
    • Priority: Unset
    • Resolution: Released
    • Affects Version/s: None
    • Fix Version/s: Active
    • Labels:
      None
    • Environment:
      -

      Description

      I added support for a third (mid-range) level to shadows, for alpha values in the shadow-caster which are reasonably semi-transparent.

      BRANCH IS HERE: https://bitbucket.org/tofu_linden/viewer-development-plus-gradedshadows

      This works fine and stuff, and it's of extremely similar cost to the binary shadow (it doesn't incur any more texture reads etc).
      The downside is that the pcf sampling position is a bit more quantized along one of the shadow map axes. I added some handwaving to hide that fact (disguising the loss of freedom with some more fuzzing, including turning the pcf function into a plain averaging function and adding some jitter).

      I'll do some comparison screenshots and stuff when I have the time/energy.

        Attachments

        1. alphathingy_001.png
          684 kB
          Tofu Buzzard
        2. gr8d shadow sun overhead shown as column_001.jpg
          935 kB
          paula Mellow
        3. gr8d shadow sun shown as column_001.jpg
          141 kB
          paula Mellow
        4. projectedlight-shadowgradient.JPG
          66 kB
          Anne Cloud
        5. screenshot_3.3.0.png
          93 kB
          Oz Linden
        6. screenshot_storm-1819.png
          102 kB
          Oz Linden
        7. simplebot.dae
          728 kB
          Dan Linden
        8. snapshot_storm-1819.png
          202 kB
          Oz Linden
        9. ternarycomparison1.jpg
          99 kB
          Tofu Buzzard
        10. ternarycomparison2a.gif
          287 kB
          Tofu Buzzard
        11. ternaryshadowproblem.JPG
          49 kB
          Anne Cloud

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              tofu.buzzard Tofu Buzzard
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: