Custom Depth doesn't work on Custom Mesh Components?

Engine Version: 4.7.6

I just made a top down dynamic line of sight using traces and custom mesh component.

However, setting the custom mesh to render custom depth doesn’t work like it does on static meshes.

Any ideas as to why so ? I need to get the custom depth info to “mask” out the fog as shown in the image below.

Hey Tanmay, have you tried using Custom Meshes at 1 degree arcs, like you did with static meshes in the second image? When I increase the half angle to around 90 deg, I’m noticing huge performance drops when updating the mesh triangles every frame.

I tried disabling shadow casting and that helped increase the performance by quite a lot, but if there are more than one character with vision cones, the performance drop become very noticeable.

Hi tanmay -

Thank you for your report. This is a known issue and looks to be prepping to be fixed in 4.9, barring any issues during the QA process.

Eric Ketchum