Flomotion Posted March 30, 2018 Share Posted March 30, 2018 Hello all, I'm trying to combine a material in blend mode with an alpha channel. But it doesn't seem to be possible.(alpha overrides the alpha from bitmap) http://www.babylonjs-playground.com/#ST2E8W Perhaps using the shader builder could lead to a solution. But I don't really understand shaders and I can not find info about it. I do think there is something in this playground. But it doesn't work anymore because the shaderbuilder.js can not be found. http://www.babylonjs-playground.com/#E6OZX#58 Is there anyone who can help me in the right direction? thanks! Quote Link to comment Share on other sites More sharing options...
Guest Posted March 30, 2018 Share Posted March 30, 2018 Hello we have a lot of options to combine alpha: http://doc.babylonjs.com/api/classes/babylon.engine#alpha_add Do you find one that could fit your needs? Quote Link to comment Share on other sites More sharing options...
Gijs Posted March 30, 2018 Share Posted March 30, 2018 I found this, maybe it's that again?: Quote Link to comment Share on other sites More sharing options...
Flomotion Posted March 31, 2018 Author Share Posted March 31, 2018 Thanks for your answers. Deltakosh, I'm aware of the different modes. But maybe I just don't understand them. Because when I apply some of them I don't see any difference with not using a blend mode. But none of them help me combine the alpha from the image and applying the blend mode. Gijs, I was nearly embarrased to see that you found a similar question from me from a while back. Unfortunately this seems to be a different issue. Because the alpha blendmode will disable/ override the opacity texture too. And using the opacityTexture gives many unpredictable results in z-ordering. I need both to be able to create a colored label with a print with alpha on it.The alpha defines the shape of the label. Since white being 'printed' on a colored surface will show the colored surface I also need an alpha blend mode. So I'll keep looking.. I'm affraid it will be shaders. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 2, 2018 Share Posted April 2, 2018 Perhaps I do not understand your need then On this PG: http://www.babylonjs-playground.com/#ST2E8W can you tell me what you would expect? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.