Skip to content

Commit

Permalink
commit print
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruilong Li committed Sep 29, 2023
1 parent 3f8e568 commit 666a9c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions diff_rast/cuda/csrc/forward.cu
Original file line number Diff line number Diff line change
Expand Up @@ -522,15 +522,15 @@ __host__ __device__ float3 project_cov3d_ewa(
__host__ __device__ void scale_rot_to_cov3d(
const float3 scale, const float glob_scale, const float4 quat, float *cov3d
) {
printf("quat %.2f %.2f %.2f %.2f\n", quat.x, quat.y, quat.z, quat.w);
// printf("quat %.2f %.2f %.2f %.2f\n", quat.x, quat.y, quat.z, quat.w);
glm::mat3 R = quat_to_rotmat(quat);
printf("R %.2f %.2f %.2f\n", R[0][0], R[1][1], R[2][2]);
// printf("R %.2f %.2f %.2f\n", R[0][0], R[1][1], R[2][2]);
glm::mat3 S = scale_to_mat(scale, glob_scale);
printf("S %.2f %.2f %.2f\n", S[0][0], S[1][1], S[2][2]);
// printf("S %.2f %.2f %.2f\n", S[0][0], S[1][1], S[2][2]);

glm::mat3 M = R * S;
glm::mat3 tmp = M * glm::transpose(M);
printf("tmp %.2f %.2f %.2f\n", tmp[0][0], tmp[1][1], tmp[2][2]);
// printf("tmp %.2f %.2f %.2f\n", tmp[0][0], tmp[1][1], tmp[2][2]);

// save upper right because symmetric
cov3d[0] = tmp[0][0];
Expand Down

0 comments on commit 666a9c6

Please sign in to comment.