Repository navigation
cvcGL: mirror-viewport fidelity + router/camera fixes from the PiP gap analysis - #389
Merged
Merged
Conversation
…p analysis Concrete defects a gap-analysis pass found in the merged PiP stack (#384/#386/ #387), fixed before the minimap demo exercises them: * Mirror double-drew 2-D overlays: syncMirrorProps copied EVERY prop, so a mirror of a scene with FpsHud/ScreenTextHud drew the HUD a second time on the inset. It now skips vtkActor2D (a window-space overlay, not scene geometry) — matching the shipping wasm PiP. * Mirror rendered flat: syncMirrorProps copied view props but not lights, so a mirror of a StageLighting-rigged scene lost its lighting. It now copies the source's lights (world-space, correct from the mirror's own camera); with none, the mirror falls back to VTK's automatic headlight. * MB::Right was not the no-op the header claims: its button-down latched a drag target and called setActiveViewport, so a right-click silently stole keyboard focus and released the prior viewport's held keys. routeMouseButton now returns immediately for Right. * CameraController::viewportAspect preferred the WINDOW size over the renderer's for the Map/ortho fit, so a PiP inset in Map mode framed to the wrong aspect; it now prefers the viewport (renderer) size, matching the pan scaling, and falls back to the window before the first frame. * Fixed the stale "addMirrorViewport, a follow-up" comment (it shipped in #386). Tests: cvcgl_viewport gains a check that a 2-D actor on the source does NOT reach the mirror while a source light DOES; cvcgl_viewport_input gains a Right-button no-op check (no focus steal, no camera motion). Full cvcgl suite (29) green locally.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cvcGL: mirror-viewport fidelity + router/camera fixes from the PiP gap analysis
Concrete defects a gap-analysis pass found in the merged PiP stack (#384/#386/
#387), fixed before the minimap demo exercises them:
mirror of a scene with FpsHud/ScreenTextHud drew the HUD a second time on the
inset. It now skips vtkActor2D (a window-space overlay, not scene geometry) —
matching the shipping wasm PiP.
mirror of a StageLighting-rigged scene lost its lighting. It now copies the
source's lights (world-space, correct from the mirror's own camera); with
none, the mirror falls back to VTK's automatic headlight.
target and called setActiveViewport, so a right-click silently stole keyboard
focus and released the prior viewport's held keys. routeMouseButton now
returns immediately for Right.
for the Map/ortho fit, so a PiP inset in Map mode framed to the wrong aspect;
it now prefers the viewport (renderer) size, matching the pan scaling, and
falls back to the window before the first frame.
Tests: cvcgl_viewport gains a check that a 2-D actor on the source does NOT reach
the mirror while a source light DOES; cvcgl_viewport_input gains a Right-button
no-op check (no focus steal, no camera motion). Full cvcgl suite (29) green
locally.