Home Forums GAMES在线课程(现代计算机图形学入门)讨论区 关于作业补交问题及MSAA与SSAA区别问题

Tagged: 

  • This topic has 7 replies, 5 voices, and was last updated 4 years ago by JH.
Viewing 3 reply threads
  • Author
    Posts
    • #3726 Score: 0
      JH
      Participant
      3 pts

      我比较晚才加入这门课,也补做了之前的作业,请问助教可不可以通过邮件补交之前的作业?

      另一个问题就是关于MSAA和SSAA的区别问题,我在网上查了一些资料也看了之前大佬们的讨论,不过在还是没有完全理解。
      我目前所理解的区别是,MSAA相较于SSAA省去了对于每个subpixel着色(或者计算光照)的步骤,而仍然仅对每个pixel(中心)计算着色(参考了这篇blog的一些内容但是其说法并不一定完全准确https://mynameismjp.wordpress.com/2012/10/24/msaa-overview/)。不过这样一来的话,如果同一个pixel覆盖了多个不同着色的物体,如何只通过计算中心的着色来得到最终的结果呢?在maajor同学提供的RTR4的截图中,pixel中心落在了红色区域,不过MSAA还是单独计算了编号为1的subpixel(蓝色区域)位置的着色,如此一来MSAA是仅简化了落在相同的三角形内的subpixels的着色计算吗?那么如果考虑图二的极端情况,每个subpixel都落在了不同的三角形中,MSAA是否仍然需要同SSAA一样对于每个subpixel进行着色计算呢?望老师助教或同学解答谢谢!

      Attachments:
      You must be logged in to view attached files.
    • #3730 Score: 0
      助教
      Keymaster
      14 pts

      可以通过邮件补交到 lgz17@mails.tsinghua.edu.cn, 我会为你判断正确性,但是出于公平起见,我无法修改你的分数。

      • #3737 Score: 0
        JH
        Participant
        3 pts

        好的谢谢!

      • #3757 Score: 0
        zpo
        Participant

        辛苦

    • #3752 Score: 0
      犹他茶糊涂
      Participant

      是的。MSAA需要对每个sample判断可见性(属于哪个triangle),但是每个<pixel,triangle>组合的着色只进行一次,如果一个pixel内的sample有多个triangle覆盖,则计算多次着色。所有覆盖的三角形,其属性都会插值到像素中心进行着色,所以图2中蓝色三角形需要外插,即重心坐标有负值。

      • #3797 Score: 0
        JH
        Participant
        3 pts

        感谢解答🙏

    • #3766 Score: 1
      maajor
      Participant
      3 pts

      你好,RTR4说硬件会自动偏移采样点。我再摘抄一段RTR4的文字,在P141

      If all MSAA positional samples are covered by the fragment, the
      shading sample is evaluated at the center of the pixel. If instead the fragment covers
      fewer positional samples, the shading sample’s position can be shifted to better
      represent the positions covered. Doing so avoids shade sampling off the edge of a
      texture, for example. This position adjustment is called centroid sampling or centroid
      interpolation and is done automatically by the GPU, if enabled. Centroid sampling
      avoids off-triangle problems but can cause derivative computations to return incorrect
      values

      另外你引用那个博客讲的应该是准确的,MJP是ReadyAtDawn的图形大佬,教团1886那个工作室。

      This post has received 1 vote up.
      • #3799 Score: 0
        JH
        Participant
        3 pts

        感谢🙏,我去把大佬的博客再看一遍😂

Viewing 3 reply threads
  • You must be logged in to reply to this topic.