Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter Visualization Project
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Orbiter Visualization Project Orbiter external graphics development.

Reply
 
Thread Tools
Old 06-04-2016, 10:13 PM   #1
Sword7
Orbinaut
Default HUD routines

Folks,

I was looking for HUD routines but they are not in OVP sources or DG sources.

Does anyone know where are HUD routines that display full-screen cockpit panel?

Thanks,
Tim Stark

---------- Post added at 06:13 PM ---------- Previous post was at 11:22 AM ----------

Well, no one responded but I now found HUD routines (clbkDrawHUD and clbkRenderHUD) in DeltaGlider.cpp (in Orbiter's orbitersdk package). They built vertexes and called oapiRenderHUD functions to draw vertexes.

Unfortunately, they are in closed-source Orbiter's API.
Sword7 is offline   Reply With Quote
Old 06-05-2016, 12:34 AM   #2
ADSWNJ
Scientist
 
ADSWNJ's Avatar
Default

This HUD Drrawer SDK
is what you are looking for. Sample MFDs using it: LaunchMFD and RV Orientation.
ADSWNJ is offline   Reply With Quote
Old 06-05-2016, 08:40 AM   #3
Face
Beta Tester
 
Face's Avatar

Default

Quote:
Originally Posted by Sword7 View Post
 Does anyone know where are HUD routines that display full-screen cockpit panel?
What do you mean? HUD drawing or 2D cockpit panel drawing?
Face is offline   Reply With Quote
Old 06-05-2016, 12:11 PM   #4
Sword7
Orbinaut
Default

Quote:
Originally Posted by Face View Post
 What do you mean? HUD drawing or 2D cockpit panel drawing?
I mean HUD drawing routines like pitch ladder, compass tape, direction, velocity vector, etc. I was looking for routines but can't find them.
Sword7 is offline   Reply With Quote
Old 06-05-2016, 12:56 PM   #5
Face
Beta Tester
 
Face's Avatar

Default

Quote:
Originally Posted by Sword7 View Post
 I mean HUD drawing routines like pitch ladder, compass tape, direction, velocity vector, etc. I was looking for routines but can't find them.
I see. Yes, the algorithms for the standard HUD elements you listed above are implemented in Orbiter itself. I don't think they are very complicated, though. May I ask why you need them?
Face is offline   Reply With Quote
Old 06-05-2016, 01:30 PM   #6
Sword7
Orbinaut
Default

Quote:
Originally Posted by Face View Post
 I see. Yes, the algorithms for the standard HUD elements you listed above are implemented in Orbiter itself. I don't think they are very complicated, though. May I ask why you need them?
I now know that HUD elements are in Orbiter API. I was looking for them to learn how to write own flight simulator myself. I now found info in Principles of Flight Simulation by David Allerton.
Sword7 is offline   Reply With Quote
Old 06-05-2016, 05:29 PM   #7
Face
Beta Tester
 
Face's Avatar

Default

Quote:
Originally Posted by Sword7 View Post
 I was looking for them to learn how to write own flight simulator myself.
Ok. What about open-source flight simulators like FlightGear? You can check that code for HUD rendering or even full instrument simulations.
Face is offline   Reply With Quote
Old 06-05-2016, 05:56 PM   #8
Sword7
Orbinaut
Default

Quote:
Originally Posted by Face View Post
 Ok. What about open-source flight simulators like FlightGear? You can check that code for HUD rendering or even full instrument simulations.
Yeah. Oh, I forget that. Thanks for let me know. I will look into that.
Sword7 is offline   Reply With Quote
Old 06-06-2016, 11:54 PM   #9
ADSWNJ
Scientist
 
ADSWNJ's Avatar
Default

So the RV Orientation HUD drawing is no good for you then? 3D docking corridors, plus 3D arrows for the 6 DOF's, plus data elements ...

(It's been a while since I wrote it, but I remember being pretty excited when I figured out how to drop my guidance rectangles on top of Martins!)
ADSWNJ is offline   Reply With Quote
Old 06-07-2016, 05:04 AM   #10
Face
Beta Tester
 
Face's Avatar

Default

Quote:
Originally Posted by ADSWNJ View Post
 So the RV Orientation HUD drawing is no good for you then? 3D docking corridors, plus 3D arrows for the 6 DOF's, plus data elements ...
I guess docking corridors is not necessary for a flight simulator. But we don't know what he really understands under the term "flight".
If he struggles with basic elements already, I think advanced HUD drawings would just "block the view".
Face is offline   Reply With Quote
Old 06-07-2016, 09:50 AM   #11
ADSWNJ
Scientist
 
ADSWNJ's Avatar
Default

Quote:
Originally Posted by Face View Post
 I guess docking corridors is not necessary for a flight simulator. But we don't know what he really understands under the term "flight".
If he struggles with basic elements already, I think advanced HUD drawings would just "block the view".
It's an example of displaying simple text on the HUD, plus simple graphics. (I.e. the RV Orientation arrows are conceptually identical to a ladder/tapes display). Eh, whatever...
ADSWNJ is offline   Reply With Quote
Old 06-07-2016, 12:26 PM   #12
Enjo
Mostly harmless
 
Enjo's Avatar


Default

*Enjo pats Andrew on the back
Hey, you've done great work. Soon we'll have it all automated and interconnected

Last edited by Enjo; 06-07-2016 at 06:48 PM.
Enjo is offline   Reply With Quote
Thanked by:
Reply

  Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter Visualization Project


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 07:18 PM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.