Caustics
焦散
Basic 基础Caustics
焦散
With Advanced Render’s powerful caustics engine, you can create realistic patterns of focused light such as the bright patches that a whiskey tumbler casts onto a wooden floor. For a general introduction to caustics, including commonly-used terms, look up What are caustics? in the index.
使用高级渲染的强大焦散引擎,你可以创建聚焦光线的现实模式,如明亮的补丁,威士忌酒杯投放到木地板上。对于焦散线的一般介绍,包括常用的术语,查找什么是焦散线?在索引中。
You use three dialogs to set up caustics. On the Caustics page of the render settings, set the basic properties of the caustics effect such as its strength. On the Caustics page of each light source (Attribute Manager), refine the effect for light sources. On the Illumination page of the Material Editor, fine-tune the caustics effect for any material. Note that you can also access the caustics settings for materials via the Attribute Manager, provided that you have selected the desired material.
你使用三个对话框来建立焦散线。在渲染设置的焦散页面上,设置焦散效果的基本属性,比如它的强度。在焦散页的每个光源(属性管理器) ,细化效果的光源。在材质编辑器的照明页面上,微调任何材质的焦散效果。注意,你也可以通过属性管理器访问材质的焦散设置,只要你已经选择了所需的材质。
参数
什么是焦散?
Caustics are patterns of focused light created by curved surfaces that are reflective or refractive.
焦散线是由具有反射性或折射性的弯曲表面产生的聚焦光线图案。
Advanced Render enables you to create both surface caustics and volume caustics.
高级渲染可以创建表面焦散和体焦散。
The surface caustics algorithm
表面焦散线算法
For surface caustics, you need:
对于表面焦散,你需要:
Caustics are calculated in a very different way to global illumination and raytracing. Global illumination and raytracing send rays from the camera into the scene. With caustics, however, photons are sent from the light source into the scene. Each photon is given a starting energy. A photon’s energy is reduced as it passes through the scene and is reflected or refracted by object surfaces (Figure 4).
焦散线的计算方法与全局光源和光线追踪完全不同。全局光源和光线追踪将光线从相机发送到场景中。然而,在焦散线中,光子从光源发射到场景中。每个光子都有一个起始能量。当光子穿过场景时,它的能量减少,并且被物体表面反射或折射(图4)。
When a photon hits a reflective or transparent surface, the photon is reflected or refracted. The photon loses some energy in the process and the material’s properties are taken into account.
当一个光子撞击一个反射或透明的表面时,光子被反射或折射。光子在这个过程中损失了一些能量,同时考虑了材质的性质。
For example, if the surface reflects or refracts blue light only, the photon’s color changes to blue. If the photon still has some energy left at this point, it continues to fly through the scene. When the photon hits a surface that is neither reflective nor transparent, the photon ends its journey there and its values are stored in a data structure called the photon tree — later, the values in the photon tree will be interpolated to calculate the caustics effect.
例如,如果表面只反射或折射蓝光,光子的颜色就会变成蓝色。如果光子在这一点上仍然有一些能量,它就会继续穿过这个场景。当光子撞击到一个既不反射也不透明的表面时,光子在那里结束了它的旅程,它的值被存储在一个称为光子树的数据结构中ーー稍后,光子树中的值将被插值以计算焦散效果。
You can prevent a material from receiving the surface caustics effect. Photons that hit such surfaces will end their journey there and their values will not be saved in the photon tree — this prevents the material from receiving a caustics effect. 你可以阻止材质接收表面焦散效果。撞击这些表面的光子将在那里结束它们的旅程,它们的价值将不会被保存在光子树中ーー这就阻止了材质接收焦散效果Once all photons have ended their journey in one way or another, the values in the photon tree are interpolated to calculate the surface caustics effect for the image.
一旦所有的光子以这样或那样的方式结束了它们的旅程,光子树中的值被插值以计算图像的表面焦散效果。
Double-caustics are possible. This happens when an object focuses caustics onto another object that generates caustics. See Figure 5.
双焦散是可能的。当一个物体聚焦焦散到另一个产生焦散的物体上时,就会发生这种情况。见图5。
The volume caustics algorithm
体积焦散线算法
Volume Photon caustics are calculated in a similar way to surface caustics. First you need the following:
体积光子焦散线的计算方法与表面焦散线的计算方法相似:
As with surface caustics, when a photon hits a reflective or transparent surface, the photon is reflected or refracted. The photon loses some energy in the process and the material’s properties are taken into account. For example, if the surface reflects or refracts green light only, the photon’s color changes to green. Provided the photon still has energy, it then continues to fly through the scene.
和表面焦散一样,当一个光子撞击一个反射或透明的表面时,光子会被反射或折射。光子在这个过程中损失了一些能量,同时考虑了材质的性质。例如,如果表面只反射或折射绿光,光子的颜色就会变成绿色。如果光子仍然有能量,那么它就会继续在场景中飞行。
In contrast to surface caustics, the photons of volume caustics are saved in the photon tree at regular intervals. When the photon hits a surface that is neither reflective nor transparent, the photon ends its journey there. Once all photons have completed their journey, the values in the photon tree are interpolated to calculate the volume caustics effect for the image.
与表面焦散相比,体焦散的光子以规则的间隔保存在光子树中。当光子撞击到一个既不反射也不透明的表面时,光子的旅程就到此结束。一旦所有的光子完成了它们的旅程,光子树中的值被插值以计算图像的体积焦散效果。
Troubleshooting Surface Caustics
表面焦散故障排除
The best Photon caustics settings depend on factors specific to the scene such as the distance between the light source and the object that is generating caustics. However, the following steps should help you to achieve a good result.
光子焦散线的最佳设置取决于场景特定的因素,如光源和产生焦散线的物体之间的距离。然而,下面的步骤应该可以帮助你达到一个好的结果。
Troubleshooting Volume Caustics
解决体积焦散问题
If you notice artifacts of the type illustrated below when rendering volume caustics, on the light’s Visibility tab, try reducing the Sample Distance value. This will, however, add to the render time.
如果你在渲染体焦散线的时候注意到下面说明的工件,在灯光的可见性标签上,尝试减少样本距离值。然而,这会增加渲染时间。