Forum

Author Topic: After "Build Tiled Model" Texture resolution is substantially degraded.  (Read 1117 times)

Mr Miyagi

  • Newbie
  • *
  • Posts: 5
    • View Profile
Good Morning.

I am having an issue where once i tile an OBJ model the texture is significantly worse than it was prior to tiling. The screenshot shows the quality of the model as displayed by Agisoft and again for the same model after tiling (i have made sure that the highest quality LOD is visible). the model is textured to 1mm and i am tiling to 1mm.

If i cut the OBJ down in size to a smaller area it maintains the quality (It makes 5 levels instead of 6) but the OBJ and the Tiled model look the same once fully zoomed in. The OBJ i am trying to process is only 6.88 Gb with 1.36Gb of textures, textures are UDIM and jpg 24bit and the mesh has 65million triangles. It takes approximately 1 hour and 20 min to tile.

I have run the same project with GPU enabled (RTX 4090) and only CPU options and have achieved the same result for both.

I have attached my settings as a screenshot.

I have achieved the same result on "Agisoft Metashape 2.1.1" and "Agisoft Metashape 2.1.0".

I am running intel 13900k, RTX 4090 and 192GB ram.


Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14927
    • View Profile
Hello Mr Miyagi,

We have tried to reproduce the issue on several random projects with high-poly mesh models and 100+ texture pages, but were not able to reproduce the degradation of the tiled model texture quality.

So I could assume that the problem may be related to the coordinate system (or coordinate values) of the imported model. Can you please specify, if the model that is being imported to Metashape has been georeferenced? What values do you get, when you execute the following line in the Console pane of Metashape for this project?
Code: [Select]
Metashape.app.document.chunk.model.vertices[0].coord
Please also specify, if you are observing any visual issues when rotating/navigating the imported model in Model view of Metashape?
Best regards,
Alexey Pasumansky,
Agisoft LLC

Mr Miyagi

  • Newbie
  • *
  • Posts: 5
    • View Profile
Good Morning Alexey

When inputting the requested console command into Agisoft for the input model it returns the following:

Metashape.app.document.chunk.model.vertices[0].coord
Out[1]: 2024-04-05 15:10:29 Vector([0.0, 0.0, 0.0])

The info file for the OBJ has the following location information:
<Model globalCoordinateSystem="+proj=geocent +ellps=WGS84 +no_defs" globalCoordinateSystemWkt=""
   globalCoordinateSystemName="local:1 - Euclidean" exportCoordinateSystemType="1"
   transformToModel="1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1">

I don't see any visual issues once the model has imported, its a little slow to move around but the visuals look great.

I can send you the OBJ model to you for the purpose of diagnosing the problem (not for anything other than that though as its paid work). just let me know if you want me to send it to support@agisoft.com.

Thanks Alexey



 


Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14927
    • View Profile
Hello Mr Miyagi,

Yes, it will be helpful, if you could send the model to support@agisoft.com, so that we can try to reproduce the issue on our side.
The model will be used only for the analysis of this particular issue.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Mr Miyagi

  • Newbie
  • *
  • Posts: 5
    • View Profile
Thanks Alexey,

I have sent a SharePoint folder for you to look at. please let me know it works for you.

Thanks again

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14927
    • View Profile
Hello Mr Miyagi,

Thank you for sharing the test data.


The issue seem to be related to the large coordinates in the OBJ file that are not properly treated during texture transfer procedure.

The workaround that you can use is the following:
- create new empty chunk in the project,
- execute the following single line in Metashape Console pane:
Code: [Select]
Metashape.app.document.chunk.transform.matrix=Metashape.app.document.chunk.transform.matrix- use Import Model option with the following shift options (X = -46742, Y = -152582, Z = 0),
- build tiled model with texture transfer option enabled. You may also consider using 512 tiles and high face count to improve the level of detail of the tiled model geometry

Let me know, if it works properly and you get good texture of the tiled model.

Meanwhile we will try to fix the internal cause the reason of the problem.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Mr Miyagi

  • Newbie
  • *
  • Posts: 5
    • View Profile
Good morning Alexey,

We finally got to re-run the dataset with the changes you suggested, and the issue on this dataset and others in the same location are resolved. All textures are almost indistinguishable.

Thank you for your help! Always much appreciated.