I’m build an RPG style game and trying to render a few pieces of text above each character, like their name. I saw a couple playgrounds that represent how to accomplish this but I’m running into a few roadblocks that I can’t resolve.
First, an example of what I’m trying to accomplish so we have a reference: https://www.windowscentral.com/sites/wpcentral.com/files/styles/xlarge/public/field/image/2020/01/world-of-warcraft-patch-8.3_4.jpg
And here are some playground examples that are helpful, but arent exactly what I need:
- using the GUI: https://playground.babylonjs.com/#41IFI5#8 - this mostly looks like what I want - I see there’s the TextBlock element that I can use. The issue here is, as I zoom the camera away from the boxes, the text doesn’t shrink along with the boxes, which I dont want. The text should shrink proportionally with the boxes
- using a plane mesh with billboard mode: Babylon.js Playground - this also looks mostly like what I want, but I dont want the plane mesh that the text sits in to have a color or a background - I just want to be able to see text
any tips would be greatly appreciated and I would especially LOVE (if someone has the time) a sample playground with the minimal amount of code for me to understand (maybe just a box with some text above it)!
Thanks!!