Closed Theophania closed 7 months ago
You can assign materials per polygon. Euclid can load meshes with multiple materials, or you can create them yourself e.g. by combining multiple meshes with different materials using CSG operations.
The cube in the example app demonstrates this - the resultant mesh has both a color and checkerboard texture material applied.
Another way would be to grab the .polygons from the Mesh, set materials on them individually, and then create a new mesh from the updated polygons.
Thanks a lot!
Another way would be to grab the .polygons from the Mesh, set materials on them individually, and then create a new mesh from the updated polygons.
Thanks for the help, this was the method I chose in the end.
Hello,
my goal is to assign different materials to individual faces of a resulting SCNGeometry. From what I've tried, I can only associate a single material with the entire Mesh, leading to SCNGeometry always being created with just one element in its elements array.
Is there a recommended way within Euclid to assign multiple materials to a Mesh so that, upon conversion to SCNGeometry, it would contain a corresponding number of elements to support different materials for different faces? Thanks a lot!