Open shoutOutYangJie opened 1 year ago
If the triangles are consistently defined in the mesh, then setting cull_backfaces=True
in the rasterization settings may be enough to get the eye holes.
I don't know which other aspects you are concerned about, but one difference is that in PyTorch3D you are using full ambient white light (hence it looks so flat) but the Maya image has been rendered with more complicated lighting.
I have a full-head mesh, like this, which I use Maya to render it.
then I use Pytorch3d to render the mesh, but the result is bad, like this:
the rendered image has no eye hole because the triangle faces behind front head are also rendered and cover the hole. The reality is also worse than maya. I want to know to how to render in pytorch3d like maya. I use the following code:
Here is my obj file. https://drive.google.com/file/d/1ViIA6-rrZqFOMuJDuWqngCjY7Cdtt860/view?usp=sharing