Hi I have a scene where I would like to blend between two different material using a time line. However I’m not sure how to do this. Anyone got any recommendation on the best practice. I was trying in the material however it could not work out the blend function.
Hi, personally, I use the node : BlendMaterialAttributes you just need to use the same attributes for the two materials and your Material output.
I create materials using functions and blend the output using a parameter :
Sorry for my previous answer which was out of the scope of your question. But it’s not possible to use custom data for that ? Like describe in this link ?
I’ve made a try before making another mistake in my answer It’s not necessarily on instanced static meshes, the variant for instances is perInstanceCustomData which plays the same role.
So I can confirm, it’s possible to make a blueprint with a timeline and setting from it custom primitive data which can be used directly in the material.
So I can confirm, it’s possible to
make a blueprint with a timeline and
setting from it custom primitive data
which can be used directly in the
material.
@AquaFab: Could you explain why you would want to do this as opposed to using a simple dynamic parameter? What am I missing? Could you demonstrate with an example?
I fully understand the appeal (and utilise the functionality) when dealing with 40k hisms asteroids floating about; the instances use the same material but need variance, that extra data is stored on the primitive itself. That makes sense to me, who wants tens of thousands of avoidable draw calls and pushing data forth and back? I was under the impression the long requested perInstanceCustomData was (recently) introduced to do just that. No?
As described in the performance part of Storing Custom Data in a Material Per Primitive | Unreal Engine Documentation the two mechanisms are similar but using Custom Primitive Data is more efficient in terms of drawcalls if the number of objects increases.
For me, functionally, there is no difference in the result of the two workflows.