We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.
Hi. To optimise things, I think smartFX discards input pixels if they are outside the output buffer. I need to access all of them regardless if the input is partially offscreen. Is this possible? Non smartFX does this but I'm hoping to do it in smartFX. Thanks!
isn't it just a matter of declaring your output rect size during prerender?
here are another things to try (i don't remember if these do the trick or
1. in PF_RenderRequest, set "preserve_rgb_of_zero_alpha" to "true".
2. use PF_RenderOutputFlag_RETURNS_EXTRA_PIXELS.
Sorry for my (3 year) late reply. If I understand correctly, those two suggestions will expand the output buffer. But the only way to ask smartFX for any input pixels that were out of the comp buffer bounds is to use the params[INPUT]->u.ld instead of checkout_layer_pixels?
I should have clarified, I'm applying this to layers that have continuous rasterization on (like text layers). From my experiments, it's not possible to access these layers out-of-bounds, as their out of-bounds-pixel were never drawn by AE in the first place.
Though it seems it is possible, because the transform effect can achieve it (the text is completely off screen, but the transform effect can still display it in the output buffer):
Seems it can be done in preRender on the checkout layer:
reqBig.rect.left = -1000;
reqBig.rect.bottom = 1000;