Hi,
I try to make a minimap. I have setup a camera that renders to my SceneCapture2D and my material transfers it to my texture. The problem is that I want to have the black part transparent. How do I achieve that?
The code used to set the SceneCapture2D s clear color to transparent.
What am I missing here?
// Called when the game starts or when spawned
void AMiniMap_Cpp::BeginPlay()
{
Super::BeginPlay();
USceneCaptureComponent2D* sceneCaptureComponent = FindComponentByClass();
sceneCaptureComponent->TextureTarget->ClearColor = FLinearColor::Transparent;
}
i think changing it to additive instead of translucent will do it - or you can x minus 1 the node you are putting into the opacity mask (invert your alpha channel)
Changeing it to additive doesn’t do the trick because I couldn’t have anything black in my rendertexture. But the 1-x works (At least I have to check it with more data on it). Thank you.