# Vertex paint not visible in viewport/capturecomponent unless mesh is selected on world outliner

**URL:** <https://forums.unrealengine.com/t/vertex-paint-not-visible-in-viewport-capturecomponent-unless-mesh-is-selected-on-world-outliner/481451>\
**Category:** Rendering\
**Tags:** vertex-paint, unreal-engine, Rendering, UE4, question\
**Created:** [April 6, 2021, 3:20am UTC](https://forums.unrealengine.com/t/vertex-paint-not-visible-in-viewport-capturecomponent-unless-mesh-is-selected-on-world-outliner/481451 "2021-04-06T03:20:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bo0olean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bo0olean/32/464984_2.png) [@bo0olean](https://forums.unrealengine.com/u/bo0olean)\
**Post date:** [April 6, 2021, 3:20am UTC](https://forums.unrealengine.com/t/vertex-paint-not-visible-in-viewport-capturecomponent-unless-mesh-is-selected-on-world-outliner/481451/1 "2021-04-06T03:20:42Z")

</div>

Hello!

I’m trying to color my static meshes using vertex painting with random colors and then store it using ScreenCapture2D. However, I’m seeing a weird behavior. The vertex painting is successful, but my capturecamera or the gameclientviewport is not able to see the paints unless I select the mesh in editor.

SO, it’s something like this  
The first figure shows setup after vertex painting (Note that I’m not able to see any paint)

 ![334867-2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/2/b/92b21c75d02c1f8726e3e2e88957461060eac59a.jpeg)

The second figure shows the same setup after I’ve selected/clicked on few meshes in the editor.

 ![334868-3.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/d/8/ed816af2c03de826a194081b201c3cffcd37f79b.jpeg)

To add to the above, I’m changing the FEngineShowFlags of the viewport to see the painted changes as follows:

> ShowFlags.SetMaterials(false);  
> ShowFlags.SetLighting(false);  
> ShowFlags.SetBSPTriangles(true);  
> ShowFlags.SetVertexColors(true);  
> ShowFlags.SetPostProcessing(false);  
> ShowFlags.SetHMDDistortion(false);  
> ShowFlags.SetTonemapper(false);  
> GVertexColorViewMode =  
> EVertexColorViewMode::Color;

What could be causing this issue? I am not able understand why/how selecting the mesh, shows the paint color.

I’d appreciate any inputs regarding this. Cheers!
