Make the two halves of a mesh different colors

Hey guys, I’m trying to make half of the First Person Skeletal Mesh one color and the other half another color that I can control through a Lerp.

I’ve gone over the Introduction to Materials in UE4 video series and I’ve checked out a few materials from the free maps that come along with the engine. From a SciFi Hallway material (Office_01_Masked_6), I’ve come to the understanding I could do this through masking.

I’m certain that their is a way to do this based on the side of the mesh that each particular face sits on, and so I am looking for that when asking that. With what I know about materials I’ve only been able to accomplish this so far:

This of course only produces halving of colors on each separate face of an object. As shown below:

Thanks in advance for your help guys.

mcpies, it appears that the left and right arms of the first person character mesh both share the same UV coordinates, so I don’t think there’s a way you can accomplish what you want solely through material design (whatever you do to the right arm will always be mirrored on the left arm). Instead, you’ll have to create new UVs for the character mesh in a separate 3D modeling program.

I thought something along those lines would be the problem when I saw the inconsistent coloring for each arm. Thanks for clarifying what’s wrong.
That being said, what about the cube? What would I need to do to make it half and half?

The cube suffers from the same limitation as the character mesh. Each face of the cube shares/reuses the same UV coordinate space. You’d have to create a cube with a different UV mapping in a 3D modeling program. That said, there’s probably a clever workaround you could do by using the normal of the direction on each face to decide when to change colors in the material (since each face’s pixels would have a different normal direction), but that seems just too hacky for my taste (And beyond my current material creation prowess.)

If my answer above addressed your question consider marking it as “accepted”. It will help others find this when they have similar questions in the future and it will give me some kudo points!

mcpies, if my answer above addressed your question would you mark it as “accepted”? That will help others find it in the future and will give me a little kudos bump!

Hi sorry I didn’t mark it as accepted after you answered my comment. I subscribed to the RSS feed for your answer, but it didn’t notify me for your new comment so I assumed my question was a dead fish in the water. Yes I have been satisfied by your answer and am glad that you have received kudo points for this.