rerun-io / rerun

Visualize streams of multimodal data. Fast, easy to use, and simple to integrate. Built in Rust using egui.
https://rerun.io/
Apache License 2.0
6.33k stars 301 forks source link

(Optionally) Prevent projections from ui interaction behind the camera plane in 2D views #6275

Open genemerewether opened 4 months ago

genemerewether commented 4 months ago

3D objects also project into cameras that are pointed the opposite direction, giving a negative depth value in the camera image view.

Could we prevent that (check that projected depth is positive)? It's confusing when you see a point project to cameras that are pointed the opposite way.

Wumpf commented 4 months ago

marking this as a bug since this was not the intended behavior. To clarify: You're seeing 3d objects in the Spatial2DView that are behind the projecting pinhole camera? As far as you know, does this apply to specific objects?

genemerewether commented 4 months ago

Not static objects - I’m not sure the right word. Selection (hover mouse over 3D window) in 3D transiently highlights an object, then shows the depth of that object in camera 2D views. This happens even for objects behind cameras, at negative depth.

Sorry, I can’t screenshot our actual app and I don’t have a repro, but I can sketch it if that helps

On Mon, May 13, 2024 at 3:49 AM Andreas Reich @.***> wrote:

marking this as a bug since this was not the intended behavior. To clarify: You're seeing 3d objects in the Spatial2DView that are behind the projecting pinhole camera? As far as you know, does this apply to specific objects?

— Reply to this email directly, view it on GitHub https://github.com/rerun-io/rerun/issues/6275#issuecomment-2106881384, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACDSJSKIB6ZWPZDBSD5HNFTZCBWBPAVCNFSM6AAAAABHPC6X2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWHA4DCMZYGQ . You are receiving this because you authored the thread.Message ID: @.***>

Wumpf commented 4 months ago

ahhh makes sense, it's the ui interactions that are shown. I thought we had a bug for 3d objects on 2d views.