Skip to content

z-fighting for two cameras that have same plane distance from reference point #3163

@pd-nisse

Description

@pd-nisse

Describe the bug
I have two cameras with same focal lengths

To Reproduce
Steps to reproduce the behavior:
Add two pinhole cameras to the same reference point with the following intrinsics:
Camera 1:

width=1920,
height=1080,
fx=630.0,
fy=630.0,
cx=960.0,
cy=540.0,

Camera 2:

width=1920,
height=1080,
fx=500.0,
fy=500.0,
cx=960.0,
cy=540.0,

Expected behavior
I'm actually not sure what to expect when they're overlapping. But the z fighting is definitely not the best solution. Maybe pick the smaller area to be slightly in front of the larger area?

Screenshots
Ignore the third (closest) camera.

zfighting.mp4

Desktop (please complete the following information):

  • OS: e.g. macOS Monterey 13.5.1

Rerun version
0.8.1

Additional context
Not a big issue, but an imperfection in a certain scneario

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions