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

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

      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);

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

      This post has received 1 vote up.
    • #9066 Score: 0
      我爱图形学
      Participant
      2 pts

      图在这里

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

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

      This post has received 1 vote up.
    • #9624 Score: 0
      shayito
      Participant
      2 pts

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

    • #9625 Score: 0
      shayito
      Participant
      2 pts

      我把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.