water

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: 作业8 构建rope时出错 #6162 Score: 0
    water
    Participant
    2 pts

    pinned_nodes不用塞数据

    in reply to: 作业七渲染的结果太暗 #5403 Score: 0
    water
    Participant
    2 pts

    确实,我把EPSILON放大到1e-4,然后就亮了。
    看这问题应该是物体上的点发的ray被物体自己挡住了。

    in reply to: 作业三看见奶牛的背面 #5235 Score: 2
    water
    Participant
    2 pts

    好像想明白了,投影变换后,-z的方向看过去,图像其实还是奶牛的正面,但是代码里渲染像素时,x扩展到图像的width,y扩展到图像的height,而且z是vert.z() * f1 + f2,也是正的,差值算出的zp也在这个范围内,所以虽然-z轴看奶牛依然是正面的,但是判断远近是zp,离远点越小越近,所以渲染成了奶牛的背面。

    要是渲染像素时,z拓展到负的区间,再对应改z-buf,此时是朝-z轴看了,那应该就是正面了

    This post has received 1 vote up.
    in reply to: 作业6 渲染时间很长 #5229 Score: 0
    water
    Participant
    2 pts

    说个题外话,我第一次渲染15min,然后结果啥都没有;后来发现BVH的逻辑写反了,把有交点的都忽略调了
    像这种耗时久的问题,建议debug的时候,只渲染一部分,比如图片中间的100*100的像素

    in reply to: 作业三看见奶牛的背面 #5227 Score: -1
    water
    Participant
    2 pts

    感谢回应,但我理解这里的z轴的缩放系数应该是个正数的,而n > f的。应该不是这个问题吧

    This post has received 1 vote down.
    in reply to: 作业三看见奶牛的背面 #5222 Score: 1
    water
    Participant
    2 pts

    我代码贴错了,应是下面这个,不过效果都一样。
    我做的时候始终按照课件的,朝向-z轴,公式也是代入。

    想不通为什么会多一个z轴的对称变换,哭死

    This post has received 1 vote up and 1 vote down.
    Attachments:
    You must be logged in to view attached files.
Viewing 6 posts - 1 through 6 (of 6 total)