Raitch Posted November 15, 2016 Share Posted November 15, 2016 Hello, I'm a few weeks into Babylon and so far it's been working out well. However now I'm at a crossroad on whenever how I should generate and display life bar above meshes. I've looked at a lot of documentation such as WorldScene Canvas 2D, sprites and what not but I fail to see which on would fit my needs. Requirements: * Follows mesh and is maybe 5y above it * Can have width and color alterted easily (based on hp) * On top of all other 3D objects * Have alpha * Face camera all the time Basically from what I get World Scene can't be faced against the camera all the time, sprites would be a hazzle to make 100 frames for each % and using a Ground mesh with .lookAt() wouldn't be on top always (I have palms in the way). I don't need a fully complete code, just a direction on how I can accomplish this. Bonus question: Should I make the GUI in html/css or Canvas2D? Canvas2D makes more sense for rendering and consistency, but I'm so used with styling in css. What do most people use? Quote Link to comment Share on other sites More sharing options...
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.