pyrender
pyrender copied to clipboard
Request for Assistance: Obtaining Pixel-to-Face Index in Pyrender
Hello, I'm a beginner in pyrender and I have a question that may sound trivial. Currently, I'm using egl for offscreen rendering.
Suppose I render a mesh into an image with dimensions (H, W, 3). Is it possible to obtain a pixel_to_face matrix of size (H, W), which serves as a mapping storing the face index of the mesh?
The reason I am interested in obtaining the pixel_to_face matrix is for a segmentation task. In my segmentation task, each face of the mesh corresponds to a specific class. By acquiring the pixel_to_face matrix, I can transform the task into image segmentation.
Any feedback or comments would be greatly appreciated. Thank you!