Skip to main content
Shoggoths_Son
Participating Frequently
December 7, 2024
Question

Why is the `bitdepth` reported in SmartPreRender 0 when the opacity is not %100

  • December 7, 2024
  • 1 reply
  • 201 views

Why is the `bitdepth` reported in SmartPreRender 0 when the opacity is not %100 in the effect compositing options? does the compositing options effect the bit depth that is driving the effect? Are there any guarantees about the bitdepths of the layers being passed in during a smart render?

This topic has been closed for replies.

1 reply

James Whiffin
Legend
December 7, 2024

I just tried to replicate this on my smartFX plugin and it kept saying 32 even if compositing options -> opacity wasn't 100. Many of my plugins rely on this value instead of calling PF_GetPixelFormat on the output, so it would break if it was returning 0 

When you have compositing options the pre-render behaviour changes and you may receive extra calls, this tripped me up because I wasn't accounting for this. 

Shoggoths_Son
Participating Frequently
December 7, 2024

I think I'm getting some extra prerender calls then, everything works if I just ignore the invalid values. I will always receive at least one call with the right value before a render.