MoyGcc / vid2avatar

Vid2Avatar: 3D Avatar Reconstruction from Videos in the Wild via Self-supervised Scene Decomposition (CVPR2023)
https://moygcc.github.io/vid2avatar/
Other
1.2k stars 102 forks source link

how to get correct miltiview rendering result in one frame #57

Open zhj296409022 opened 8 months ago

zhj296409022 commented 8 months ago

I want to texture mesh in a frame, but it awlays render a blank image when I rotate camera pose, how should I operate to obtain the correct rendering result?

zhj296409022 commented 8 months ago

The code is here

angle = np.radians(180)  # 将角度转换为弧度
rotation_matrix = np.array([[np.cos(angle), 0, np.sin(angle), 0],
[0, 1, 0, 0],
[-np.sin(angle), 0, np.cos(angle), 0],
[0, 0, 0, 1]])
rotated_pose=np.dot(rotation_matrix,pose)