Home Forums GAMES在线课程(现代计算机图形学入门)讨论区 作业7:报错segmentation fault core dumped

Viewing 1 reply thread
  • Author
    Posts
    • #5870 Score: 0
      condyy
      Participant
      2 pts

      网上查到的资料说这是因为(1)数组超出范围。
      (2)修改了只读内存。
      但是以上几条我貌似都没有改啊。是只有反射光这段代码报这个错,麻烦大佬帮忙看看。谢谢。

      Attachments:
      You must be logged in to view attached files.
    • #5875 Score: 1
      Russell
      Participant
      1 pt

      我遇到过的是光线没有打到物体,所以interse.obj=nullptr,使用了空指针就出现了相同问题,不知道你是不是这个问题

      This post has received 1 vote up.
      • #8446 Score: 0
        Whalesea
        Participant

        我也是这个问题,困扰了我好久,兄弟牛啊

Viewing 1 reply thread
  • You must be logged in to reply to this topic.