Home Forums GAMES在线课程(现代计算机图形学入门)讨论区 作业3 超采样牛牛,但没有消除锯齿。

Tagged: 

Viewing 0 reply threads
  • Author
    Posts
    • #16243 Score: 0
      jarmoy
      Participant

      首先维护了属于Sample的两个vector。

      一个是sample_frame_buf[2*width * 2*height]。

      另一个是sample_depth_buf[2*width * 2*height]。

      对于一个特定像素,会遍历他的四个子像素。然后给四个子像素进行赋值(frame_buf depth_buf)。只要至少有一个子像素被赋值,那么这个像素就会被赋值。取均值。

      这个算法在第二个作业中消除了锯齿。

      但是没法给小牛牛消除锯齿。

      Attachments:
      You must be logged in to view attached files.
Viewing 0 reply threads
  • You must be logged in to reply to this topic.