Skip to content

There is an inconsistency with world coordinates to screen coordinates in PerspectiveCameras  #1436

@orweiser-code

Description

@orweiser-code

🐛 Bugs / Unexpected behaviors

three issues:

  1. in the transform_points_screen method - instead of compositing all transforms and applying once on the points - you project first to ndc then transform to screen space (a 2N matmul operation instead of a N matmul operation for N points).
  2. When accepting K (as opposed to focal length and principal point) with in_ndc=False you take the matrix as is but don't check if it includes the rotational component from world space to screen space and don't deal with it in the get_full_projection_transform method - resulting in a projection to flipped screen coordinates and wrong origin.
  3. Point 2 affects the unproject_points method that uses get_full_projection_transform but doesn't reason about this flip when camera is not defined in ndc space

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions