Forum

Author Topic: Black texture when texturing imported model  (Read 1251 times)

sergio

  • Newbie
  • *
  • Posts: 17
    • View Profile
Black texture when texturing imported model
« on: February 08, 2023, 05:05:31 AM »
Hi,

We are trying to texture an imported model in Metashape.

We import a PLY model using
Code: [Select]
chunk.importModel(transformed_filename, Metashape.ModelFormat.ModelFormatPLY)
We texture it using

Code: [Select]
chunk.buildUV(mapping_mode=Metashape.GenericMapping, page_count=1, texture_size = config.DEFAULT_TEX_SIZE*2)
chunk.buildTexture(blending_mode=Metashape.MosaicBlending, texture_size = config.DEFAULT_TEX_SIZE*2)

But the result is a dark gray color (there doesn't seem to be any error from Metashape's output)

Here, the DEFAULT_TEX_SIZE is 4096
The model has 56148 vertices and 112360 faces.

The model is correctly positioned in space it doesn't seem to be a positioning problem. Any clue on what's the problem here?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14890
    • View Profile
Re: Black texture when texturing imported model
« Reply #1 on: February 08, 2023, 02:50:42 PM »
Hello sergio,

Can you please show the same model in Solid view mode? Also please check, if the texturing goes fine when you generate a rough model from the tie points (based on camera alignment)?
Best regards,
Alexey Pasumansky,
Agisoft LLC