Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yeluoo opened this issue Jan 25, 2024 · 0 comments
Open

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

yeluoo opened this issue Jan 25, 2024 · 0 comments

Comments

@yeluoo
Copy link

yeluoo commented Jan 25, 2024

  # 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant