Home › Forums › GAMES在线课程(现代计算机图形学入门)讨论区 › 有关作业三重心坐标问题 Tagged: 重心坐标插值 This topic has 0 replies, 1 voice, and was last updated 3 years, 9 months ago by wangshengyang. Viewing 0 reply threads Author Posts 2021年3月19日 at 下午3:34 #7837 Score: -2 wangshengyangParticipant Karma: -2 pt 我记得老师课上讲过,重心坐标会因为投影变换而改变,所以投影前后使用的重心坐标应该分别计算。 void rst::rasterizer::rasterize_triangle(const Triangle& t, const std::array<Eigen::Vector3f, 3>& view_pos) 这个函数的参数,t已经做过MVP变换,位于screen space, 但view_pos还未经过投影变换,只做了view 变换,所以还在view space。 那么在计算interpolated_shadingcoords时,对view_pos进行插值,是不是应该计算一次三维空间下的重心坐标。 This post has received 1 vote down. This topic was modified 3 years, 9 months ago by wangshengyang. Author Posts Viewing 0 reply threads You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In