Visualize unrendered, empty buckets

Status: new

I may have brought this up before but don’t remember getting any feedback.

I’d love to have a way to visualize unrendered, EMPTY buckets in the VFB, i.e. areas of an image that are simply empty and will return black.

When rendering high-resolution product work, it’s often desirable to be able to ensure these areas get rendered ASAP so that dynamic bucket subdivision kicks in as quickly as possible.

Currently I am not aware of any way to do this. The only solution is to manually interactively run around the image to try to hit these regions, but there’s no way to visualize it. On very high-rez images, even a few small missed areas can prevent dynamic subdivision from beginning, potentially really affecting render times.

Hello,

I’m not sure I understand what is the goal here ? Can you elaborate a bit ?

Best regards,
Yavor

I don’t get it either. Buckets that are unrendered are literally visible? Either they show black or the lightcache no?

In the VFB I would like a way to be able to see which buckets are yet to render. Empty buckets (areas of an image that will return black), look the same before and after they have rendered, making it much harder to identify and force those to render first by using the “Follow Mouse” feature. This is a method of “cleaning up” faster rendering buckets in order to force the start of dynamic subdivision, which is desirable for high-cost regions of an image. If empty buckets do not render first, all cores can get stuck UNSUBDIVIDED on these expensive areas, causing longer render times.

Alternatively, an even better solution would be to have some method of forcing empty buckets to render first automatically.

Currently the only workaround I’ve found is to use a utility pass that does give visual feedback on empty areas, such as Sample Rate, however this is cumbersome and does not allow me to be viewing the RGB channel while eliminating the empty buckets.

Aaah ok I think I get it, you are rendering on a black background for instance. Or even HDRIs, they render very fast. You mean to actually have the bucket choosing algorithm choose those areas first, like simple or empty backgrounds.

Exactly, ideally the renderer would clear “cheap” buckets first. Failing that, at least a visual cue so that it can be done manually, such as the option for the entire image area in the VFB to start a render showing a color other than black, indicating unprocessed buckets. Empty areas would turn black only when rendered.

Nowadays for local rendering you don’t really need to do this. V-Ray will split buckets that are already started without wasting the work so far. So when some buckets are ‘stuck’ and there are no more buckets for other cores - the ‘stuck’ buckets will be split and work sent to the free cores.

Yes, but if every core is working on an expensive bucket, this can take hours to happen as subdivision does not kick in until the number of render cores and number of unrendered buckets matches.

It can be hard to know for sure how much this affects overall render times, but based on years of working with Vray and observation, it seems very clear to me that certain buckets render exponentially faster when they are subdivided, versus being left for a single core to process.

Thus, it’s desirable to force the subdivision process to be used on the most expensive buckets, rather than being wasted on, say, an empty area of black. Some high rez buckets seem like they won’t ever resolve, even, unless subdivided.

Yeah I understand the issue, when I’m testrendering i always 'paint" the buckets on the empty parts too. I think some kind of function that checks which center of the bucket casts a ray on nothing or hdris or so, get priority.

Since that would take up render resources itself – and would likely be much more complex to implement – this is why a simple means of visualizing which buckets are unrendered is probably the simplest option.

I agree that smaller buckets seem working faster but that is because there’s visible progress more often :slight_smile:
If we are looking only at time to final image - fewer bigger buckets are faster. That is because V-Ray needs to render some extra pixels on the outside of the perimeter of each bucket. That is needed for image filtering. The extra pixels depend on the perimeter and the useful pixels depend on the area of the bucket.

If you have 3ds Max and V-Ray - there’s an advanced option in here System
that can modify what happens with the previous render. For example if it is set to ‘Blue’ the whole image is tinted blue and it is easier to see what’s already rendered. (LightCache preview must be off).