Skip to content

How do I set the internal and external parameters?  #16

@yeluoo

Description

@yeluoo
  # pyrender.Viewer(scene, use_raymond_lighting=True)
    
  renderer = pyrender.OffscreenRenderer(viewport_width=1024, viewport_height=1024)
  image, _ = renderer.render(scene)

  # 保存图片到文件
  filename = f'scene_{i:02}.png'
  import cv2
  cv2.imwrite(filename, image)
  print(f"Scene saved to {os.path.abspath(filename)}")

I want to render it into an image. How do I set the internal and external parameters? I set it to the unit matrix, and the rendering result is empty.
@TimoBolkart @soubhiksanyal @NeelayS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions