f.reichl Posted August 30, 2016 Share Posted August 30, 2016 Hi, we are facing the following problem: We have a scene with a lot of instances of the same meshes all over the place. We are currently not using Node References, so we have a number of ObjectMeshStatic nodes with unique IDs inside a scene using the same mesh file, all containing the same surfaces (i.e. all surfaces present in the mesh file). Is there a way to assign a material to a surface of *all* mesh nodes using the same mesh file at once instead of performing the assignment for each instance separately? Edit: I actually meant to post this in content creation since we are ideally looking for a solution without writing code, sorry ;-) Regards, Florian Link to comment
silent Posted August 30, 2016 Share Posted August 30, 2016 Hi Florian, I guess ObjectMeshCluster is the right choice for that task: https://developer.unigine.com/en/docs/2.3/objects/objects/mesh_cluster/ You also can achieve some performance boost when you will bake all the meshes into cluster. Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
f.reichl Posted September 2, 2016 Author Share Posted September 2, 2016 Hi Silent, thank you for the hint. MeshCluster sounds interesting, but I think it is not applicable to our case, since we need to have the meshes at specific parts in the scene hierarchy, and each of them will have different properties assigned, Link to comment
silent Posted September 2, 2016 Share Posted September 2, 2016 Hi Florian, In that case, I'm afraid you have to write some custom script or tool that will find all required nodes and set materials to them. Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts