Skip to main content
James Whiffin
Legend
October 7, 2021
Question

Buffer expansion clamped if Compositing Options -> opacity <100%

  • October 7, 2021
  • 1 reply
  • 883 views

Hi. I have a drop shadow plugin that expands the buffer in smart FX by increasing the 

extra->output->result_rect and extra->output->max_result_rect and this works except if the compositing options -> opacity is set to less than 100% or a mask is applied.

 

In this case, extra->input->output_request.rect becomes the size of the original input, and even though my output buffer is expanded, it's being clipped to the smaller extra->input->output_request.rect. So my question is, how can I tell AE I need to expand the extra->input->output_request.rect? I tried just modifying it inside pre-render but it reverts back to the original size in smart render, so my changes were disregarded.

 

The AESDK sample Resizer works correctly even with compositing options, but it's not using smartFX so I can't copy it's behaviour. 

This topic has been closed for replies.

1 reply

Community Expert
October 7, 2021

have you set:

extra->output->flags |= PF_RenderOutputFlag_RETURNS_EXTRA_PIXELS;

?

James Whiffin
Legend
October 7, 2021

I am, and the output buffer is increasing in size. But even when I fill the entire larger output buffer with a solid fill using PF_FILL(&color, NULL, output_worldP), it's clipped to the extra->input->output_request.rect which is the smaller input size. 

 

I have also tried setting PF_OutFlag2_REVEALS_ZERO_ALPHA but no luck.

Community Expert
October 7, 2021

having a cropped output when a "compositing options" mask is applied is the correct behavior (or so i think).

as for the opacity croppping the output... i currently have no clue.