[RESOLVED] Create PDK Camera Window, then Capture the render buffer

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.
Locked
srgriffiths
Posts: 36
Joined: Tue Aug 04, 2015 7:51 pm

[RESOLVED] Create PDK Camera Window, then Capture the render buffer

Post by srgriffiths »

How do I get renderData for a custom window inside the window callback? I had this working in V340, but can't figure out how to do it for V4.3.

Can I query the renderData for the window? Is there a PDK service that makes this available.


This is what I used to do in V3.4

//Attach Render Effect
m_pRenderEffect.Attach(new RenderEffect());

//Use the effect plugin interface to create the effect and register the callback
m_pEffectPlugin->CreateEffect(TEXT(EFFECT_NAME), m_pRenderEffect);
m_pRenderEffect->Enable(true);

//Add Post Process
m_windowPdk->AddPostProcess(EFFECT_NAME);
srgriffiths
Posts: 36
Joined: Tue Aug 04, 2015 7:51 pm

Re: Create PDK Camera Window, then Capture the render buffer

Post by srgriffiths »

Never Mind. I figured it out.

needed to add this line.

pWindow->GetCameraSystem()->AddPostProcess(EFFECT_NAME);
Locked