Dynamic Mesh Not Casting Shadows

I am creating Dynamic Meshes (FDynamicMesh3) in c++ but they don’t seem to be able to cast shadows.
In my scene i have this white stretched cube and the grey mesh is the mesh created through a script. It neither casts a shadow on itsself nor on the cube.

this is how it looks like in the pathtracing viewmode (how i expect the shadows to look like):

viewmode VisualizeBuffer:

Also I’ve already generated similar meshes but using StaticMeshes / -Descriptions which i had no shadow issues with. (performance was way worse though) (also, here have a old screenshot i dug up:)
image

The issue was that the default DynamicMesh material doesn’t cast shadows… I just had to change the material…
image

1 Like