Skip to content

Add Resolution pin to QuadMerge, deprecate LayoutQuadCanvas - #64

Open
atkurtul wants to merge 3 commits into
devfrom
quadmerge-resolution
Open

Add Resolution pin to QuadMerge, deprecate LayoutQuadCanvas#64
atkurtul wants to merge 3 commits into
devfrom
quadmerge-resolution

Conversation

@atkurtul

Copy link
Copy Markdown
Contributor

Quad Merge already did 2x2 composition in a single node, but had no way to set its output resolution. It now has a Resolution pin and an unscaled output, following the BoxFit pattern — the quadrant math stays declarative in QuadMerge.frag, and a small node class sizes the output.

With that, Quad Merge covers what Layout Quad Canvas was for, so Layout Quad Canvas is marked (Deprecated) in the menu and on the node, with a description pointing at the replacement. It stays creatable and existing graphs keep working — flipping hide_in_context_menu closes the door later. Its inner Array (1) node is renamed to OutputInfos.

No class rename mapping: the pin names differ (Input 0 vs Input0, resolution vs Resolution) and only GetRenamedNodeClasses exists, no pin-rename hook, so a mapping would orphan every connection.

Note for reviewers: QuadMerge.cpp is a new source file and this plugin's generated target does not glob with CONFIGURE_DEPENDS, so a plain build fails with LNK2019: unresolved external symbol RegisterQuadMerge until CMake is reconfigured.

Not yet verified in the editor — compiles and links, but the Resolution pin resizing the output has not been confirmed at runtime.

Output is now unscaled and sized from the pin, following BoxFit.
Quad Merge covers the same 2x2 case in a single node. Still creatable. Also renames the inner Array (1) node to OutputInfos.
The node is not hidden from the menu.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant