Viewing 1 reply thread
  • Author
    Posts
    • #12176 Score: 0
      unkvcc
      Participant
      2 pts

      如图,求助阴影处有蓝点的问题

      Attachments:
      You must be logged in to view attached files.
    • #13805 Score: 0
      新瓜不保熟
      Participant

      在图11.07.26
      float x,y的取值问题,你的坐标(x,y)值都是经过移动的(假设像素在每个格子的中间+0.5),然后有因为校准拉扯,修复像素大小等等问题,最后你没有因为这些操作去修改x,y值的起始值
      float x=(2.0f * (i+0.5)/(float)scene.width – 1)*imageAspectRatio * scale;

      float y=(1-2.0f * (j+0.5)/(float)scene.height)*scale;

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