Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose a way to set blend modes with public API #7203

Open
OmarShehata opened this issue Oct 30, 2018 · 8 comments
Open

Expose a way to set blend modes with public API #7203

OmarShehata opened this issue Oct 30, 2018 · 8 comments

Comments

@OmarShehata
Copy link
Contributor

Currently, I don't think there's a way to set a blend mode without knowing something about the private API.

BlendingState says it's a helper for custom render states, but renderState is private.

It's come up on the forum here and here.

We can either document the current way, or come up with a way to set blend modes, maybe even on the Entity layer?

@hpinkos
Copy link
Contributor

hpinkos commented Oct 30, 2018

@OmarShehata it sounds like both of those forum issues could be fixed by passing in orderIndependentTranslucency: false. Is there a different issue here that I'm missing?

@OmarShehata
Copy link
Contributor Author

I'm not sure how that helps? For example, the last poster before me in the second thread is trying to creating an alpha blending mode to overwrite alpha instead of add, so that in this example, the ten overlapped blue polygons would still have an alpha of 0.1 instead of the alpha growing like it does:

Sandcastle

Maybe you want to define other custom blend functions. There's a lot you can do there if this was easy to set.

@hpinkos
Copy link
Contributor

hpinkos commented Oct 30, 2018

Oh okay, thanks for the extra explanation

@nitzanmo
Copy link

nitzanmo commented Feb 5, 2019

Hello,
I'm experiencing the same issue.

Is the solution still in development?
Thanks!

@OmarShehata
Copy link
Contributor Author

@nitzanmo no one is actively working on this at the moment. Can you tell us a bit about your use case/what you're trying to do with blend modes? That helps us inform design decisions when we/other community members develop a feature.

@nitzanmo
Copy link

nitzanmo commented Feb 6, 2019

Sure, no problem.
I've mentioned it all in this issue : #7541

Thanks!

@nitzanmo
Copy link

So as I've mentioned in #7541 , we need a way to customize the blending options in EllipseGraphics.

TY!

@OmarShehata
Copy link
Contributor Author

Thanks for bumping this @nitzanmo . If you have a chance, opening a pull request to add this feature I think would help a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants