Forum

Author Topic: Render Viewport with Matcap visible?  (Read 3063 times)

wojtek

  • Sr. Member
  • ****
  • Posts: 284
    • View Profile
Render Viewport with Matcap visible?
« on: August 09, 2021, 04:32:23 PM »
Is this possible? .renderImage only renders with the texture map enabled (black when there is no texture). Is there something I'm missing?

ps. .captureView is not right for the job as it's not rendering an image that aligns with any given camera/photo.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15124
    • View Profile
Re: Render Viewport with Matcap visible?
« Reply #1 on: October 07, 2024, 01:34:35 PM »
Hello wojtek,

We have added the possibility to render Matcap mode (using Python) to pre-release 2.2.0 build 19195:
https://download.agisoft.com/metashape-pro_2_2_0_x64.msi
https://download.agisoft.com/metashape-pro_2_2_0.dmg
https://download.agisoft.com/metashape-pro_2_2_0_amd64.tar.gz

model.renderImage() command now accepts matcap_image argument, its value should be set as Metashape.Image(). Simple code example below:

Code: [Select]
image = Metashape.Image()
image = image.open(path_to_matcap)
render = chunk.model.renderImage(chunk.cameras[1].transform, chunk.sensors[0].calibration, matcap_image = image)
render.save(output_path)

If you have any comments on this feature, please let me know.
Best regards,
Alexey Pasumansky,
Agisoft LLC