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

Has anyone encountered the issue of inverted meshes generated from pose? #202

Open
zjutcaicai opened this issue Jul 17, 2023 · 2 comments
Open

Comments

@zjutcaicai
Copy link

When I generate meshes from the pose in the pkl file,the entire person is upside down.The overall y and z axes are reversed. How can I handle the pose to make it normal? I need to retain the pose for some reasons.
thank you.

@athena913
Copy link

If you are using the following to generate the mesh from the pose in the pkl file, you can comment the 2nd line that uses the rotation_matrix.

out_mesh = trimesh.Trimesh(vertices, body_model.faces, process=False)
        rot = trimesh.transformations.rotation_matrix(
            np.radians(180), [1, 0, 0])
        out_mesh.apply_transform(rot)
        out_mesh.export(mesh_fn)

@zjutcaicai
Copy link
Author

Thanks!I already know this code. I hope to rotate the pose instead of the final obj. This is very difficult for me, because it seems to involve Euler angles

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

2 participants