For my current project I need the following funcionality:
The program displays celestial bodies at their positions (3D). This is what I've done so far using OpenTK. I'd now like to display text labels at the positions of the bodies. In general I want to display 2D text at any position in 3D space.
The result should look similar to this. The screenshot was taken from GMAT, an open source project. Of course I already tried to search their code for a solution but there are tot many files containing floods of cryptic c++. I also tried to find a solution in these forums and in the example sources on this page but the only thing I've accomplished was this.
VB code I've used:
Private Sub drawString(ByVal s As String, ByVal position As Vector3, ByVal color As Color) Using printer As New OpenTK.Graphics.TextPrinter printer.Print(s, SystemFonts.DefaultFont, color) End Using End Sub
Is there another way to print text? (I've read this but I can't believe that it's that difficult to print a simple string?)
[Mod hint: use <code lang="vbnet"> for to prettify vb.net code]