Home › Forums › GAMES在线课程(现代计算机图形学入门)讨论区 › 作业3双线性插值后效果更差了
Tagged: bilinear
- This topic has 16 replies, 6 voices, and was last updated 5 years, 7 months ago by
lllu.
Viewing 4 reply threads
-
AuthorPosts
-
-
https://cseweb.ucsd.edu/classes/wi18/cse167-a/lec9.pdf
给你个参考链接,我按这个做得 -
a+coef*(b-a)
-
失误···这里公式忘了检查。。。但是改正了之后效果还是不好···
-
s t不除宽高试试
-
好了很多~就四条腿那块儿,灰白交界处依然毛躁
-
蹄子那里本来效果就比较糙吧?
-
-
-
为啥你的色彩也这么浓郁
This post has received 1 vote up.-
重点是边缘部分吧。。。你对比下几个颜色部分的交界处确定下效果
你这么一说我发现我普通贴图的结果就很浓郁,看上去又不像出错。。。
-
老铁们我知道我错在哪儿了,texture.cpp中,getcolor()函数里面,应该把width-1,hieght-1。完了之后,双线性插值效果特别好
-
-
-
-
-
-
-
-
-
-
lerp写错了吧,楼上说的是对的,既然第一个参数c代表百分比,那不应该是(1-c)*a+c*b吗
-
-
lllu
Participant我能不能问一下为什么要width-1,hieght-1呀
-
AuthorPosts
Viewing 4 reply threads
- You must be logged in to reply to this topic.