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 6: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: 113
Joined: Sat May 23, 2015 5:54 am
Location: New Zealand
Callsign: SplitDec, NZStrik
OS: Windows 10

Re: Non Canvas HUD Building Question

Postby erik » Sat Apr 08, 2017 8: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
Current: Parachutist, Paraglider, Pterosaur, Pilatus PC-9M and variants, ERCO Ercoupe, Fokker Dr.1, Fokker 50, Fokker 100
Less active: Cessna T-37, T-38, Santa Claus. Previous: General Dynamics F-16. Worked on: Wright Flyer
erik
 
Posts: 2245
Joined: Thu Nov 01, 2007 2:41 pm

Re: Non Canvas HUD Building Question

Postby Thorsten » Sat Apr 08, 2017 10: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: 12490
Joined: Mon Nov 02, 2009 9:33 am

Re: Non Canvas HUD Building Question

Postby Hooray » Sat Apr 08, 2017 12:00 pm

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: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Re: Non Canvas HUD Building Question

Postby SplitDecision » Sun Apr 09, 2017 7: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: 113
Joined: Sat May 23, 2015 5:54 am
Location: New Zealand
Callsign: SplitDec, NZStrik
OS: Windows 10

Re: Non Canvas HUD Building Question

Postby SplitDecision » Mon Apr 10, 2017 9: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: 113
Joined: Sat May 23, 2015 5:54 am
Location: New Zealand
Callsign: SplitDec, NZStrik
OS: Windows 10

Re: Non Canvas HUD Building Question

Postby SplitDecision » Wed Apr 12, 2017 7: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: 113
Joined: Sat May 23, 2015 5:54 am
Location: New Zealand
Callsign: SplitDec, NZStrik
OS: Windows 10

Re: Non Canvas HUD Building Question

Postby erik » Wed Apr 12, 2017 9: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
Current: Parachutist, Paraglider, Pterosaur, Pilatus PC-9M and variants, ERCO Ercoupe, Fokker Dr.1, Fokker 50, Fokker 100
Less active: Cessna T-37, T-38, Santa Claus. Previous: General Dynamics F-16. Worked on: Wright Flyer
erik
 
Posts: 2245
Joined: Thu Nov 01, 2007 2:41 pm

Re: Non Canvas HUD Building Question

Postby Johan G » Mon Apr 17, 2017 2: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)
Some YouTube videos
Johan G
Moderator
 
Posts: 6629
Joined: Fri Aug 06, 2010 6:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 2020.3.4
OS: Windows 10, 64 bit

Re: Non Canvas HUD Building Question

Postby SplitDecision » Mon May 08, 2017 7: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: 113
Joined: Sat May 23, 2015 5:54 am
Location: New Zealand
Callsign: SplitDec, NZStrik
OS: Windows 10


Return to Aircraft

Who is online

Users browsing this forum: No registered users and 15 guests