Hello.
I’m having trouble with creating like Burning and Transition Materials using Time Node.
Please Watch this
Burning Effect is not started from zero, started with ackward flickering and then goes normally.
And this ‘Start Timing’ is always different.
This is how i set the material graph,
and just created Dynamic Material with this, then initialized the ‘Speed’ value for beginning.
like this :
void UCR_InflamableActionComponent::DestroyWithFire(const float DeltaTime)
{
PlasterBurnDynamicMaterial = UMaterialInstanceDynamic::Create(PlasterStaticMeshComponent->GetMaterial(0), GetOwner());
ensureMsgf(PlasterBurnDynamicMaterial, TEXT("Missing UMaterialInstanceDynamic in %s"), *GetName());
// Destroy Action with Burn Shader
PlasterBurnDynamicMaterial->SetScalarParameterValue(TEXT("Speed"), BurnSpeed);
PlasterBurnDynamicMaterial->SetScalarParameterValue(TEXT("Temperature"), BurnTemperature);
PlasterStaticMeshComponent->SetMaterial(0, PlasterBurnDynamicMaterial);
}
Maybe the time is going through whatever i set the speed value, even if it was zero…?
And the another one (this one has same problem) :
The Transition Material also started with flickering either as you can see.
This is the transition material graph, set the parameter with MPC param.
And using MPC value, i just set the key animation to the widget, and start animation when i needed.
Why this happens? and how i fix this? Please help me