• 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 RenderToTexture question

Messages
27
Country
unitedstates
I have a virtual cockpit camera defined in my aircraft.cfg. It records the HUD view so that I can display it on an MFD like a real-world "HUD repeater". It works really well but I want to be able to only record the HUD texture itself and not the environment. Is this possible? There's an option for VC transparency which would remove the HUD elements from the renderToTexture but I effectively need the opposite: remove the environment from the renderToTexture.
 
Not possible. You would be better off including the HUD's own rendering code as a separate instance in the MFD's rendering code.
 
Yeah that’s what my plan was but then I ran into another problem: the HUD repeater needs to be resized a bit on the MFD using <SizeScale> but when I do that all the <Shift> elements get slightly offset in weird ways.

Regardless, I actually got pretty close to what I want using the camera. I used all the “Hide” options and everything works except “HideTerrain” so I just bumped up the FarClippingDistance to include out to the HUD material. Now it works for about any altitude above 2000 ft. Not ideal but better than the alternative. Not sure why there isn’t a “HideScenery” option in the cameras...
 
FWIW, most HUD repeaters *do* include video of the outside world.
 
True! In my previous jet it was an option. And usually we turned it off because the video is so bad or it just didn’t work. I don’t think it’s even an option in my new jet. The HUD repeater is a backup flight instrument in case the HUD hardware fails - no need to see the camera view because you can just look outside.
 
Back
Top