1
Python and Java API / Build Texture Without Cameras
« on: May 11, 2021, 09:09:03 AM »
Hello!
I'm trying to build a textured model from a dense point cloud. The point cloud was generated in Dot3D and has normals and vertex colors but does not have any aligned cameras. When using the Metashape Pro client, I was able to create a mesh and then generate a texture directly from the mesh. However, I have not been able to do this with the Python API. Depending on the settings I use, BuildTexture() either gives an error that says "no aligned cameras" or one that says "model has no diffuse texture." I tried to copy the settings I used in the client (I've included a screenshot) but was unable to match them exactly - for example, there is no keep_uv mapping mode. I tried running BuildUV() before generating the texture, but still had the same issues.
Any help would be appreciated!
I'm trying to build a textured model from a dense point cloud. The point cloud was generated in Dot3D and has normals and vertex colors but does not have any aligned cameras. When using the Metashape Pro client, I was able to create a mesh and then generate a texture directly from the mesh. However, I have not been able to do this with the Python API. Depending on the settings I use, BuildTexture() either gives an error that says "no aligned cameras" or one that says "model has no diffuse texture." I tried to copy the settings I used in the client (I've included a screenshot) but was unable to match them exactly - for example, there is no keep_uv mapping mode. I tried running BuildUV() before generating the texture, but still had the same issues.
Any help would be appreciated!