pyrender icon indicating copy to clipboard operation
pyrender copied to clipboard

Request for Assistance: Obtaining Pixel-to-Face Index in Pyrender

Open jk4011 opened this issue 2 years ago • 0 comments

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!

jk4011 avatar Jul 05 '23 11:07 jk4011