Announcement

Collapse
No announcement yet.

Procedural mesh + Light propagation volume

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Procedural mesh + Light propagation volume

    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).

    Click image for larger version

Name:	ErrorLPV.png
Views:	1
Size:	511.2 KB
ID:	1155011

    (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

    #2
    Have you considered DFAO/GI yet?

    Comment


      #3
      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 :

      Normals.Empty();
      Tangents.Empty();
      UKismetProceduralMeshLibrary::CalculateTangentsForMesh(ListMeshData[i].Vertices, ListMeshData[i].Triangles, ListMeshData[i].UVs, Normals, Tangents);
      mesh->CreateMeshSection(i, ListMeshData[i].Vertices, ListMeshData[i].Triangles, Normals, ListMeshData[i].UVs, ListMeshData[i].VertexColors, Tangents, true);


      mesh object is UProceduralMeshComponent.
      Last edited by -Matt-; 07-07-2015, 03:28 PM.

      Comment

      Working...
      X