aWeirdo Posted January 25, 2016 Share Posted January 25, 2016 Hi, i'm looking to add some 2d text above a few meshes, simular to this demo when you hover your mouse over objects: http://czechstartups.org/#3Dmap (i tried to look and figure out how they handled it, but i can't seem to find it anywhere) i also searched the forums and found another question on the subject with an answer about using billboardMode and drawText, which works nicely, except that i don't want a background and it does not appear to accept transparrent hex color codes or null or an empty string (the background simply turns black). Can anyone lead me in the right direction to achieve this, as it can be seen in the demo i linked, or perhaps be kind enough to give an example? Cheers. Quote Link to comment Share on other sites More sharing options...
jerome Posted January 25, 2016 Share Posted January 25, 2016 set your clearColor to "transparent" in the drawText call Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted January 25, 2016 Author Share Posted January 25, 2016 Hi, jerome, It is still black, http://www.babylonjs-playground.com/#14LUU0#0 Quote Link to comment Share on other sites More sharing options...
Temechon Posted January 25, 2016 Share Posted January 25, 2016 It's better now : http://www.babylonjs-playground.com/#14LUU0#2 Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted January 25, 2016 Author Share Posted January 25, 2016 8 minutes ago, Temechon said: It's better now : http://www.babylonjs-playground.com/#14LUU0#2 Perfect Thank you 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.