Page 1 of 1

Labels on terrain

Posted: Thu Feb 28, 2019 7:18 pm
by kubatp
Hello everyone,
I would like to start a discussion about possible techniques how to add labels onto terrain. To illustrate what I mean:
Image

What techniques would you use to achieve this?

Re: Labels on terrain

Posted: Sat Mar 02, 2019 4:45 am
by rpgplayerrobin
You can do this by making an atlas texture using a font, then using that atlas to render out text using simple quads/triangles using the UV needed for each letter in the atlas.
This works for both 2D (GUI) and for 3D.

From the picture, it seems each letter in the text is just rotated a bit, you could probably just do a simple curve (any kind) and place the quads/triangles with that.

Take a look at the GUI system called Gorilla: http://wiki.ogre3d.org/Gorilla.
There you can basically do everything I explained, even in 3D.

Re: Labels on terrain

Posted: Mon Mar 11, 2019 7:41 am
by kubatp
Thank you rpgplayerrobin, I will investigate it.
I was also thinking about a solution other way around - create textures with library like this https://www.codeproject.com/Articles/13 ... ith-VB-NET and placing it just as a rectangle above the map. This would probably mean higher performance impact than the solution you are proposing, correct?