Continue making RPG prototype like WoW and need to make name and bottom overlay circle .
This is another essential functionality in RPG to bring this classic feel, but here is thing I can’t figure out .
This uses a full resolution offscreen buffer per health bar?! Really really wasteful. The viewport should at least be sized down to the size of the bar. But even with that, this approach scales poorly. It introduces an additional framebuffer overhead with each new bar. Not good if you need many of them.
I didn’t realize VisualInstance3D → GeometryInstance3D existed. Very cool. Thanks for that info. (Label3D inherits from them.) I’m curious how one would use them to implement a health bar, though I don’t want to derail this thread. Label3D is definitively the way for @iOSxcOder to go with. (I didn’t know that existed either.)
Maybe a Sprite3D with a gradient or an AnimatedSprite3D?
A Sprite3D running a shader might do the job just fine, with instance uniform feeding the state. Even two overlapping sprites would be better than involving a viewport.
Label3D is generally great. Its only weak spot is that it doesn’t let you run shaders, at least that was the case last time I checked… in 4.3.
So I tried Label3D - enabled Billboarding , enable - disable depth test, shaded - off , but it clips through objects . Is there some setting to be changed to prevent to be seen through player or other world objects ?
Also this decals, how could I achieve circle , it looks rather square option .