Announcement

Collapse
No announcement yet.

Question about Stencil Buffer and FAA

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Question about Stencil Buffer and FAA

    Hi again

    I was wondering what exactly a stencil buffer is, and why it does not work with FAA. Anyone care to enlighten me?
    -Slougi


  • #2
    I think FAA only works on polygons. Stencils are used for special effects, bullet holes, shadows and are just textures.
    Somebody correct if i'm wrong!
    dedicated server obtained, users close to Finland welcome

    Comment


    • #3
      I'm sure someone here knows the real reason why, but from what I've read I'll make a guess.

      It seems that the FAA is operating on the final rendered image, at a subpixel level (otherwise it would possibly be looking at EVERY triangle in the picture, including those that are not in view because they are covered by other triangles in the scene). Further, I don't think FAA works on the triangles anyway. That sounds more along the lines of edge FAA, while I think FAA is actually looking at pixels themselves, meaning it could theoretically AA pixels in the textures on a large triangle just as effectively as the edge of triangles in the scene. This means it works more along the basis of where visible edges in an image are, with no real regard to whether the edge is on or in the triangles of the polygons making up the image.

      Anyhow, if that's correct, it seems that maybe the stencil buffer itself is actually being used as part of the FAA process, possibly for storage of the information needed when comparing the subpixel information?

      Quick note: I'm no way shape or form any sort of hardware level techy (I don't, nor have I ever, design, or know anything about designing hardware.). So these are purely guesses based only on the slightly ignorant knowledge I do have combined with what I've seen so far.
      "..so much for subtlety.."

      System specs:
      Gainward Ti4600
      AMD Athlon XP2100+ (o.c. to 1845MHz)

      Comment


      • #4
        Accually I am sure FAA is applied to the trangles. That is why they also support 3D AA lines, and that is why Tom made this comment.

        "(FAA) does not recognize lines that are rendered in the form of textures."

        Which I think is dumb. Since most textures won't need AA and applying AA to them will making them blurry. Blurry textures is the second biggest problem with FSAA.

        I am not sure how the stencil buffer conflicts with FAA. I can't see how some pixel distortion would make me want to switch back to 4xFSAA. Unless it causes major problems.
        I should have bought an ATI.

        Comment


        • #5
          "(FAA) does not recognize lines that are rendered in the form of textures."
          i think he is talking about cut-trough textures, that have holes in them, which do need AA.
          This sig is a shameless atempt to make my post look bigger.

          Comment


          • #6
            Lines in textures is one of the many reasons we have aniso

            Comment


            • #7
              The stencil buffer is used for shadows because it can make a cutout or outline of an object like person or a crate. It looks at the polygons and determines the edges of the object. this info is then used to project a shadow where it is suposed to be in respect to the light source.

              FAA also looks for the edges of objects, because this is usualy where the jaggies come from. It then it determines how to blend the colors of the edge between the object and the background so that the edge is softened and the jaggies are reduced.

              Right off the bat i can see why this could be a conflict. Maybe the stencil buffer is used to find the edges of the objects so they can be AA'd.

              Also, this can be used with aniso i think, so textures will look good regardless. plus this AA method won't muddy textures like FSAA does.

              Buback

              Comment


              • #8
                That makes sense (the explanation of how it likely works, and why the stencil conflicts with FAA). But since at least a few of my current games use stencil shadows, it might cause some problems. Still, that's why I think a card with this sort of bandwidth available having 4xFSAA as a fallback is a good thing (and probably not taking too hard a hit for the slower method). The anisotropic filtering should still aleviate much of the effect that the FSAA will have on textures too (just like it does with GF4).
                "..so much for subtlety.."

                System specs:
                Gainward Ti4600
                AMD Athlon XP2100+ (o.c. to 1845MHz)

                Comment


                • #9
                  blurry FSAA??? nope...

                  You're all wrong when you're thinking that FSAA generally blurries textures. First of all you have to say about which form of FSAA you're talking. Do you mean Multisampling with blurry filter (=Geforce3/4 Quincunx) or do you Multisampling without blurry filter (=Geforce3/4 2x/4x) or do you mean Supersampling (Ati, Kyro, old NVidia)?

                  Quincunx: relatively fast, blurry filter blurries edges (what is good), but also blurries textures (what is not good).
                  Multisampling 2x/4x: relatively fast, average edge smoothing, does nothing to textures.
                  Supersampling (any form): slow, average on edges, *sharpens* textures (like anisono does, but not that much as anisono)!!!

                  Matrox of course compared its new FAA mode to Quincunx to make its new FAA technique look as good as possible. But to be fair we should state that FAA is no better on textures than normal Multisampling, while Supersampling FSAA is even superiour texture-quality-wise to both FAA and Multisampling FSAA. However, supersampling is terribly slow. Also why sharpening textures by using slow Supersampling, when anisono does a much better job? So 16x FAA is definately a great thing, because it does what is most important, namely smoothing the edges without too much performance penalty.

                  Comment


                  • #10
                    HAHAHAHAHA... the Gefarts buurry everything... let alone adding FSAA to their problem!
                    "Be who you are and say what you feel, because those who mind don't matter, and those who matter don't mind." -- Dr. Seuss

                    "Always do good. It will gratify some and astonish the rest." ~Mark Twain

                    Comment


                    • #11
                      Hey! If the card is fast enough, maybe the can do the same kinda AA the Voodoo 5 did.

                      Comment


                      • #12
                        Let me just post some links to prove what I said:





                        Only Quincunx makes textures blurry. Normal Multisampling does nothing to textures, Supersampling makes textures even sharper.

                        Comment


                        • #13
                          Do you have links from a reputable site?
                          "Be who you are and say what you feel, because those who mind don't matter, and those who matter don't mind." -- Dr. Seuss

                          "Always do good. It will gratify some and astonish the rest." ~Mark Twain

                          Comment


                          • #14
                            Originally posted by Greebe
                            Do you have links from a reputable site?


                            a bit old though.
                            This sig is a shameless atempt to make my post look bigger.

                            Comment


                            • #15


                              This is a quite good article about Supersampling, Multisampling and Quincunx from a *very* reputable site. Use Babelfish if you don't understand german. Let me just translate one paragraph manually (page 11, last big paragraph):

                              "Let's get rid of one often appearing misunderstanding: <b>Multisampling does NOT blurry textures!</b> Not a bit. <b>Multisampling does just nothing with textures.</b> With Supersampling you can make textures sharper. But thanks to the anisotropic filter, which you can apply additionally to all AA-Methods, this additional sharping is not really necessary. <b>Texture blurrying comes only by Quincunx smoothing.</b> But especially if this smoothing is used combined with Multisampling, like the GeForce3 does, the blurryness gets very strong."

                              Comment

                              Working...
                              X