Game Development Community

Small bugfix to guiShapeNameHud's viewcone thing

by Orion Elenzil · in Torque Game Engine · 01/23/2006 (2:52 pm) · 2 replies

There's a small bug in GuiSHapeNameHud's determination of what's in the viewcone.
it's ordinarily pretty ignorable, but with large or small FOVs is significant.

here's the unapproved resource.

#1
02/16/2006 (9:13 am)
Orion - Great suff. What exactly was the problem? Did it miss things, or add extra things or what?
#2
02/16/2006 (9:23 am)
Thanks !

Basically it was operating backwards -
as your FOV got very wide, it was excluding player's names from the shapeNameHud,
and as it got narrow, it was including too many.

You can see the effect a little in stock TGE 1.3 where the shapenames of players disappear when the player is near the right or left edge of the window.

It's really pretty minor,
but it's always fun to get to use math.