Home Forums GAMES在线课程(现代计算机图形学入门)讨论区 作业六只能看见兔子的一个脚

Tagged: 

Viewing 5 reply threads
  • Author
    Posts
    • #6847 Score: 0
      hyt589
      Participant
      2 pts

      如题,检查了好久还是没找出问题,求各位大佬帮忙看下哪里出了问题

      Attachments:
      You must be logged in to view attached files.
    • #6852 Score: 0
      hyt589
      Participant
      2 pts

      一次只能传4张图 再补一张效果图

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

      一模一样的问题,楼主你解决了吗,我看你的代码也跟我差不多

      • #6886 Score: 2
        hyt589
        Participant
        2 pts

        我解决了 是在dirIsNeg数组构造的时候应该是(int) (ray.direction.x > 0), 后面那个括号忘了

        This post has received 2 votes up.
    • #7651 Score: 0
      Knewhow
      Participant
      1 pt

      参阅一下楼主代码可以吗

    • #7696 Score: 0
      喂鱼
      Participant
      2 pts

      我这个可能与你的差不多 完全不见兔子了!

    • #9481 Score: 0
      木目三
      Participant

      最近在做作业,发现楼主可能是交点数据求错了
      我是这样做的,结果看起来没问题

      
      Vector3f dir = t_tmp * ray.direction;
      inter.coords = ray.origin + dir;//交点坐标
      inter.distance = dotProduct(dir, dir);//只判断距离,省掉开方
      

      一年多过去,不知道楼主解决了没有

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