hello, i used dirty to render the normal map and the result looks different from the normal map from pifuhd, can you tell me why?
Below is my rendering code:
**_vertices_split, faces_split = dirt.lighting.split_vertices_by_face(m_v, m_f)
vertices_split = tf.concat([vertices_split, tf.ones_like(vertices_split[:, :, -1:])], axis=2)
vertices_view_split = tf.einsum('evi,ij->evj', vertices_split, view_matrix)
projected_vertices_split = tf.einsum('eij,jk->eik', vertices_view_split, projection_matrix)
vertex_normals_split = dirt.lighting.vertex_normals_pre_split(vertices_split, faces_split)
hello, i used dirty to render the normal map and the result looks different from the normal map from pifuhd, can you tell me why? Below is my rendering code: **_vertices_split, faces_split = dirt.lighting.split_vertices_by_face(m_v, m_f) vertices_split = tf.concat([vertices_split, tf.ones_like(vertices_split[:, :, -1:])], axis=2) vertices_view_split = tf.einsum('evi,ij->evj', vertices_split, view_matrix) projected_vertices_split = tf.einsum('eij,jk->eik', vertices_view_split, projection_matrix) vertex_normals_split = dirt.lighting.vertex_normals_pre_split(vertices_split, faces_split)
vertex_normals_split = tf.tile(vertex_normals_split[np.newaxis, ...], (tf.shape(m_v)[0], 1, 1))
. This is the dirty rendering result: This is the normal map from PIFUHD:
Can you tell me why their colors are so different?