Skip to content

Conversation

@blamelessgames
Copy link
Contributor

in progress: investigating generating an AABB, working on a more cohesive example

Objective

  • As rendered entities, retained gizmos should respect visibility components

Solution

  • Following the example of other rendered components, I added Visibility as a required component of the Gizmo component in the GizmoRenderingPlugin and updated the extraction system to cull invisible gizmos.

Testing

  • Tested using the 3d_gizmos example

- set `Visibility` as a required component on `Gizmo` components in
  `GizmoRenderPlugin`
- update `extract_linegizmos` to take view visibility into account
- update the 3d_gizmos example to toggle visibility of the retained
  gizmo in the scene

investigating the feasibility of attaching an AABB to the gizmo for
better visibility testing

will build a `retained_gizmos` example to better demonstrate the
feature. it's kind of crammed into the current example code
- add a visibility class to the gizmo
- calculate AABBs for the gizmos
- start a new example for retained gizmos
@github-actions
Copy link
Contributor

github-actions bot commented Dec 7, 2025

The generated examples/README.md is out of sync with the example metadata in Cargo.toml or the example readme template. Please run cargo run -p build-templated-pages -- update examples to update it, and commit the file change.

@blamelessgames blamelessgames deleted the visibility-for-retained-gizmos branch December 7, 2025 05:36
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.

2 participants