• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSX Collimated HUD Problem

Paul Domingue

Resource contributor
Messages
1,532
Country
us-california
I have been working on this for a while but no lightbulb. :banghead:
I have the HUD working and doing what it should as a collimated HUD but....!
The HUD is inverted and it is very faint as if something was blocking the color and it appears as a gray semitransparent image. I have a single plane in the model with a $_HUD texture file assigned to it. The texture is a PSD file and I have tried both DDS and BMP. I have inverted the DDS thinking it would correct the inverted HUD but no. There is no copy of the $_HUD texture in the aircraft package for FSX, I just used it as descibed in the SDK to locate my HUD gauge. The interior model has nothing in it but the HUD side frames and HUD display plane so there is nothing in the model blocking the view to the HUD plane. I am useing the F18E HUD update from AVSIM. I have tried the HUD from the Iris F-15 Mudhen (with permission) but still have the same problem. I suspect that it may be in my [Vcockpit] info but don't have a clue.
one other thing so I don't leave anything out, I use the latest release of FSPS to make adjustments to the gauge position???

Paul
 
Paul,
I use a $PanelHud texture which started off as a bitmap but I deleted the file type. No .anything in the name. It is not really a texture as you stated and it is used as a placeholder. For sure a dds will not work. The dim issue could possibly be something to do with day/night brightness adjustment, which some HUDs in FS have.

This is the panel.cfg file entry
[Vcockpit01] //HUD
Background_color=0,0,0
size_mm=1024,1024
pixel_size=1024,1024
texture=$Panelhud
gauge00=A-7D!A-7D_HUD,50,50,924,1024

Might be worth a try
Roy
 
Last edited:
Roy, all I use the $_file as is a placeholder as you say but that doesn't account for the inverted gauge display. I would think that useing the X,Y(location),X,Y(size) could not cause an inversion but as I type this it may be that if the X,Y location is outside the boundry of the $_file X,Y size this might occure. I'll check this and get back to you. The question of HUD brightness is not the problem as I have setup the brightness guage switch and toggled through them and all I see is a slight brightening or dimming that is hardley noticiable.
 
Paul
Try flipping the polygon. Rotate it through 180 about the horizontal then flip the surface so it is pointing at the pilot. I have had to do that a few times
I believe the brightness control is done by selecting "screens" of varying opacity.
Roy
 
Last edited:
Paul, in FS the $ prefix used in the texture name for virtual cockpit gauge polygons is a flag that tells FS to create a memory bitmap ("virtual texture") to which the gauges will be projected/displayed.

The only place a "real" bitmap is used is in Max/GMax, and then only so there's a "filename" to stick in the Diffuse Color slot! :D

When you UVW Map the polygon, make certain that the "handle" of the orange UVW Box is at the top of the screen. If your HUD is upside down, that simply means that the UVW's "handle" was at the bottom of the screen, hence upside down.

To fix this quickly and easily, select the HUD polygon, add a Unwrap UVW modifier to the stack, click Edit and then select the vertices and click the tool bar's orientation button to "flip" the UVW map upside down.
 
Sometimes you cant see the forest for the trees Bill. You would think after watching Finn's video tuts on UVW mapping all those years ago I would have know better.:o So HUD display is correctly oriented now but I still have the visibility problem. I tried viewing it at night thinking it would be more noticeable but you can't see it at all. Back to the drawing board. :confused:
 
Paul,
have you tried viewing the HUD with the sun behind you as well as with the sun ahead of you? It would normally be brighter with the sun behind you. I can not see mine at night unless it is illuminated.
If I remember correctly you said the projection poly was a long way from the cockpit. I worked out that having it at 25 meters only gave you 1 milliradian collimation error with an inch of head movement and beyond 25 meters you really got a poor return for a longer distance. Maybe bring it into 25 meters and see if that helps

Roy
 
If this is for FSX, use "Additive" as your lighting mode. This will ensure "full brightness" at all times...

It's much easier to dim than it is to brighten!
 
I was about to give it up for the day. I tried everything I could think of. Read through the SDK and checked all possible settings in the panel.cfg, went through the New Aircraft Procedures and set everything for the suedo-texture in the Material Editor and still just a very dim HUD display. I decide I would apply a true DDS material to the projection plane in the model and see if I could see the HUD superimposed on it. Started with RGB 128 across the board, then 0 and then 255 but nothing could be seen. I reapplied the suedo-texture and went through the Material Editor and set Blinn Opacity to 0, selected Extended Parameters and ticked Additive under Type:. I unchecked Allow bloom, everything else was set according to the SDK. It worked!!!
I went back and undid everything I had done since reapplying the suedo-texture, undoing them one at the time including un-ticking Additive and it still works??? I am baffled because I don't know what changed and caused it to display properly. That's going to bug me worse then not getting it correct. I'm just dumfounded and will probably not sleep well tonight because of it but it is working. :confused:
 
I have another question. The HUD is working properly now but I'm trying to figure out the proper approach to the visibility outside the perimeter of the HUD glass. Would this be something that I would have to code in XML and add a visibility tag to?
 
You will need to build a "view funnel" that begins at the edges of the "glass" or the "frame around the glass" that extends forwards past the corners of the HUD's projection polygon.

When textured with the correct FSX Material, it will cause the HUD poly to only appear within the "view funnel."

Search the forum here for some pictures and an example file.
 
Back
Top