Forum Replies Created
Viewing 10 posts - 1 through 10 (of 10 total)
-
AuthorPosts
-
ws和wo都没有normalize
你这代码那自己能看的下去么…我想问一下 球的求交的坑点是不是在求解二元一次方程那, 框架里用的是 x1*x2 = c/a 来算的x2, 自己试验了一下算出来的x2 和 求根公式里算的x2有点差别.
你光源的位置是不是变了,中间的墙变亮了
是你射出的第二条光线,光线的两个端点都在同一光源上(只有一个光源,原来的点打在了光源上,sample的点也还在光源上)
This post has received 1 vote up.ray 的 t 默认不是0么 t*direction + origin = origin 吧
是否block 我是又做了一次intersect
这是我现在的结果 好像上面还是有点暗…Attachments:
You must be logged in to view attached files.图1别减eye_pos 试试,虽然我也不知道为什么,但是把这个改了就显示了…
包围盒的t算的是光线进出slab的时间
最后算Intersect,用node里面的object算,你可以看到只有叶子节点的object是被赋值了的This post has received 1 vote down.我也贴一张
v没有normalize()导致specular过大…Attachments:
You must be logged in to view attached files.http://games-cn.org/forums/topic/zuoye5dejieguoweishashidaode/ 貌似已经有人问过了, 图片和屏幕y轴是相反的
我的理解是 光线与pair slab平行的话,就相当于光线永远在pair slab里面(没有交点,t无解=>t(min) = -inf, t(max) = inf), 然后取max和min操作时就不会影响其他维度了
This post has received 1 vote up. -
AuthorPosts
Viewing 10 posts - 1 through 10 (of 10 total)