How can I create billboards with text?

I want to achieve a similar effect as seen [here][1]. Notice how the names of the cities are always horizontal and with a good size. I thought I would achieve this using Billboards (like I did in Ogre at 2011), but it seems I can’t write text in Billboards… (isn’t this something basic, for instance to have names and other stuff over players in MMORPG?) So I tried to do this using ATextRenderActor, rotated to “follow the camera”:

FVector ObjectLocation = Text->GetActorLocation();
Text->SetActorRotation(FRotationMatrix::MakeFromX(NewLocation - ObjectLocation).Rotator()); // NewLocation is the new location of the camera (inside Tick)

This makes the text get upside down, depending on the position of the camera.

Any solution in C++ please?

1 Like