Home Forums GAMES在线课程(现代计算机图形学入门)讨论区 作业三 想请教下关于 图片颠倒与投影矩阵中-z问题

Viewing 2 reply threads
  • Author
    Posts
    • #9866 Score: 0
      Soruka
      Participant

      代码全都跑通了一遍,但是因为小牛渲染出来是倒着的,我就把投影矩阵p2o改成-1,然后为了zbuffer的正确 又改了r.darw 里面的f1f2 改了成负的了…
      texture normal phong depth 都是正确出图,但是跑bump 的时候,报segmentation fault(core dump)不知道为什么…
      求大佬指教

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

      这个是bump的shader…写了好多次..之前也一直出segmentation fault(core dump)

      • This reply was modified 5 months, 2 weeks ago by Soruka.
      Attachments:
      You must be logged in to view attached files.
    • #10221 Score: 0
      wyz
      Participant

      我也遇到过这个问题,我看了一下是获取u,v的时候值可能不在0-1内,加了一个限制就好了

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