Skip to content

Render Buckets

For each viewport the rendering happens as follows:

  • For each processor call preFrame

  • Dispatch each geometry in a corresponding renderQueue (one for each Bucket) and build shadow queues

  • For each processor call postQueues

  • Rendering OpaqueBucket with object sorted front to back. (In order to minimize overdraw)

  • Rendering SkyBucket with depth forced to 1.0. this means every object of this bucket will be far away and behind everything

  • Rendering TransparentBucket with object sorted back to front. (So transparent objects can be seen correctly through each other)

  • For each processor call postFrame

  • Rendering TranslucentBucket with objects sorted back to front

The translucent bucket is normally rendered after scene processors. It can be useful for transparent objects that should not go through the usual scene processing. Self-light-emitting particle emitters (such as a fire) are a good example.

Post processors are not applied to this bucket with one exception : the FilterPostProcessor.

The filter post processor hijacks the rendering process and renders a full screen quad with the texture of the scene applied on it.

When a filter stack needs translucent objects rendered with scene depth at a particular point, TranslucentBucketFilter can take over that bucket from the render manager. Place it deliberately in the filter chain and test the result; whether it is needed depends on the effects and desired ordering.

The nice side effect of this is that if you want to apply a post filter to your translucent bucket (like bloom for example) you can just push up the translucent bucket filter in the filter stack.