Repository navigation
Conversation
Events keep the flashback frames (kaisou_waku, e372_waku2) and the speed lines (shuchusen) in front of the camera with _CMRS_CHARA_ATTACH. Each model turns to the camera through a billboard sized to cover retail's 512x480 screen, so at 16:9 the e372 flashback frame ended inside the window: the scene showed beyond its white rim at both sides (TheMoonPeople#56). scsCharaAttach now marks the model's root (mgCFrame::fills_screen). GetBBoardMatrix stretches a billboard under such a root by the visible extent over retail's screen, never below 1: across by the width ratio and up by the height ratio. Other billboards, and 4:3, are unchanged. MglibAspect.ScreenFillingBillboard* check the stretch at 1280x720, 1024x768 and 800x1200, and that a billboard without the mark keeps its shape.
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.
Summary
At wide aspects, the glowing frame around a flashback stops short of the window's sides. At 16:9, a strip of the scene shows at each edge, beyond the frame's white outer rim. This is the "Griffon is 10,000 years in the past now..." scene reported in #56.
kaisou_waku) and the speed lines (shuchusen) are placed the same way, so they get the same treatment.video.aspect4:3.Part of #56.
Cause
_CMRS_CHARA_ATTACH(Luauevent.keep_character_in_front_of_camera_sequence), andscsCharaAttach(port/src/object/event/sceneseq.cpp) puts the character at a fixed distance along the camera's view every frame. The scripts make 37 such calls:kaisou_wakuande372_waku2, at 600 to 760 units;shuchusen, at 60.null2--ba/null1--ba) turns it to the camera, and it is sized to cover retail's 512x480 screen. In e372, the frame's outer edge sits about 318 logical units either side of the centre; the screen is ±256.Change
mgCFramehas a port-only flag,fills_screen, andscsCharaAttachsets it on the root of the model it places.mgCFrame::GetBBoardMatrix(port/src/render/mg_frame.cpp) stretches any billboard under such a root by the visible extent over retail's screen (mgPortVisibleExtent), never below 1:MglibAspect.ScreenFillingBillboard*(port/src/tests/mglib_aspect_test.cpp) covers three window sizes; a billboard without the flag keeps its shape at each:docs/PC.md, "Window aspect", gets one bullet.Testing
Environment: macOS 26.6.2 arm64 (M4 Pro), Homebrew LLVM 23.1.5, MoltenVK 1.4.2, presets
macos-arm64(Debug) andmacos-arm64-release. PAL data (data_version20) for the replays.Replay (Release):
--jump event:13720 --fast-load, which is e372 (Crest's return), with Cross every 50 frames from frame 300. Frames 2950 and 3050 are inside the flashback. Side columns: the share of pixels in the outermost 40 columns on each side where blue exceeds red by more than 40, meaning the frame's glow rather than the red scene.MglibAspect.*,MgFrameAsm.*, model and arena suites (sizeof(mgCFrame)),MenuReplay.*with data, Debugctest, Debug-j6(SaveSlotTest.MenuScrollsPastThirteenAndClampsItsVisibleWindow,GfxGpuMeshDc2.FogIsContinuousAcrossSharedClippedEdge) pass when run alone. Three fail when rerun:PcSettingsReplay.padfails the same way with a build of the parent commit (KeyError: 'present_mode');GfxMisc.MeshBoundsFollowTheFlagAndAreInvalidatedByUpdatesandGfxGpuMeshDc2.FragmentInvocationQueriesPreservePixelsAndWindowOwnershiptest only the Kazarov renderer, which this change does not touch (not rerun on the parent commit)"Without change" for the replays used a Release build of the parent commit (bcd1967).
Not covered
--jumphere. The two dungeon jumps stop on a missingmainchr/max.stb, and the two town jumps do not trigger the scene.