Home Forums GAMES在线课程(现代计算机图形学入门)讨论区 [作业3]texture_fragment_shader纹理映射错误

Viewing 4 reply threads
  • Author
    Posts
    • #9065 Score: 0
      我爱图形学
      Participant

      float u = std::min(1.0f, std::max(0.0f, payload.tex_coords.x()));
      float v = std::min(1.0f, std::max(0.0f, payload.tex_coords.y()));

      return_color = payload.texture->getColor(u, v);

      这里取出来的颜色好像很奇怪。。但是也找不到什么问题。。。

    • #9066 Score: 0
      我爱图形学
      Participant

      图在这里

      Attachments:
      You must be logged in to view attached files.
    • #9068 Score: 0
      我爱图形学
      Participant

      对不起傻了。。忘记换纹理的路径了 已解决

    • #9624 Score: 0
      shayito
      Participant
      1 pt

      请问是怎么解决的,请教一下qwq

    • #9625 Score: 0
      shayito
      Participant
      1 pt

      我把main.cpp里的改成了r.set_texture(Texture("<我的工程的绝对路径>\models\spot\spot_texture.svg"));
      但是报错如下

      Attachments:
      You must be logged in to view attached files.
Viewing 4 reply threads
  • You must be logged in to reply to this topic.