Tagged: 

Viewing 6 reply threads
  • Author
    Posts
    • #4773 Score: 0
      mvp
      Participant
      2 pts

      渲染出来的对角线上有背景颜色,也就是那些蓝色的点。而pdf里面给的样例没有这些点。求解。

      Attachments:
      You must be logged in to view attached files.
    • #4775 Score: 0
      leafyoung
      Participant

      感觉是射线穿过两个三角形的边界处,判断的时候认为交点在两个三角形之外,从而取了背景色

    • #4780 Score: 0
      Abyss
      Participant

      把求交时重心坐标的三个>0条件改成>=0就行了,等于时刚好落在边/点上,否则两个面的边都没判定到就漏过去了。

    • #4781 Score: 0
      mvp
      Participant
      2 pts

      谢谢,解决了

    • #4793 Score: 0
      xuyichao
      Participant

      我也一样,不过改成>=之后,前面那个球的阴影里还是有一个点

      Attachments:
      You must be logged in to view attached files.
      • #4889 Score: 0
        chihiro
        Participant

        请问你最后解决了嘛 我也是这样的情况,判断条件是>=,但是阴影里还是存在蓝色的点

        Attachments:
        You must be logged in to view attached files.
    • #4940 Score: 0
      xuyichao
      Participant

      把判断条件里的0换成__FLT_EPSILON__或-__FLT_EPSILON__试试,我已经没有蓝点了。

      • #6501 Score: 0
        Timber
        Participant

        用-__FLT_EPSILON__解决了,谢谢。

    • #6140 Score: 0
      DoubleQ
      Participant
      2 pts

      我也出现了这样的情况,修改了之后还是有一个蓝点像素

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