Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions kaolin/render/camera/intrinsics_ortho.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,9 @@ def projection_matrix(self) -> torch.Tensor:
# kaolin follows OpenGL conventions of NDC in [-1, 1], where the center of the canvas is denoted as (0, 0)
# The following lines ensure the projection matrix is compatible with OpenGL.
# Practitioners using a different graphics api may modify this matrix.
# top = self.height / 2
# bottom = -top
# right = self.width / 2
# left = -right
top = 1.0
top = self.height / 2
bottom = -top
right = 1.0 * self.width / self.height
right = self.width / 2
left = -right
ortho = self.orthographic_matrix(left, right, bottom, top, self.near, self.far)
return ortho
Expand Down