DGL
https://delphigl.com/forum/

Amatueur graphics dabbler
https://delphigl.com/forum/viewtopic.php?f=19&t=2025
Seite 1 von 1

Autor:  David Grouchy [ Mo Okt 13, 2003 05:26 ]
Betreff des Beitrags:  Amatueur graphics dabbler

In many pay on-line games the names of the players appear over their heads. The fonts increase and decrease in size as the players move closer or farther away, and they stay perfectly centered. Can anyone point me to some sample code on how this is done in OpenGl. I have tried several approaches on my own, but the results are terribble. Usually the font noticeably jumps in size, and the centering based on character length causes the name to jiggle to the left and right.

David Grouchy

Autor:  Sascha Willems [ Mo Okt 13, 2003 09:44 ]
Betreff des Beitrags: 

What approaches did you try?I also used fonts over the heads of players in the multiplayermode of a game I wrote and had no problems with the font jumping or jiggling.
I use a normal billboard over the player's head and draw it in 3D.

Autor:  Gast [ Di Okt 14, 2003 03:57 ]
Betreff des Beitrags: 

I was using bitmaped fonts. I wanted to be able to change the text dynamically during play, and this seemed the easiest way. The buildboard sounds like a texture mapped to box, with everything but the letters being transparent. I can see how this would solve all the problems I spoke of.

David Grouchy

Autor:  La Boda [ Mi Okt 15, 2003 10:22 ]
Betreff des Beitrags: 

Hallo!
In all cases i would use Outline Fonts. You can size, color and texture them. You should only translate over the player model, billboard and draw the text!



Hab ich irgendwelche Fehler gemact? :oops:

Seite 1 von 1 Alle Zeiten sind UTC + 1 Stunde
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/