Matt_1
July 6, 2015, 11:07pm
1
Hi all,
Is there a way to make new feature ProceduralMeshComponent (added in UE 4.8) work with GI ? I made some test with Light Propagation Volume without success (procedural mesh receive indirect light from static mesh but don’t prapagate light to others).
(Floor + Ciling = ProceduralMeshComponent / Plane + Cube = Static Mesh Component)
So have i to bring some modifications to source code (class ProceduralMeshComponent) or is there an easy way to make it work ?
Thanks for your help.
Matt
LMP3D
July 6, 2015, 11:37pm
2
Have you considered DFAO/GI yet?
Thank you LMP3D for your answer.
Unfortunatly DFGI use Distance field mesh that is precomputed, no way to generate it at runtime.
My procedural mesh is generated at runtime with the following code :
[FONT=Courier New]Normals.Empty();
Tangents.Empty();
UKismetProceduralMeshLibrary::CalculateTangentsForMesh(ListMeshData*.Vertices, ListMeshData*.Triangles, ListMeshData*.UVs, Normals, Tangents);
mesh->CreateMeshSection(i, ListMeshData*.Vertices, ListMeshData*.Triangles, Normals, ListMeshData*.UVs, ListMeshData*.VertexColors, Tangents, true);
mesh object is UProceduralMeshComponent.