Board index FlightGear Development Aircraft

Non Canvas HUD Building Question

Questions and discussion about creating aircraft. Flight dynamics, 3d models, cockpits, systems, animation, textures.

Non Canvas HUD Building Question

Postby SplitDecision » Sat Apr 08, 2017 5:06 am

I'm currently constructing a non canvas HUD for the A-4K Skyhawk. I'm still learning as I go.

Is it possible to add dots like this around a speed/ altitude number?
Image
Developing the RNZAF A4K Skyhawk for FlightGear. Download: https://github.com/FGMEMBERS/A-4K
User avatar
SplitDecision
 
Posts: 114
Joined: Sat May 23, 2015 4:54 am
Location: New Zealand
Callsign: SplitDec, NZStrik
OS: Windows 10

Re: Non Canvas HUD Building Question

Postby erik » Sat Apr 08, 2017 7:48 am

Everything for the non-canvas HUD is hardcoded in C++, so if it's not already present then no.
http://wiki.flightgear.org/Head-up_display

Update:
I see there is a <dial> tag in README.hud which sound promising but is not described in the wiki page:

Code: Select all
<dial>
SCALE:
    input
    major-divisions
    minor-divisions
    modulo
    display-span

TAPE:
    radius
    divisions


Erik
erik
 
Posts: 1520
Joined: Thu Nov 01, 2007 1:41 pm

Re: Non Canvas HUD Building Question

Postby Thorsten » Sat Apr 08, 2017 9:10 am

The Eurofighter Typhoon seems to have what you need.

(In other matters, the default HUD seems to be a bit of a dead-end from a rendering POV, we can do all the nice things only with a canvas image, so for a new aircraft I would actually not recommend spending too much time on the classic HUD).
Thorsten
 
Posts: 11086
Joined: Mon Nov 02, 2009 8:33 am

Re: Non Canvas HUD Building Question

Postby Hooray » Sat Apr 08, 2017 11:00 am

It would be possible to come up with a parser for the legacy HUD XML markup and then add a version attribute to easily extend the legacy syntax to support such and other features without people having to be proficient in Nasal/Canvas coding
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11340
Joined: Tue Mar 25, 2008 8:40 am

Re: Non Canvas HUD Building Question

Postby SplitDecision » Sun Apr 09, 2017 6:00 am

Sounds good. Yeah I don't know much about canvas, only really just got my head around xml coding.
Developing the RNZAF A4K Skyhawk for FlightGear. Download: https://github.com/FGMEMBERS/A-4K
User avatar
SplitDecision
 
Posts: 114
Joined: Sat May 23, 2015 4:54 am
Location: New Zealand
Callsign: SplitDec, NZStrik
OS: Windows 10

Re: Non Canvas HUD Building Question

Postby SplitDecision » Mon Apr 10, 2017 8:16 pm

Is it also true that the target marker function of the non canvas HUD has disappeared in the 2017 release? It doesn't work in the NTPS HUD anymore and won't work in my HUD when I add the code...
Code: Select all
<enable-target-markers>true</enable-target-markers>


and even the command...
Code: Select all
--enable-hud
--prop:/autopilot/target-tracking/enable=1
--prop:/sim/hud/visibility=false
--prop:/sim/hud/visibility[1]=true

won't work

Perhaps I'm doing something wrong?
Developing the RNZAF A4K Skyhawk for FlightGear. Download: https://github.com/FGMEMBERS/A-4K
User avatar
SplitDecision
 
Posts: 114
Joined: Sat May 23, 2015 4:54 am
Location: New Zealand
Callsign: SplitDec, NZStrik
OS: Windows 10

Re: Non Canvas HUD Building Question

Postby SplitDecision » Wed Apr 12, 2017 6:30 am

Does anyone know the files which may be affecting its presence other than the HUD.xml file itself?
Developing the RNZAF A4K Skyhawk for FlightGear. Download: https://github.com/FGMEMBERS/A-4K
User avatar
SplitDecision
 
Posts: 114
Joined: Sat May 23, 2015 4:54 am
Location: New Zealand
Callsign: SplitDec, NZStrik
OS: Windows 10

Re: Non Canvas HUD Building Question

Postby erik » Wed Apr 12, 2017 8:27 am

Not that I'm aware of.

The main problem is that everybody who has been developing a HUD has done so long ago with the previous HUD code or recently with the Canvas HUD. Which means that the knowledge about the previous non-canvas HUS has eroded over time.

Erik
erik
 
Posts: 1520
Joined: Thu Nov 01, 2007 1:41 pm

Re: Non Canvas HUD Building Question

Postby Johan G » Mon Apr 17, 2017 1:07 pm

Except for that the readme is still available: data/Docs/README.hud :P
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Johan G
Moderator
 
Posts: 5528
Joined: Fri Aug 06, 2010 5:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 3.0.0
OS: Windows 7, 32 bit

Re: Non Canvas HUD Building Question

Postby SplitDecision » Mon May 08, 2017 6:07 am

Would someone be able to give me the files/ code for a square "target lock" box in a canvas HUD? I'd like to overlay this onto my non canvas HUD because the target markers feature doesn't seem to work anymore. The problem being I know extremely little about canvas.
Developing the RNZAF A4K Skyhawk for FlightGear. Download: https://github.com/FGMEMBERS/A-4K
User avatar
SplitDecision
 
Posts: 114
Joined: Sat May 23, 2015 4:54 am
Location: New Zealand
Callsign: SplitDec, NZStrik
OS: Windows 10


Return to Aircraft

Who is online

Users browsing this forum: Google [Bot] and 2 guests