Agisoft Metashape
Agisoft Metashape => Python and Java API => Topic started by: edz on July 30, 2018, 10:28:02 PM
-
In the python scripts, how are we supposed to know which face-vertex maps to which texture index (when using multiple textures).
I use chunk.buildUV(count=4) for example, and chunk.model.texture(page=index) work well. But when looking at the faces with chunk.model.faces, I can get the tex_vertices, which works well for a single texture. But I think the texture index is missing, I suggest adding something like chunk.model.faces[].tex_index to indicate the texture associates with that specific face.
-
Hello edz,
I think will add the access to the texture atlas page in the next version update. I assume it would be a property of the polygon (face) itself.
-
I think will add the access to the texture atlas page in the next version update. I assume it would be a property of the polygon (face) itself.
Yes, that would be great, thanks. A simple index in the Face would be perfect, something like chunk.model.faces[].tex_index