图形学离线渲染中常用的透视摄像机模型时根据小孔成像的原理建立的,其实现通常是从向成像平面上发射ray,并把trace这条ray的结果作为成像平面上对应交点的采样结果.即: 图片来自<Fundamentals of Computer Graphics> 现实中的镜头拍摄的图像有景深(Depth of field)的效果,譬如: 图片来自网络 显然,上图中的耳机被放在摄像机的焦平面附近,成像很清晰:背景中的景物则离焦平面较远,呈现出模糊的效果.对离线渲染而言,这一效果有利于加强渲染结果的真实性和层…
Depth of Field 3.4 is a common postprocessing effect that simulates the properties of a camera lens. The name refers to the fact that the effect has had significant performance and feature improvements in Unity 3.4. 景深3.4特效是一种常见的模拟相机透镜的后处理特效.它的名字反映了在…
九月份一篇博都没更新,这段时间一直在unity的坑里爬不起来,感觉真的很绝望啊,仿佛对生活都失去了信心. 渲染问题并没有解决,目前方案只是减轻视觉冲突,降低违和感.项目AR产品也做的越来越艰难,开始经常想一个问题,我从哪里来,我该到哪里去... 好吧,唠叨这么多,言归正传,今天说说unity的Post-Processing后期处理的景深 Depth Of Field 官方文档 https://docs.unity3d.com/Manual/PostProcessingOverview.html…
Inspired by "Interactive Depth of Field Using Simulated Diffusion on a GPU" with heat diffusion for this problem. Keypoints are including, handle the inifinite depth, assign blank positions, remappling the range of CoC, better performance on sol…