lihis Posted December 6, 2016 Share Posted December 6, 2016 Hey again folks! I have a question, maybe two, and something i thought i'd point my finger to. 1st) How can i get rid of world space canvas? I've made a playground here http://www.babylonjs-playground.com/#1U61MP#1 and you can see that even after disposing the canvas it keeps blocking being able to click the upper part of the button. I want it gone out of this existence! (Oh and on my local 2.4 babylon project disposing worldspace canvas actually gets rid of other canvases too, but i'm thinking that's something that was maybe fixed in 2.5. I hope anyways. ) 2nd) How come backgroundFill: "#000000AA" works when creating the canvas but it doesn't when i tried to use it in the click function? I found out about GetSolidColorBrushFromHex and it works but i think it's a bit strange. It's like the rules of the game changed and i don't know why or where they changed. 3rd) I read in the Canvas2D main post Signed Distance Field was implemented after it was suggested so i just wanted to throw this out there: https://medium.com/@evanwallace/easy-scalable-text-rendering-on-the-gpu-c3f4d782c5ac#.d79338enh and http://wdobbie.com/post/gpu-text-rendering-with-vector-textures/ Those seem interesting to me but i don't know if they are. Wingnut 1 Quote Link to comment Share on other sites More sharing options...
jinxsterz Posted December 6, 2016 Share Posted December 6, 2016 1st) hey i think it had something to do with the worldspace canvas node so i added a line canvas5.worldSpaceCanvasNode.dispose(); and it works now no idea about the 2nd and 3rd :| Quote Link to comment Share on other sites More sharing options...
lihis Posted December 6, 2016 Author Share Posted December 6, 2016 @jinxsterz Ah, that does seem to work indeed. Thank you! That was the most important part for me anyway. And since the 3rd one isn't even a question maybe i should post it in the Canvas2D thread. Donno. 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.