mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-14 03:44:02 +08:00
nerfacto bugfix in viewer
This commit is contained in:
1 parent
e3822ded8d
commit
403e0f21c0
1 file changed
+1
-1
@@ -179,7 +179,7 @@ class RenderStateMachine(threading.Thread):
|
||||
pass
|
||||
else:
|
||||
# convert to z_depth if depth compositing is enabled
|
||||
R = camera.camera_to_worlds[0:3, 0:3].T
|
||||
R = camera.camera_to_worlds[0,0:3, 0:3].T
|
||||
pts = camera_ray_bundle.directions * outputs["depth"]
|
||||
pts = (R @ (pts.view(-1, 3).T)).T.view(*camera_ray_bundle.directions.shape)
|
||||
outputs["gl_z_buf_depth"] = -pts[..., 2:3] # negative z axis is the coordinate convention
|
||||
|
||||
Reference in new issue
Block a user