Forum Replies Created
Viewing 11 posts - 1 through 11 (of 11 total)
-
AuthorPosts
-
请问解决了吗。。我也是
请问一下coords代表的是什么呀= = 我之前用的v3f(1-v-u,u,v),怪不得显示的不对
This post has received 2 votes down.额 不是很明白 是在这个节点下的boundbox的所有物体的getIntersection 的比较吗?
多谢 明白了
请问解决了吗= =难道x = i-eye_pos.x;y = j-eye_pos.y;这样不是求出primary ray direction吗。。。
我也不知道是不是对的了= = 现在脑壳又糊涂了
我想明白了,其实老师说的很清楚了,不用两个buffer,其实要维持的就是一个4倍大小的像素颜色值的一个sampleList,这个sampleList包括的就是每4X采样时的像素值,然后在每个点采样的时候,将在三角形里的颜色值给加到对应的点上,然后在设置颜色的时候取每个这个点对应的samplelsit的4个的平均值。
Attachments:
You must be logged in to view attached files.不,我没有sample_frame_buffer 我直接算的color
一个像素分成4块,然后每个子像素判断在不在三角行里面,如果在 那么k++;
如果不在,那么就取出sampledepthbuffer中的最前面的一个颜色,就是outsidecolor,
然后在setpixel的时候set_pixel(Vector3f(i,j,z_interpolated),t.getColor()*k+outsidecolor*(1-k));This post has received 1 vote up and 1 vote down.对啊 我也在想这个问题 加了一个4倍大小的depthbuffer 不就是相当于多处理的了4倍吗
This post has received 1 vote down.我的才是比例有问题= = 同问 请问我的投影变换矩阵有问题吗 为什么比例不对=
Attachments:
You must be logged in to view attached files.好的 多谢~
-
AuthorPosts
Viewing 11 posts - 1 through 11 (of 11 total)