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

srgriffiths
Posts: 36
Joined: Tue Aug 04, 2015 7:51 pm

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

Postby srgriffiths » Fri Nov 16, 2018 10:01 pm

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

Postby srgriffiths » Fri Nov 16, 2018 10:18 pm

Never Mind. I figured it out.

needed to add this line.

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


Return to “Software Development Kit (SDK) Questions”

Who is online

Users browsing this forum: No registered users and 8 guests