今天做了一整天终于优化了kd-tree和Ambient Occlusion。先上
代码,后上图。
首先是做了一个kd-tree,渲染一幅有一千三百多万个三角形的图仅需要0.4秒。

其次是Ambient Occlusion

第三幅是对比图。上图有Ambient Occlusion,下图没有。
再加两张(博客发布后才添加的)。算法没变,只不过多了模型,就暂时不更新代码了:

posted on 2011-01-21 22:45
陈梓瀚(vczh) 阅读(11463)
评论(11) 编辑 收藏 引用 所属分类:
3D