saniac

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • saniac
    Participant
    -1 pt

    看别的帖子解决了,是因为IntersectP里面应该用t_enter <= t_exit

    saniac
    Participant
    -1 pt

    非常感谢,改成(intersect(Ray(hitPoint, ws)).distance – lightInter.distance) > EPSILON;有画面了,但是我有点不理解,bool block = (intersect(Ray(hitPoint, ws)).coords – lightInter.coords).norm() > EPSILON;我理解这个指两个交点有距离,为啥这个不能代表光线被其他物体挡住了呢?

    另外画面变成了这样,能帮忙分析一下可能是啥问题么?

    This post has received 1 vote down.
    Attachments:
    You must be logged in to view attached files.
    in reply to: 作业3踩坑分享 #5247 Score: 0
    saniac
    Participant
    -1 pt

    已解决,我是求夹角余弦没有normalized,导致有反射的地方全部变成白色。

    in reply to: 作业3踩坑分享 #5245 Score: 0
    saniac
    Participant
    -1 pt

    请问少p具体是啥意思,我也遇到了图中少p那张图的情况。

Viewing 4 posts - 1 through 4 (of 4 total)