Repository navigation
feat(ui): filter the layer tree by name and node type - #29
Merged
Merged
Conversation
In large scenes a node such as a glTF-authored light is hard to find among hundreds of siblings. The layer tree now has a case-insensitive name filter and "show only" checkboxes for surface, volume and light nodes. A node is shown when it passes the type checkboxes and it or an ancestor matches the name; the parents of every shown node stay visible for context. Changing the filter expands the shown nodes, and shift-click range selection skips hidden nodes. vsrViewer and vsrMultiDeviceViewer also log when a scene brings its own lights and the default light is skipped, so a missing "defaultLights" node is explained.
Picking an object in the viewport selected its layer node, but the tree only highlighted the row: it stayed collapsed or scrolled out of sight. When the first selected node changes outside the widget, the layer tree now switches to that node's layer, opens its ancestors and scrolls the row to the middle of the panel if it is not already fully visible. Selections made in the tree itself do not scroll it, and a node hidden by the filter is left hidden.
lua.org/ftp often times out on CI runners, failing the configure step. Fetch the v5.4.8 tag from the lua/lua GitHub mirror instead (sources live at the archive root, so the source paths go through VELA_LUA_SRC) and cache <source>/.anari_deps in both CI jobs so later runs skip the network.
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.
Why
In
classroom2.glb(~900 top-level nodes), there seemed to be nodefaultLightsnode. The scene brings its own directional light throughKHR_lights_punctual, so the viewer skips the default light, as intended. The scene's light is in the layer tree but hard to find among its siblings.What
Layer tree filters (
LayerTree.cpp/.h)resetbutton clears the filter.Bring the selected node into view (
LayerTree.cpp/.h)Log line:
vsrViewerandvsrMultiDeviceViewerlog...scene has lights, skipping default lightwhen they skip the default light.Notes
Testing
vsrViewerandvsrMultiDeviceViewerbuild cleanly.vsrViewer.