Home › Forums › GAMES在线课程(现代计算机图形学入门)讨论区 › 作业7发布公告
- This topic has 5 replies, 5 voices, and was last updated 2 years, 8 months ago by ViXbob.
-
AuthorPosts
-
-
大家好,GAMES101课程的作业7现在发布。
我们在games, smartchair放了两份完全相同的备份,请大家根据网络环境自行选择下载途径。
这次作业的截止时间是北京时间4月21日晚上23:59.
注意:本次作业难度不低,且运行时间较长,请尽早开始完成。
- This topic was modified 4 years, 6 months ago by 助教.
- This topic was modified 4 years, 6 months ago by 助教.
- This topic was modified 4 years, 6 months ago by 助教.
- This topic was modified 4 years, 6 months ago by 助教.
- This topic was modified 4 years, 6 months ago by 助教.
- This topic was modified 4 years, 6 months ago by 助教.
- This topic was modified 4 years, 6 months ago by 助教.
-
本层楼将用于持续更新可能普遍存在的问题,遇到困难时请首先查阅本楼寻找相似问题!
1、如果出现 http://games-cn.org/forums/topic/zuoyeqiguangxianxiangjiaoceshiyichang/ 所描述的部分平面相交被判定为 MISS 的问题,请注意判定 Bounding Box 与 Ray 相交时的边界是 t_enter <= t_exit,而不是 t_enter < t_exit. 此外,你还需要注意此判断的精度问题。
2、如果出现 http://games-cn.org/forums/topic/zuoyeqixuanrandejieguotaian/ 所描述的渲染结果较暗,出现横向黑色条纹的情况,很可能是因为直接光部分由于精度问题,被错误判断为遮挡,请试着通过精度调整放宽相交限制。
3、注意本框架中直接光部分 Intersection.emit 是采样得到的光源的 emission (Li),Vector3f.norm() 返回的是向量的长度而非长度平方。
- This reply was modified 4 years, 6 months ago by 助教.
- This reply was modified 4 years, 6 months ago by 助教.
- This reply was modified 4 years, 6 months ago by 助教.
- This reply was modified 4 years, 6 months ago by 助教.
- This reply was modified 4 years, 6 months ago by 助教.
- This reply was modified 4 years, 6 months ago by 助教.
- This reply was modified 4 years, 6 months ago by 助教.
- This reply was modified 4 years, 6 months ago by 助教.
- This reply was modified 4 years, 6 months ago by 助教.
- This reply was modified 4 years, 6 months ago by 助教.
- This reply was modified 4 years, 6 months ago by 助教.
- This reply was modified 4 years, 6 months ago by 助教.
-
global.hpp下的get_random_float()随机数生成函数存在问题。
会导致在重复调用该函数时,返回同一个值。我的解决方案是把其中定义的dev,rng,dist在main.cpp中定义为全局变量。
修改后的main.cpp和global.hpp在附件中。This post has received 3 votes up.Attachments:
You must be logged in to view attached files.-
LinyanParticipant
感谢,之前一直不对,花了两个小时没看出任何毛病,换成这个就好了。。。还贼快orz
-
十分感谢,修改之后速度快了几十倍 ORZ
另外,其实直接在三个变量的定义前面加上static关键字就可以了。
This post has received 1 vote up.
-
-
-
AuthorPosts
- You must be logged in to reply to this topic.