DirectX post processing of RTT

SDK supports Prepar3D’s philosophy of an open development architecture and encourages third parties to bring new innovations with improved add-ons and training content.
Post Reply
frazer
Posts: 6
Joined: Wed Jan 04, 2012 8:45 pm

DirectX post processing of RTT

Post by frazer »

Hi,

I still haven't given up on my project to try to make the P3DRadar image inverted (ref: https://www.prepar3d.com/forum/viewtopic.php?p=148981).

Is there any way to apply DirectX post processing effects to a RTT texture used in an XML-gauge?
In the RadarCallback Sample, the P3D radar is initialized like this:

Code: Select all

m_pRadar->Init(TEXT("P3DRadarExampleTexture"),256,256);
And then used in the XML gauge like this:

Code: Select all

<Texture Name="P3DRadarExampleTexture" Width="253" Height="253" />
Would the Post Processing happen in the guage (c++) or on the xml-side of things?
To my understanding, in the gauge code I can only initialize the radar using a RTT texture name string, not a reference so that I can modify the texture before sending it out to the sim?

Any guidance or examples would be highly appreciated :)
Post Reply