BaowenZ / RaDe-GS

RaDe-GS: Rasterizing Depth in Gaussian Splatting
Other
328 stars 7 forks source link

Depth gradient for means3D #14

Open MELANCHOLY828 opened 1 week ago

MELANCHOLY828 commented 1 week ago
glm::vec3 dL_dmean2;
float mul3 = view[2] * m.x + view[6] * m.y + view[10] * m.z + view[14];
dL_dmean2.x = (view[2] - view[3] * mul3) * dL_ddepth[idx];
dL_dmean2.y = (view[6] - view[7] * mul3) * dL_ddepth[idx];
dL_dmean2.z = (view[10] - view[11] * mul3) * dL_ddepth[idx];
why - view[3] * mul3,I believe that the depth = view[2] * m.x + view[6] * m.y + view[10] * m.z + view[14]; the gradient with respect to x should be view[2]. Could you help me solve this?
MELANCHOLY828 commented 1 week ago

why - view[3] mul3, I believe that the depth = view[2] m.x + view[6] m.y + view[10] m.z + view[14]; the gradient with respect to x should be view[2]. Could you help me solve this?

BaowenZ commented 1 week ago

This is in the same style as previous work. However, the last row of view matrix is (0,0,0,1). So I think it doesn't have any influence. And it can be cleaned in the next version.

MELANCHOLY828 commented 1 week ago

thanks reply!!!