Skip to content

Commit

Permalink
{Code Sample} Offscreen rendering using pyrender
Browse files Browse the repository at this point in the history
Summary:
Introduce a code sample to perform offscreen rendering using PyRender.
- Use PyRender Scene to setup:
  - 3D object meshes and poses
  - Rectilinear cameras corresponding to Aria Glasses camera poses
  - Hand mesh
- Perform offscreen rendering to retrieve COLOR/DEPTH/Segmentation masks
- Show how to map the rectilinear image back to the native FishEye camera model (do note that we are loosing some field of view)

Example of usage:
1. install deps
`pip install pyrender trimesh`
2. Run the code sample
`python render_3.py`

See the rendered images in the folder

Reviewed By: prithvirb

Differential Revision: D64411691

fbshipit-source-id: 5c5ab2e42ce6ab9c67c47c9cbe9b3449e8d1cbff
  • Loading branch information
SeaOtocinclus authored and facebook-github-bot committed Oct 18, 2024
1 parent bcd196e commit 35b901c
Showing 1 changed file with 444 additions and 0 deletions.
Loading

0 comments on commit 35b901c

Please sign in to comment.