Home Forums GAMES在线课程(现代计算机图形学入门)讨论区 关于作业2两个三角形重叠部分的Z-Buffer问题 Reply To: 关于作业2两个三角形重叠部分的Z-Buffer问题

#7342 Score: 1
luuuuyang
Participant
1 pt

问题已解答
是由于两个三角形的深度信息也就是z值不正确导致的。
参考其他帖子了解到在提供的框架中,在将z值从负值反转的正值的过程中少了一个负号,加上就能计算出正确的z值,可以参考下图注释及注释下一行

This post has received 1 vote up.
  • This reply was modified 2 years ago by luuuuyang.
Attachments:
You must be logged in to view attached files.