You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rust: Port the scene group transform in obs-scene.c to obs-scene #1719
transform_val, get_ungrouped_transform, and apply_group_transform in libobs/obs-scene.c.h, to obs-scene.
Phase and position
Phase 6, tracked by #444. After scene coordinates (#1645) and bounds placement (#1637). Those ports left this math in the scene. It folds a group's draw transform into a child's position, scale, and rotation.
Dependencies and existing tests
Depends on matrix4_mul, vec3_transform, and vec4_len, already in libobs. Absolute versus relative conversion stays in the scene, because it reads the canvas. apply_group_transform still inverts the group's draw transform and still calls update_item_transform. No cmocka test covers this math. The characterization lands first: move the matrix math into its own C file and pin the current behavior. No Rust in that PR.
transform_val is also what resize_group uses to measure a group's position. It moves with this unit.
Notes
No SIMD in this file. The graphics calls it makes are the existing ones. A zero scale becomes negative zero, because a scale that is not greater than zero keeps a minus sign and the length of a zero column is positive zero. A rotation in the matrix moves the position and does not change the scale. The child's rotation changes only by the group's rotation, added when leaving a group and subtracted when joining one. No intentional differences in the characterization. The Rust port follows in a later PR.
Claiming: the scene group transform (transform_val, get_ungrouped_transform, apply_group_transform)
Characterization PR, opening today: move the matrix math into libobs/obs-scene-group-transform.c.h and pin it with test_scene_group_transform. The scene still reads the item, still converts absolute versus relative coordinates, still inverts the draw transform when an item joins a group, and still calls update_item_transform. No Rust.
The Rust port into obs-scene, after that PR merges.
Activity
nathan-v commentedon Oct 22, 2026
Claiming: the scene group transform (
transform_val,get_ungrouped_transform,apply_group_transform)libobs/obs-scene-group-transform.c.hand pin it withtest_scene_group_transform. The scene still reads the item, still converts absolute versus relative coordinates, still inverts the draw transform when an item joins a group, and still callsupdate_item_transform. No Rust.obs-scene, after that PR merges.libobs: Move the scene group transform out
test: Characterize the scene group transform
obs-scene: Add the group transform tests
obs-scene: Port the scene group transform
test: Characterize the scene group transform (obs-rust#1722)
obs-scene: Add the group transform tests
obs-scene: Port the scene group transform
obs-scene: Add the group transform tests
obs-scene: Port the scene group transform
obs-scene: Port the scene group transform
obs-scene: Add the group transform tests
obs-scene: Port the scene group transform
obs-scene: Port the scene group transform (#1724)