Vertex color painting messing with color

It’s happening with some assets, I haven’t tested with all types, but a lot of vegetation, not all, if we change to confidential I can provide some models that happen. When I use the modeling mode to edit the vertex colors, the colors change a lot, even if I don’t change anything, and click accept.

[Image Removed]

[Image Removed]

Hello Pedro,

Do different instances of the same asset exhibit this behavior?

Would you be able to provide repro steps for this issue?

After I’m able to fully test this out on my end, I’ll let you know if models will need to be provided.

For now we can leave this question public.

Thanks!

Kyle B.

The repro is quite simple, change to the modeling mode -> Mesh Attributes and paint vertex color. From there, in my case, if I click on accept changes, it already causes the issue

Hello Pedro,

I have two possible solutions for you to try.

First, ensure that the Nanite option on the mesh is turned off. You can do this by right-clicking on the mesh in the content browser and navigating to Nanite in the drop-down.

Vertex painting does not support nanite meshes, and if this solves your issue then try using Texture Color for mesh painting instead, which requires Virtual Textures to be enabled.

If not the above, then I would check if your material is set up so that it can take in a painted vertex color parameter. You can find documentation on that here.

Based on my tests, I believe the issue to be related to one of these two solutions. The meshes I created using the modeling mode had the same issue until I set their material blueprint up. Here’s another user who had a similar issue (albeit on an older Unreal version).

Let me know if either of these work for you!

Thanks,

Kyle

Hello Pedro,

Wanted to check-in to see if either of these solutions helped out, or if the issue is still occurring for you?

Thanks,

Kyle

I tried disabling Nanite, but it still happens all the same. As far as I know, nanite doesn’t support vertex paint on instance, it still works if it shares the same data among the instances, which is the case.

Hello Pedro,

Thank you for letting me know disabling Nanite did not solve the issue.

Did you happen to attempt the second possible solution? Checking that the material is set up so that it can take in a painted vertex color parameter?

Thanks,

Kyle B.

I tested again, I was painting vertex color using the option on the mesh attribute of the modelling mode, but when I used the mesh paint mode, it did correctly.

Will stop using the old way.

Hello Pedro,

Glad to know it’s working correctly now!

I will close this ticket, please feel free to reach out here with any additional questions or follow-ups.

Thanks,

Kyle B.