Carmack to use shadow map in the next game?

Discussion in 'Architecture and Products' started by 991060, Aug 19, 2004.

  1. Xmas

    Xmas Porous
    Veteran Subscriber

    Joined:
    Feb 6, 2002
    Messages:
    3,344
    Likes Received:
    176
    Location:
    On the path to wisdom
    The point is, you can only filter what's in the texture. For soft shadows, you need an interpolation from dark (in shadow) to bright. Your intensity (depth) map doesn't contain any information about areas in shadow, so a simple texture filter won't help you at all.

    What you can do, however, is doing the depth comparison for each of four texture samples, and then filter the boolean comparison values. NVidia does this "percentage closer filtering" since GeForce3.
     
  2. Frank

    Frank Certified not a majority
    Veteran

    Joined:
    Sep 21, 2003
    Messages:
    3,187
    Likes Received:
    59
    Location:
    Sittard, the Netherlands
    Ah, yes. I get it. That sure is hard to visualize!

    I'll look up the "percentage closer filtering". Thanks!
     
  3. tcchiu

    Newcomer

    Joined:
    Jun 3, 2004
    Messages:
    22
    Likes Received:
    0
    Location:
    Taiwan
    FYI:

    http://www.beyond3d.com/forum/viewtopic.php?start=20&t=14966

    I believe John is god, and Scali is not crazy.
     
  4. tcchiu

    Newcomer

    Joined:
    Jun 3, 2004
    Messages:
    22
    Likes Received:
    0
    Location:
    Taiwan
    Many people attacked the aliasing problem of the shadow maps, but nobody except Mfa mentioned Perspective Shadow Map (PSM). Is there any problem to employ PSM in game engines?

    I know there is a chapter on PSM in the "GPU Gems" book. It's said that (sorry I've not read the book) nVidia has solved some problems of the original PSM algorithm.

    I am curious that any game (shipped or under development) uses PSM ?

    FYI:

    Marc Stamminger and George Drettakis, "Perspective Shadow Maps", Proceedings of ACM SIGGRAPH 2002.
    - http://www-sop.inria.fr/reves/personnel/Marc.Stammnger/psm/
     
  5. ERP

    ERP
    Veteran

    Joined:
    Feb 11, 2002
    Messages:
    3,669
    Likes Received:
    49
    Location:
    Redmond, WA
    PSM only solve one of the aliasing issues. Covering "large" areas with relatively low resolution. The other one is the fact that your projecting a 2D grid from one space to another, and even very high resolution maps can have bad aliasing associated with this.

    PSM is doable, but it's not simple, there are a lot of special cases that need to be caught.
     
  6. Scali

    Regular

    Joined:
    Nov 19, 2003
    Messages:
    2,127
    Likes Received:
    0
    I said it was inexcusable, yet you only post an excuse :)
    Bottom line is, he didn't implement it. Whether he now thinks that was a good idea or not, is not relevant. Doom3 is out, and it is rubbish on PCs < 2.5 GHz, even with a GPU that would skin circles around the fastest CPUs in the world.
    I think he should fix it in Doom3 itself, if he is going to fix it for future licensees aswell.
     
  7. TheAlSpark

    TheAlSpark Moderator
    Moderator Legend

    Joined:
    Feb 29, 2004
    Messages:
    22,146
    Likes Received:
    8,533
    Location:
    ಠ_ಠ
    Is it even possible to make such a change in patch?
     
  8. DeanoC

    DeanoC Trust me, I'm a renderer person!
    Veteran Subscriber

    Joined:
    Feb 6, 2003
    Messages:
    1,469
    Likes Received:
    185
    Location:
    Viking lands
    Sudeki on XBox uses PSM (at least it did when I was at Climax, pretty sure it still did on release).

    Works pretty well except it only only extends a fairly small way into the frustum, after that the shadow is switched off.
     
  9. Scali

    Regular

    Joined:
    Nov 19, 2003
    Messages:
    2,127
    Likes Received:
    0
    I don't see why not. The geometry already contains all the info required, since the CPU-version needs that same info. You'd just need to supply some extra shaders and change some bits in the engine to use them.
     
  10. KimB

    Legend

    Joined:
    May 28, 2002
    Messages:
    12,928
    Likes Received:
    230
    Location:
    Seattle, WA
    It's not going to happen. The source should be released at some point. When it is, Scali, you can make the mods if you want.
     
  11. Scali

    Regular

    Joined:
    Nov 19, 2003
    Messages:
    2,127
    Likes Received:
    0
    That will be at least 5 years from now, I suppose... (Quake 3 source is not even out yet, is it?).
    By then I don't expect to have any kind of performance problems in Doom3 anymore. Heck, I already lost interest in the game. I've played it through a few times, and got bored with it. So I don't see why I would mod it then.
    It's already too late for me. Doom3 wasn't the experience it could have been, and Carmack has lost the last bit of respect I had for him. I now see him as no more than a below-average software architect. The really good stuff will be coming from UnrealEngine 3.0, and who knows what the next 3dmark has in store for us.

    And why are you so sure it's not going to happen?
    Instead of everyone sucking up to Carmack, they should point out his obvious fault and pressure him for the patch.
     
  12. KimB

    Legend

    Joined:
    May 28, 2002
    Messages:
    12,928
    Likes Received:
    230
    Location:
    Seattle, WA
  13. Scali

    Regular

    Joined:
    Nov 19, 2003
    Messages:
    2,127
    Likes Received:
    0
    Ah, so it was finally released after years. Who cares :p
     
  14. 3dcgi

    Veteran Subscriber

    Joined:
    Feb 7, 2002
    Messages:
    2,493
    Likes Received:
    474
    I believe a recent Beyond3D article mentioned the next 3dmark will use perspective shadow maps.
     
  15. Rys

    Rys Graphics @ AMD
    Moderator Veteran Alpha

    Joined:
    Oct 9, 2003
    Messages:
    4,182
    Likes Received:
    1,579
    Location:
    Beyond3D HQ
    No renderer source has been released, just game source. It's to be released in December this year if I remember correctly.

    Given that discussion is renderer-specific, Scali is correct.

    Rys
     
  16. KimB

    Legend

    Joined:
    May 28, 2002
    Messages:
    12,928
    Likes Received:
    230
    Location:
    Seattle, WA
    Actually, the first one was released over four years ago, if you look at the dates. Anyway, Rys may be right about the renderer thing.
     
  17. Scali

    Regular

    Joined:
    Nov 19, 2003
    Messages:
    2,127
    Likes Received:
    0
    If you want to license a product, releasing the full source code is not a Good Idea(tm).
     
  18. nAo

    nAo Nutella Nutellae
    Veteran

    Joined:
    Feb 6, 2002
    Messages:
    4,400
    Likes Received:
    440
    Location:
    San Francisco
    :roll:
     
  19. Richard

    Richard Mord's imaginary friend
    Veteran

    Joined:
    Jan 22, 2004
    Messages:
    3,508
    Likes Received:
    40
    Location:
    PT, EU
    According to Tim a UE 3 powered game should only be out in 2006. I'd be VERY DISAPPOINTED if a 2006 game was not better graphically than a 2004 one.

    Well, if you listened to JC's QC keynote you'd pickup the fact that toggling between shadow buffers and stencils and his version of DOOM gives you:

    - A lot lower performance with shadow buffers (this should come as a surprise to some who state that fill-rate is not improving as much as shader throughput making buffers an "inevitability").
    - shadow buffers also use up "invisible" fillrate (and a lot in D3 since most lights are point lights).
    - Only moderate quality improvements (he mentions that regular people might not even notice the soft shadows at first glance).

    With that in mind, for a 2004 game, shadow volumes were a good decision, especially for the game they were doing. And quite a few people assumed since D3 was using stencils that every engine JC would do after that would use stencils so they actually forget that they have to look at the here and now and the advantages of using stencils here and now on the D3 game.

    I wouldn't mind having the build JC talks about, being able to toggle between stencils and shadow buffers, but for actual gamers who were afraid D3 wouldn't run on their 3 year old machine they couldn't care less.
     
  20. 991060

    Regular

    Joined:
    Jul 29, 2003
    Messages:
    640
    Likes Received:
    2
    Location:
    Beijing
    The lower performance on shadow buffer is probably because you have to switching between difference rendering context in OpenGL while in D3D, that's not a problem.
     
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...