Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Bryan See on June 27, 2016, 11:53:43 am

Title: HUD Targeting Brackets
Post by: Bryan See on June 27, 2016, 11:53:43 am
Despite the introduction of the HUD gauges and Yarn's HUD scaling and resolution fix, there are shortcomings - one that prevents us from changing the HUD visuals to be completely different from FreeSpace, and what modern computer and video games (this year) did.

What is needed is several additions and fixes, and that means opening up new possibilities for HUD designers, while getting rid of the hard-coded limitations that hobbed modders for years.
 
The answer is pretty obvious: the HUD targeting brackets. Corners of the targeting brackets have been unchanged since 1998. Under my suggestion, targeting bracket corners can be changed and/or have vertex/geometry/fragment shaders applied to not only them, but also other HUD gauges as well. The numbers of the targeting bracket corners can be changed arbitrarily, for example, 5 to 8, or 2 to 3, instead of only 4.
Title: Re: HUD Targeting Brackets
Post by: zookeeper on June 27, 2016, 12:04:50 pm
You can do it already.
Title: Re: HUD Targeting Brackets
Post by: Grizzly on June 27, 2016, 02:51:46 pm
Can you do an overwatch style red outline? http://eriktwicereviews.com/wp-content/uploads/2016/05/Overwatch.4.GraphicalEffects.jpg
Title: Re: HUD Targeting Brackets
Post by: zookeeper on June 27, 2016, 04:49:35 pm
Can you do an overwatch style red outline? http://eriktwicereviews.com/wp-content/uploads/2016/05/Overwatch.4.GraphicalEffects.jpg

I'm afraid not. :( Outlines aren't really something you could script.
Title: Re: HUD Targeting Brackets
Post by: Phantom Hoover on June 27, 2016, 05:55:22 pm
That seems like exactly the sort of thing you'd do with shaders
Title: Re: HUD Targeting Brackets
Post by: zookeeper on June 27, 2016, 06:37:35 pm
I'm pretty sure you generally can't do outlines in shaders only. It more or less needs the engine to do most of the work.
Title: Re: HUD Targeting Brackets
Post by: niffiwan on June 27, 2016, 08:05:56 pm
I recall there was a CEL shader (http://www.hard-light.net/forums/index.php?topic=85390.0) that did outlines.  I think that was pre-deferred rendering though so the shaders probably won't work with the current version of FSO.
Title: Re: HUD Targeting Brackets
Post by: Bryan See on June 27, 2016, 08:11:08 pm
That's good.

However, the description (http://www.hard-light.net/wiki/index.php/Hud_gauges.tbl#.2BTarget_Brackets:) on target brackets shows only two valid sub-entries: Font and Dot Filename. There's no Filename nor Shader sub-entries.