Skip to main content
Richard Rosenman
Inspiring
December 18, 2021
Question

Checkout SDK Project doesn't support alpha?

  • December 18, 2021
  • 1 reply
  • 243 views

Like the title says, I have compiled the Checkout project included with the SDK to learn from it and, although it works as it should, it doesn't seem to repect a checked out layer's alpha channel.

 

For instance, I made a new layer with simply a circle in it, and when I check out that layer, it copies the circle but the pixels that should have zero alpha come through as black. So it does not reveal the current layer outside the circle.

 

Is there a special method to get the alpha to come through as well?

 

Thanks,

-Richard

This topic has been closed for replies.

1 reply

Richard Rosenman
Inspiring
December 18, 2021

EDIT:

 

Ok, so it actually DOES respect the alpha and it carries it over. What I am atually seeing is that my source layer's alpha is being replaced with the checked-out layer's alpha, as opposed to added to it.

 

The behaviour I want is to composite the checked-out layer on top of my current one, not replace it with it's alpha. Any suggestions on what I am missing?

 

Thanks,

-Richard

Community Expert
December 18, 2021

take a look at PF_WorldTransformSuite1. it contains multiple callbacks for compositing where you can specify the composite mode.