Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
Page 1 of 2 1 2
#3344018 - 07/17/11 09:27 PM Is it possible to make airspeed and altitude appear on-screen HUD style?  
Joined: Dec 2000
Posts: 22,405
letterboy1 Offline
(Heterosexual)Tchaikovsky Ballet Fan
letterboy1  Offline
(Heterosexual)Tchaikovsky Ballet Fan
Lifer

Joined: Dec 2000
Posts: 22,405
Columbus, GA USA
Or is looking at the cockpit gauge the only option? When I say "HUD Style," I mean like in IL-2 1946 with a few little lines on the bottom left corner or something.


The issue is not p*ssy. The issue is monkey.
Inline advert (2nd and 3rd post)

#3344031 - 07/17/11 09:55 PM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: letterboy1]  
Joined: Jan 2009
Posts: 4,737
FearlessFrog Offline
Senior Member
FearlessFrog  Offline
Senior Member

Joined: Jan 2009
Posts: 4,737
I think I have good news and bad news.

The good news is that if you press ALT-left click a current 'info window', and then right mouse button to bring up the menu, you can get to the 'Customize Info Window'. From there you can move things in and out of that window, i.e. engine info etc, plus play around with the size/color of the fonts and whatnot. You can also drag and resize the window about, i.e. put it in-front of your nose for a HUD like experience.

The bad news bit is that I think the airspeed, altitude and compass bearing are missing from this config so far.

Edit: I built one here: http://simhq.com/forum/ubbthreads.php/topics/3347984/Re_Is_it_possible_to_make_airs.html#Post3347984

Last edited by FearlessFrog; 07/22/11 06:39 AM. Reason: B flat
#3344039 - 07/17/11 10:08 PM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: letterboy1]  
Joined: Dec 2000
Posts: 22,405
letterboy1 Offline
(Heterosexual)Tchaikovsky Ballet Fan
letterboy1  Offline
(Heterosexual)Tchaikovsky Ballet Fan
Lifer

Joined: Dec 2000
Posts: 22,405
Columbus, GA USA
Thanks FF, I've been playing with those windows and saw the bad news part of it last night. It's still a nice feature, though.


The issue is not p*ssy. The issue is monkey.
#3344047 - 07/17/11 10:25 PM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: letterboy1]  
Joined: Mar 2001
Posts: 13,179
bisher Offline
I'll be your Huckleberry
bisher  Offline
I'll be your Huckleberry
Veteran

Joined: Mar 2001
Posts: 13,179
Manitoba, Canada
Yes I sure miss this from the old IL2 days

#3344141 - 07/18/11 01:39 AM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: letterboy1]  
Joined: Dec 2002
Posts: 19,381
Ajay Offline
newbie
Ajay  Offline
newbie
Veteran

Joined: Dec 2002
Posts: 19,381
Brisbane OZ
Open the cockpit , roll to the left a bit and look down across the wing, if the trees are moving from the front to the rear of the aircraft and there is no noticable shuddering the speed is ok.If the trees are moving from the rear to the front of the aircraft check first to see if you are sitting facing forward before panicking.If the trees are stationary and you could not roll the plane on any axis you are more than likely still stationary on the ground.In this case do not panic, either alight from the aircraft or takeoff and perform the checks as above.

The same basics goes for height , roll and look down over the wing,if the trees look like baby brocoli below, your height is ok.If you can count individual leaves and identify the different patterns in the bark you are too low or you may still be stationary,check the same roll axis step as mentioned above to to confirm if you are stationary.

The common element with both of the above is too remember, you can never have too much of either.If you think you have enough,you don't.The guy above and behind you will prove that wink


My il2 page
Seelowe Campaign
Cliffs of Dover page
CloD
My Models
Tanks/Planes/Ships


#3344375 - 07/18/11 11:24 AM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: Ajay]  
Joined: Dec 2000
Posts: 22,405
letterboy1 Offline
(Heterosexual)Tchaikovsky Ballet Fan
letterboy1  Offline
(Heterosexual)Tchaikovsky Ballet Fan
Lifer

Joined: Dec 2000
Posts: 22,405
Columbus, GA USA
After trying your recommendations I can report that the cockpit of my Spitfire has a mixture of leaves, urine and feces in it. eek


The issue is not p*ssy. The issue is monkey.
#3344397 - 07/18/11 12:14 PM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: letterboy1]  
Joined: Mar 2001
Posts: 13,179
bisher Offline
I'll be your Huckleberry
bisher  Offline
I'll be your Huckleberry
Veteran

Joined: Mar 2001
Posts: 13,179
Manitoba, Canada
Originally Posted By: letterboy1
After trying your recommendations I can report that the cockpit of my Spitfire has a mixture of leaves, urine and feces in it. eek


lol biggrin

#3344405 - 07/18/11 12:30 PM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: Ajay]  
Joined: Feb 2001
Posts: 1,683
ATAG_Snapper Offline
Member
ATAG_Snapper  Offline
Member

Joined: Feb 2001
Posts: 1,683
Kitchener, Ontario, Canada
Printed and stuck to the screen for instant reference. I printed this on a transparent overhead projector sheet so I can still use my monitor, of course, I'm not a complete idiot! biggrin

All kidding aside, I can't count how frequently I've lost sight of an enemy aircraft by glancing down all-so-briefly to check temps, rpm, boost, etc. before diving down and closing. Look back up.......and they're gone!!!! (No doubt this happened to actual pilots, too).

Last edited by Snapper; 07/18/11 12:40 PM.

-------------------------------------------------------------------------------------------------

HP Omen Laptop 15, AMD Ryzen 5 5600H 16 GB DDR4 RAM, NVIDIA GeForce RTX 3060 Laptop GPU 6 GB VRAM Win 11 64 bit, Nvidia GeForce Driver ver 512.95, TrackIR 5, Gear Falcon Trim Box, Gear Falcon Throttle Quadrant, TM16000 joystick, TM Warthog HOTAS, CH Quadrant, Saitek Pro Combat rudder pedals
#3344520 - 07/18/11 02:43 PM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: letterboy1]  
Joined: Feb 2000
Posts: 49,716
Jedi Master Offline
Entil'zha
Jedi Master  Offline
Entil'zha
Sierra Hotel

Joined: Feb 2000
Posts: 49,716
Space Coast, USA
Hence the reason the HUD was introduced, and now is being supplanted by HMDs. smile



The Jedi Master


The anteater is wearing the bagel because he's a reindeer princess. -- my 4 yr old daughter
#3346370 - 07/20/11 01:04 PM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: letterboy1]  
Joined: Nov 2007
Posts: 4,619
KRT_Bong Offline
It's KRT not Kurt
KRT_Bong  Offline
It's KRT not Kurt
Senior Member

Joined: Nov 2007
Posts: 4,619
Sarasota, Florida
I know by experimentation that you can get a window with percentage of throttle and mixture but it still has a visible box around it even when you make the borders invisible stil don't see a way to put the compass heading on it and once I made the engine controls icons disappear I can't figure out how to restore them, I'm sure someone will have it all figured out and make instructions or something we can copy and past into the config rolleyes


Windows 10 Pro
Gigabyte 970A DS3P FX
AMD FX6300 Vishera 3.5 Ghz
ASUS STRIX GeForce GTX 970 Overclocked 4 GB DDR5
16Gb Patriot Viper 3 RAM DDR3 1866Mhz
Onikuma Gaming Headset (has annoying blue lights I don't use)
#3346383 - 07/20/11 01:20 PM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: Ajay]  
Joined: Jan 2001
Posts: 8,771
Para_Bellum Offline
Oberkriegkaboomführer
Para_Bellum  Offline
Oberkriegkaboomführer
Hotshot

Joined: Jan 2001
Posts: 8,771
Germany
Originally Posted By: Ajay
Open the cockpit , roll to the left a bit and look down across the wing, if the trees are moving from the front to the rear of the aircraft and there is no noticable shuddering the speed is ok.If the trees are moving from the rear to the front of the aircraft check first to see if you are sitting facing forward before panicking.If the trees are stationary and you could not roll the plane on any axis you are more than likely still stationary on the ground.In this case do not panic, either alight from the aircraft or takeoff and perform the checks as above.

The same basics goes for height , roll and look down over the wing,if the trees look like baby brocoli below, your height is ok.If you can count individual leaves and identify the different patterns in the bark you are too low or you may still be stationary,check the same roll axis step as mentioned above to to confirm if you are stationary.

The common element with both of the above is too remember, you can never have too much of either.If you think you have enough,you don't.The guy above and behind you will prove that wink




Great!

biggrin


"...late afternoon the Air Tasking Order came in [and] we found the A-10 part and we said, "We are going where!? We are doing what!?"

Capt. Todd Sheehy, Hog pilot, on receiving orders during Operation Desert Storm

#3347807 - 07/21/11 10:55 PM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: KRT_Bong]  
Joined: Nov 2007
Posts: 4,619
KRT_Bong Offline
It's KRT not Kurt
KRT_Bong  Offline
It's KRT not Kurt
Senior Member

Joined: Nov 2007
Posts: 4,619
Sarasota, Florida
Originally Posted By: KRT_Bong
I know by experimentation that you can get a window with percentage of throttle and mixture but it still has a visible box around it even when you make the borders invisible stil don't see a way to put the compass heading on it and once I made the engine controls icons disappear I can't figure out how to restore them, I'm sure someone will have it all figured out and make instructions or something we can copy and past into the config rolleyes

Ahh the physical representation is Analog and the text is Digital, duh!


Windows 10 Pro
Gigabyte 970A DS3P FX
AMD FX6300 Vishera 3.5 Ghz
ASUS STRIX GeForce GTX 970 Overclocked 4 GB DDR5
16Gb Patriot Viper 3 RAM DDR3 1866Mhz
Onikuma Gaming Headset (has annoying blue lights I don't use)
#3347881 - 07/22/11 01:16 AM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: letterboy1]  
Joined: Jan 2009
Posts: 4,737
FearlessFrog Offline
Senior Member
FearlessFrog  Offline
Senior Member

Joined: Jan 2009
Posts: 4,737
It's a funny one that there isn't a speed/altitude bar.

As Mrs Frog is watching TV and I'm back from work (those tadpoles don't feed themselves you know - wow, I regret this metaphor already, as I think that's wrong about tadpoles and I'm only in the second sentence - right, carry on, I don't think they noticed).

This bit of script is a start. I present a really bad speedbar!



Here's the wee script




using System;
using maddox.game;
using maddox.game.world;
using maddox.GP;
using System.Collections.Generic;


public class Mission : AMission
{
private double nextMsgTime = 0;

public override void OnTickGame()
{
{
base.OnTickGame();

if (Time.current() > nextMsgTime)
{
nextMsgTime = Time.current() + 10.0; // 10 seconds to next message

// Leave this in if you want to test a timer
//GamePlay.gpHUDLogCenter("Time elapsed (in seconds) = " + Time.current() +
// ", next message will be at " + nextMsgTime);

if (GamePlay.gpPlayer() != null) // check if we have a player.
{
if (GamePlay.gpPlayer().Place() != null)
{
Player me = GamePlay.gpPlayer();
AiActor where = me.Place();
Point3d pos = me.Place().Pos();
GamePlay.gpHUDLogCenter("Where? x:" +
((int)pos.x).ToString() +
" y: " +
((int)pos.y).ToString() +
" z: " +
((int)pos.z).ToString()
);
}
}
}

}
}

}


Next step will be to convert the virtual units into a real altitude and then perhaps remember coordinates to calculate speed. I've no idea if that'll work, but hey, it's all free so far right?

A really (really) quick way to use a script like this:

1. Read my point (5) as it's important, but then come back here.

2. Make test mission, called it 'whatever-you-like.mis'.

3. Make a text file and copy this text into it, but call it 'whatever-you-like.cs', i.e. the c and s bit stand for c ('see) sharp (or sometimes googled as c#). Save that file next to where the mission file loads from.

4. Play the mission and this text will appear both annoying centered and largely inaccurate. It updates every 10 seconds.

5. Scripts in CoD can do *anything*, so if you download them from places you don't trust then it's worth being careful - think of it like a program you download from the internet. It's up to you, but I thought it worth mentioning.

Also, anyone is very welcome to take this ball and run with it, as I'm off out soon but I thought I could kick things off.

#3347887 - 07/22/11 01:33 AM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: letterboy1]  
Joined: Dec 2002
Posts: 19,381
Ajay Offline
newbie
Ajay  Offline
newbie
Veteran

Joined: Dec 2002
Posts: 19,381
Brisbane OZ
Nice start Frog smile not bad for a polliwog aficionado.


My il2 page
Seelowe Campaign
Cliffs of Dover page
CloD
My Models
Tanks/Planes/Ships


#3347922 - 07/22/11 02:25 AM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: Ajay]  
Joined: Jan 2009
Posts: 4,737
FearlessFrog Offline
Senior Member
FearlessFrog  Offline
Senior Member

Joined: Jan 2009
Posts: 4,737
Originally Posted By: Ajay
Nice start Frog smile not bad for a polliwog aficionado.


I even did a jpg just for you Ajay smile

Right, this is where it gets even less fun - negative fun, so to speak.

I need to convert the z coordinate in 3d space to something like meters or feet. With pencil firmly clipped behind ear I make a quick flight with the 'Frog-o-bar' showing and note some Z values at known heights, i.e.

1000 ft, 240 z (ish, this Spitfire is bouncy)
2000 ft, 560 z
3000 ft, 850 z
4000 ft, 1165 z

Hmm, that slope of line looks a bit odd. A quick foray into linear regression shows that if you plot those values on a graph you end up with:

y = 306.5x - 62.5

so, a quick fiddle to the script to add the line (they'll be an algebra test at the end, wake up at the back!):


double height = ((pos.z + 62.5) / 306.5) * 1000;

..

((int)pos.z).ToString() +
" ft: " +
height.ToString("0.0")


Means we get an altitude bar, even without a cockpit and in external view.



Next up Indicated Air Speed and the x,y velocities, plus a way to add a proper 'bar' at the bottom but it depends on when the TV show ends..

#3347949 - 07/22/11 03:09 AM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: letterboy1]  
Joined: Dec 2000
Posts: 22,405
letterboy1 Offline
(Heterosexual)Tchaikovsky Ballet Fan
letterboy1  Offline
(Heterosexual)Tchaikovsky Ballet Fan
Lifer

Joined: Dec 2000
Posts: 22,405
Columbus, GA USA
Wow, and all this on a Sinclair ZX81. smile


The issue is not p*ssy. The issue is monkey.
#3347962 - 07/22/11 03:51 AM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: letterboy1]  
Joined: Jan 2009
Posts: 4,737
FearlessFrog Offline
Senior Member
FearlessFrog  Offline
Senior Member

Joined: Jan 2009
Posts: 4,737
I know letterboy, so much stuff you can do with 1024 numbers in the right order on a ZX81! smile

Ok, getting shouted out now by Mrs Frog. 'Criminal Home Improvement Has Got Talent' has now finished so have to rush the last bit before heading out.

I've been calculating the height, which shows I'm an idiot. A quick poke around shows it's quite easy to grab what you see in the instruments programmatically (I bet that would be useful for all sorts of external projects in the future).

A quick 'tell me my aircraft' call and we're in, i.e:



AiAircraft aircraft = (GamePlay.gpPlayer().Place() as AiAircraft);

// A smörgåsbord of parts you can pilfer from.
double ias = aircraft.getParameter(part.ParameterTypes.I_VelocityIAS, 0);
double altitude = aircraft.getParameter(part.ParameterTypes.I_Altitude, 0);
double mag_compass = aircraft.getParameter(part.ParameterTypes.I_MagneticCompass, 0);
double rep_compass = aircraft.getParameter(part.ParameterTypes.I_RepeaterCompass, 0);

double z_altitude = aircraft.getParameter(part.ParameterTypes.Z_AltitudeMSL, 0);
double z_ias = aircraft.getParameter(part.ParameterTypes.Z_VelocityTAS, 0);
double z_orientation = aircraft.getParameter(part.ParameterTypes.Z_Coordinates, 0);


..with the new output looking like this:


GamePlay.gpHUDLogCenter("Frogbar v0.1: Bearing: " +
mag_compass.ToString("0") +
" Calc'd ft: " +
height.ToString("0.0") +
" Instr IAS: " +
ias.ToString("0.0")
);


Voila, a speed bar.



It's also easy to disable instruments and break off bits of my own plane, but that's getting more complicated and self-harm like.

Tomorrow I'll have a quick peek to make it into a wee window/instrument of its own and styled like the IL2 one rather than slap-bang in your face all the time.

#3347965 - 07/22/11 03:57 AM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: letterboy1]  
Joined: Dec 2002
Posts: 19,381
Ajay Offline
newbie
Ajay  Offline
newbie
Veteran

Joined: Dec 2002
Posts: 19,381
Brisbane OZ
Champion effort Frog.


My il2 page
Seelowe Campaign
Cliffs of Dover page
CloD
My Models
Tanks/Planes/Ships


#3347966 - 07/22/11 03:57 AM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: letterboy1]  
Joined: Apr 2002
Posts: 13,364
Freycinet Offline
Veteran
Freycinet  Offline
Veteran

Joined: Apr 2002
Posts: 13,364
Yeah, I thought it would be better to capture data from the instruments than calculating 3D spatial movement... wink

Well done!


My Il-2 CoD movie web site: www.flightsimvids.com
#3347971 - 07/22/11 04:14 AM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: FearlessFrog]  
Joined: Apr 2002
Posts: 13,364
Freycinet Offline
Veteran
Freycinet  Offline
Veteran

Joined: Apr 2002
Posts: 13,364
Originally Posted By: FearlessFrog

It's also easy to disable instruments and break off bits of my own plane, but that's getting more complicated and self-harm like.


Nonetheless very interesting: would be great to include in missions... stirthepot

Do you think such events can be triggered by others? - Like: passing through 1000 altitude, coolant temp indicator drops out.


My Il-2 CoD movie web site: www.flightsimvids.com
Page 1 of 2 1 2

Moderated by  RacerGT 

Quick Search
Recent Articles
Support SimHQ

If you shop on Amazon use this Amazon link to support SimHQ
.
Social


Recent Topics
Exodus
by RedOneAlpha. 04/18/24 05:46 PM
Grumman Wildcat unique landing gear
by Coot. 04/17/24 03:54 PM
Peter Higgs was 94
by Rick_Rawlings. 04/17/24 12:28 AM
Whitey Herzog was 92
by F4UDash4. 04/16/24 04:41 PM
Anyone can tell me what this is?
by NoFlyBoy. 04/16/24 04:10 PM
10 Years ago MV Sewol
by wormfood. 04/15/24 08:25 PM
Pride Of Jenni race win
by NoFlyBoy. 04/15/24 12:22 AM
It's Friday: grown up humor for the weekend.
by NoFlyBoy. 04/12/24 01:41 PM
OJ Simpson Dead at 76
by bones. 04/11/24 03:02 PM
They wokefied tomb raider !!
by Blade_RJ. 04/10/24 03:09 PM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0