By modifying demo_texture.py, I tried to rotate the vertices of one image then change its texture to another image's texture.
In "1. 3d reconstruction -> get texture.", I added this line :
rotated_v = mesh.transform.rotate(vertices.copy(), [30, 0, 0]) # pitch, yaw, roll : positive : looking down, looking left, tilting head right
And I didn't modify other steps.
And the rotated vertices seemed not only rotated but also translated.
Can you help me investigate why?
Is this because the center of rotation is outside the face?
My image rendered from rotated vertices with new texture is as below :
Dear YadiraF, Thanks for your help!
By modifying demo_texture.py, I tried to rotate the vertices of one image then change its texture to another image's texture.
In "1. 3d reconstruction -> get texture.", I added this line : rotated_v = mesh.transform.rotate(vertices.copy(), [30, 0, 0]) # pitch, yaw, roll : positive : looking down, looking left, tilting head right
And I didn't modify other steps.
And the rotated vertices seemed not only rotated but also translated.
Can you help me investigate why?
Is this because the center of rotation is outside the face?
My image rendered from rotated vertices with new texture is as below :
input image :
ref image :
BR, JimmyYS