Forum

Author Topic: I want to export baked normal map texture as 16 bit PNG.  (Read 3589 times)

amalbubble

  • Newbie
  • *
  • Posts: 1
    • View Profile
I want to export baked normal map texture as 16 bit PNG.
« on: May 02, 2023, 12:07:55 PM »
Hi, I want export the baked normal map texture from a highpoly mesh to a lowpoly mesh as 16 bit PNG. But metashape exports the normal map that has been baked only as 8 bit. All other formats also export it as a 8 bit image. I tried the EXR format too. But the 32bit full color EXR image is very heavy to process for my machine and other softwares to be able to convert to 16bit PNG. It seems to me that baking inside of metashape is happening as 8bit so I am unable to export it as a 16bit image. Please help, as my client needs the normal map as 16bit only.

Thanks,
Amal

e.spiridonova

  • Agisoft Technical Support
  • Newbie
  • *****
  • Posts: 38
    • View Profile
Re: I want to export baked normal map texture as 16 bit PNG.
« Reply #1 on: June 06, 2024, 11:27:25 AM »
Dear Amal,

Please try to use the following commands:
import Metashape
chunk = Metashape.app.document.chunk
image = chunk.model.textures[1].image()
image = image.convert("RGBA","U16")
image.save('//..../u16_dm2.png')
Best regards,
Elizaveta Spiridonova,
Agisoft LLC