Board index FlightGear Development

how to draw my own HUD?

FlightGear is opensource, so you can be the developer. In the need for help on anything? We are here to help you.
Forum rules
Core development is discussed on the official FlightGear-Devel development mailing list.

Bugs can be reported in the bug tracker.

how to draw my own HUD?

Postby fane » Tue Feb 28, 2012 6:03 am

FG's HUD is very good. But I want to add some signals in the hud.
How to do this?
Maybe rewriting the hud source code and then compiling them can do work, But it seems like more hard.
I wonder if FG allows users draw their own objects by OpenGL .
fane
 
Posts: 9
Joined: Mon Feb 20, 2012 5:34 pm

Re: how to draw my own HUD?

Postby sgofferj » Tue Feb 28, 2012 10:48 am

See $FG_ROOT/Docs/Readme.HUD
FG 3.1 GIT / Opensuse 12.3 / Phenom II X4 / GForce GTX560
Stefan's little Flightgear corner | The Finnish Weather Center | Wolves in Finland

Working on: EFTP
COM: IAX2:home.gofferje.net/stefan (MO-FR 0700-2000 UTC, SA+SU 0900-2000 UTC)
sgofferj
 
Posts: 789
Joined: Mon Dec 05, 2011 5:13 pm
Location: EFTP
Callsign: OH-SW
Version: 3.1 GIT
OS: Opensuse

Re: how to draw my own HUD?

Postby fane » Sat Mar 03, 2012 3:37 pm

do I need OSG?
fane
 
Posts: 9
Joined: Mon Feb 20, 2012 5:34 pm

Re: how to draw my own HUD?

Postby Hooray » Sat Mar 03, 2012 4:30 pm

depends on what exactly you want to do, many things can be accomplished without directly using OSG.
You could just as well look at the existing code and adapt some snippets as required.
Less complex things can even be implemented in XML space.

But that also depends on you being familiar with C++ and building FG from source?
If yes, we can provide all the pointers to get you started quickly.
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


Return to Development

Who is online

Users browsing this forum: No registered users and 5 guests