Datasmith exporter produces more than 64 materials per mesh which is the limit for Nanite

686
1
02-15-2023 07:56 PM
GabrielaRW
New Contributor II

Using CityEngine 2022.1

Hi team. We are exporting large number of 3D photogrammetry generated buildings using the Datasmith exporter with the following settings:

Mesh Merging: GLOBALLY

Use Texture Atlases: True

The results are large integrated meshes (desired) with a reduced number of textures due to texture atlasing. The issue lies in the fact that some of these meshes have more than 64 materials instances assigned to them, which is erroring when importing into Unreal specifically when converting to Nanite. It seems like Nanite has a limit of 64 materials per mesh.

Is there any way to combine meshes with a limit of 64 materials? How do you suggest we do this in CityEngine before exporting?

Thank you!

 

 

 

Tags (2)
0 Kudos
1 Reply
BenjaminNeukom
Esri Contributor

Hi Gabi!

Currently there is no way to do that with our exporter.

But what you could try is exporting them using mesh merging set to "globally by material" without texture atlassing and then enabling Nanite on each mesh.

The good thing about Nanite is that many meshes won't impact performance as they are rendered using a different render pass from the normal geometry.

Let me know if that works for you!

Best,

Benjamin

0 Kudos