• 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.

P3D v4 Camera View Texture in an XML Gauge - Rendering Bug?

Messages
19
Country
unitedkingdom
Hi all,

I've encountered what appears to be a complex gauge issue, or one that is at least technically involved, and seems Prepar3D 4.1 specific. I know it's a long shot posting here, but I also know there are some experienced and knowledgeable people around who may be able to help (or suggest alternative approaches). Posted this on the Prepar3D boards as well https://www.prepar3d.com/forum/viewtopic.php?f=6311&t=127130

After upgrading my Prepar3D installation to 4.1, from 4.0, I've encountered a problem that appears to stem from a change in the rendering process. My own installation, as ever, is entirely default, and the issue appears independent of any change in my graphics drivers.

In short, I have been doing some work on the default F-22 included with P3D, implementing a camera display texture in a simple XML gauge, with a text overlay, for use in the Virtual Cockpit. The texture itself is defined in the Aircraft.cfg and has a post-process effect applied.

In 4.0 and previous, the gauge displayed perfectly with the addition of "disable_alpha_write = 1", alongside "textures_below_panel = 1", in the appropriate VCockpit entry of the panel.cfg.
However, in 4.1, use of "disable_alpha_write" causes the gauge to not be visibly rendered at all (though it *is* still present and functional/mouse-able), whilst "textures_below_panel" allows the gauge itself to display but the view texture is not visible (i.e. it's black/transparent/behind the VC $texture?)

With both the above options set at '0', the view texture displays, but appears as a semi-transparent overlay on top of the gauge text and bitmaps, which is clearly not what I'm after - I want the text to lay on top of the view, opaque.

Use of "textures_use_additive_blend = 1", whether standalone or in combination with the above panel.cfg entries, has never had any impact on the display, or otherwise, of the gauge, either in Prepar3D v3.4, v4.0, or v4.1, *EXCEPT* whenever I display the view texture *without* the post-process effect applied. In this case, the text overlays the texture perfectly. When set at '0' the texture disappears, leaving only the gauge/text visible. Unfortunately, I really do need this post-process effect for the sensor display to be of any worth, unless there is a way of integrating it as a custom sensor mode.

I have exhaustively tested every combination of the above, so I'm fairly confident I've captured the key behaviours. At this point, however, I'm afraid to admit that the deep technical processes involved in rendering gauges in a 3D view are rather beyond my knowledge. All I know, is that what once worked does no longer, and the issue appears to hinge on how 4.1 treats these specialist panel.cfg entries vs. 4.0.

I have tried every other trick I can possibly think of to make the gauge display, with an opaque text overlay, and nothing seems to work, so any advice will be gratefully received.
 
Last edited:
Back
Top