Unreal plugin : Outputting directly from pre-filled TextureRenderTarget2D

HughMacdonald

New member
Hi,

I'm trying to figure out how to get a pre-filled UTextureRenderTarget2D to be broadcast as an NDI stream.

To do initial tests on this, I'm attempting to re-create the UNDIBroadcastActor using a USceneCaptureComponent2D instead of the UNDIViewportCaptureComponent.

In my actor's BeginPlay, I have:

Code:
SceneCaptureComponent->TextureTarget = RenderTarget;

if( NDIMediaSource )
{
   NDIMediaSource->ChangeVideoTexture( RenderTarget );
   NDIMediaSource->Initialize();
}

However, while the NDI Video Monitor app is seeing that the stream exists, it's just giving me black when I try to view it.

Is there something else that I need to do for this to work? Are there some settings that I need to ensure are set in my RenderTarget?

Thanks
 
Top Bottom