Cache
缓存
Cache 缓存Cache
缓存
Clicking on the green icon below the Volume Builder’s list creates a cache layer. What’s a cache layer you ask? A cache layer is similar to the freeze layer in the Fields: it creates a cached voxel state of the previous layer that is not recalculated each time a change is made to the following list entries. In short, a lot of time can be saved when working with and rendering complex Boole setups.
点击体积生成器列表下面的绿色图标创建一个缓存层。你会问什么是缓存层?缓存层类似于 Fields 中的冻结层: 它创建前一层的缓存体素状态,每次对以下列表条目进行更改时不会重新计算。简而言之,在处理和渲染复杂的 Boole 设置时可以节省大量的时间。
Also, if a volume scene is loaded it will be displayed quickly in the viewport since the volumes are read directly from the cache layer and - depending on the arrangement of the cache layer in the list - all voxel values can be read directly out of the cache layer in a best-case scenario (cache layer at the very top of the list).
另外,如果一个体积场景被加载,它会在视图中快速显示出来,因为体积是直接从缓存层读取的,并且——取决于缓存层在列表中的排列——所有的体素值都可以直接从缓存层读出,这是最好的情况(缓存层在列表的顶部)。
The file will, of course, be much larger with the cache layer.
当然,这个文件会因为缓存层而变得更大。
Attention: The cache layer only works after the Bake button has been pressed and the layer has actually been baked.
注意: 缓存层只有在 Bake 按钮被按下并且层已经被烘培后才能工作。
例子
In this example scene (animation of a milling tool milling a cast element, both objects were modeled using volumes) the internal preparaton for rendering with and without a cache layer:
在这个例子场景中(一个铣刀加工一个铸造元素的动画,两个对象都使用体积建模)内部准备渲染有和没有缓存层:
Please note: The time for calculation is only offset: from the time of rendering to another point in time (when you click on the Bake/Update button). For the example above, this would be 20 to 315 seconds for a 20-frame animation.
请注意: 计算时间只是从渲染时间到另一个时间点(当你点击 Bake/Update 按钮)的补偿。对于上面的例子,一个20帧的动画需要20到315秒。
A cache layer can be enabled or disabled using the corresponding check box. If enabled (and already baked), all previously arranged layers will be grayed out to show that the cache layer is active. The cache layer icon is either green ("full" cache layer; already baked) or red (cache layer exists but is empty - and therewith ineffective).
可以使用相应的复选框启用或禁用缓存层。如果启用(并且已经启用) ,所有以前安排的层都将变成灰色,以显示缓存层是活动的。缓存层图标可以是绿色(“完整”缓存层; 已经烘焙好了)或红色(缓存层存在,但是是空的,因此无效)。
OVOLUMECACHELAYER.html