Skip to content

DebugTilesPlugin: color leaf tile bounding volumes in white#1489

Open
diegomazala wants to merge 2 commits intoNASA-AMMOS:masterfrom
diegomazala:1488-leaf-bbox-white-color
Open

DebugTilesPlugin: color leaf tile bounding volumes in white#1489
diegomazala wants to merge 2 commits intoNASA-AMMOS:masterfrom
diegomazala:1488-leaf-bbox-white-color

Conversation

@diegomazala
Copy link

@diegomazala diegomazala commented Feb 28, 2026

Summary

  • Add white color coding for structural leaf tile bounding volume helpers (box, sphere, region) in DebugTilesPlugin
  • Non-leaf tiles retain their existing depth-based random colors
  • Introduces getBoundHelperColor(tile) used at creation time in _createBoundHelper(), avoiding per-frame overhead

Closes #1488

Test plan

  • npm run lint passes
  • npm test passes (594 tests)
  • Visual verification: load a tileset with DebugTilesPlugin enabled and displayBoxBounds: true
    • Leaf tile bounding volumes render in white
    • Non-leaf tile bounding volumes retain depth-based random colors
    • Parent bounds (displayParentBounds: true) show correct non-leaf colors with reduced opacity

Diego added 2 commits February 28, 2026 10:22
Extend _updateHelperMaterials() to set bounding box helper colors
based on structural leaf status: white for leaf tiles (no children),
depth-based random color for non-leaf tiles. Provides a clear visual
code for identifying leaves during debug visualization.

Closes NASA-AMMOS#1488
Add getBoundHelperColor() that returns white for structural leaf tiles
(no children) and depth-based random color for non-leaf tiles. Applied
at creation time in _createBoundHelper() for all bounding volume types
(box, sphere, region), avoiding unnecessary per-frame color updates.

Closes NASA-AMMOS#1488
@diegomazala diegomazala changed the title DebugTilesPlugin: color leaf tile bounding boxes in white DebugTilesPlugin: color leaf tile bounding volumes in white Feb 28, 2026
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.

DebugTilesPlugin: color leaf tile bounding boxes in white

1 participant