Repository navigation
obs-scene: Port the scene group transform - #1724
Merged
Merged
Conversation
nathan-v
force-pushed
the
port/scene-group-transform
branch
4 times, most recently
from
October 22, 2026 07:31
c28ddca to
d4c5be4
Compare
Tier 1 mirrors test_scene_group_transform. The core is still todo, so the seven cases panic: not yet implemented. Refs obs-rust#1719
The safe core matches obs-scene-group-transform.c.h. The two shims stay hidden. The scene still converts absolute and relative coordinates, still inverts the draw transform, and still calls update_item_transform. The C file moves to libobs.ported-scene-group-transform. vec4_len and the scale multiply are the header operations, written out in this object. A call into obs-graphics can land in the codegen unit that contains ep_free, and test_scene_bounds_place_rust cannot see those hidden adapter symbols. Tier 1 scene::group_transform is 7/7. Tier 3 parity is 3/3, including a proptest over every f32 bit pattern. Flipping the scale sign test from > to >= failed cmocka_cases_match_oracle: rust (0, 0), oracle (-0, -0). Reverted. No intentional differences. Fixes obs-rust#1719
nathan-v
force-pushed
the
port/scene-group-transform
branch
from
October 22, 2026 14:05
d4c5be4 to
c8bd161
Compare
nathan-v
marked this pull request as ready for review
October 22, 2026 16:43
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.
Fixes #1719
#1722 merged as
8534113ae. This branch is the port only, rebased ontocfd212d34. That master includes #1762, which drops CR fromformat_conversion.effectbeforetechniques_exist_in_the_effectsearches it. Windows Tier 2 ond4c5be432failed that search (Planar_Y, run 39741036217) because the runner checkout is CRLF. Two commits:acf949975(RED) andc8bd1616a(GREEN).What and why
obs_scene_transform_valandobs_scene_group_transformare the Rust core inobs-scene. The scene still reads the item, still converts absolute and relative coordinates, still inverts the draw transform when an item joins a group, and still callsupdate_item_transform. The two shims stay hidden.test_scene_group_transformstill compiles the C, so it cannot see the swap. Tier 3 does.Translation moves position only. Scale is the column length after the translation is cleared, and a scale that is not greater than zero takes the minus sign, so a zero scale becomes negative zero. A rotation in the matrix does not change the scale. The C writes
x_baseand never reads it; the Rust core skips that store. No intentional differences.RED → GREEN
acf949975obs-scene: Add the group transform tests.soldr cargo test -p obs-data --test obs-tests-core group_transformfailed 7/7. Six panic ingroup_transform(not yet implemented: obs_scene_group_transform) andtransform_val_includes_translationpanics intransform_val(not yet implemented: obs_scene_transform_val).c8bd1616a. Tier 1scene::group_transformis 7/7. Tier 3 is layout, the cmocka cases, and a proptest over every f32 bit pattern. Flipping the scale sign test from>to>=failedcmocka_cases_match_oracle: rust(0, 0), oracle(-0, -0). Reverted.vec4_lenand the scale multiply are written out in the scene object, so it does not call into theobs-graphicsunit that containsep_free.test_scene_bounds_place_rustlinks that archive againstlibobs.soand cannot see the hidden adapter symbols (runs 39730507255 and 39731439560). After this rebase the 10 group-transform tests passed again.Local checks
soldr cargo fmt --all --check, clang-format (2987 files), gersemi (522 files),soldr cargo clippy --workspace --all-targets --locked -- -D warnings, andsoldr cargo dylint --all -- --workspace --lib --binspassed.soldr cargo test --workspace --lockedpassed, including the 10 group-transform tests. Doctests passed. The lane'sx86_64-pc-windows-gnu--no-runstep does not run here: soldr wants a Windows or Linux host for that target../lint's Python self-tests still fail on this Mac before rustfmt (bash 3, the Darwin linker,/tmpvs/private/tmp).ci/test_build_groups.pyandci/test_ported_sources.pypassed after the unity file was staged.Linux Tier 2 in Docker did not reach ctest.
test_ws_screenshot_srgbincludesutils/Obs.hon the case-insensitive mount, andtest_scene_bounds_place_rustfails with undefined references toobs_effect_parser_destroy_elementand the other hidden adapter symbols.nmon thatlibobs.so.30showsobs_scene_transform_valandobs_scene_group_transformas local text. No stamp. PR CI runs the Linux jobs.The cross lane did not get past the Windows MSVC target. Host
cchas nowindows.h(thread_name_seh.c) and nostdio.hfor the jansson build. That is this machine's SDK, not the port. The macOS cross target did not run.Checklist
master(or the description starts with a Stacked: note)docs/features.mdis added or updated (not applicable: no user-visible change)-W..., ratchets): built with scripting ON (PR CI builds no OBS app: rungh workflow run ci.yml --ref <branch>for the full builds) and cross-checked with clang and MSVC (not applicable: no flag change)