roman_44 Posted January 4, 2016 Share Posted January 4, 2016 Hi Babylon citizens! Thanks for your help. This forum is really helpful!I'm getting text and dynamically drops it on the given plane with DynamicTexture.But I feels like quality gets lower when I put background as transparent. And if it will be some color, then it is better. Screenshots attached.Is it possible to get text better with transparent background?My DynamicTexture size is 1024px, so pixels should not be a problem.Thank you! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 4, 2016 Share Posted January 4, 2016 Hey! how do you do your transparency? Alpha testing or alpha blending? Quote Link to comment Share on other sites More sharing options...
roman_44 Posted January 5, 2016 Author Share Posted January 5, 2016 Hi! As usually I'm not sure I found this way somewhere in the forum: myTexture.hasAlpha = true;var ctx = myTexture.getContext();ctx.fillStyle = 'transparent';and so on... Is it any other way to do transparency? Quote Link to comment Share on other sites More sharing options...
jahow Posted January 5, 2016 Share Posted January 5, 2016 To have smoother transparency, set myTexture as the diffuseTexture and opacityTexture of your material. You're currently using 'alpha testing' transparency, which gives off jagged edges. RustySharpcloud, GameMonetize, Felix-Indoing and 1 other 4 Quote Link to comment Share on other sites More sharing options...
roman_44 Posted January 5, 2016 Author Share Posted January 5, 2016 jahow, that works with just awesome results!Thank you!!!!! RustySharpcloud 1 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.