Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve three debug helpers #165

Closed
Tracked by #318
isaac-mason opened this issue Sep 26, 2023 · 8 comments
Closed
Tracked by #318

Improve three debug helpers #165

isaac-mason opened this issue Sep 26, 2023 · 8 comments
Assignees
Labels
enhancement New feature or request three.js

Comments

@isaac-mason
Copy link
Owner

isaac-mason commented Sep 26, 2023

NavMeshHelper needs several improvements, it's not as useful as the visualisations in RecastDemo.

@isaac-mason isaac-mason added enhancement New feature or request three.js labels Sep 26, 2023
@isaac-mason
Copy link
Owner Author

isaac-mason commented Sep 26, 2023

Consider just implementing duDebugDraw and using recastnavigation's debugging utilities: https://github.com/recastnavigation/recastnavigation/blob/cd898904b72a300011fbb24d578620bafa08ef2c/DebugUtils/Include/DebugDraw.h#L34

@isaac-mason isaac-mason changed the title Improve NavMeshHelper Improve three helpers Sep 26, 2023
@isaac-mason isaac-mason changed the title Improve three helpers Improve three debug helpers Sep 26, 2023
@isaac-mason isaac-mason mentioned this issue Apr 10, 2024
6 tasks
@isaac-mason
Copy link
Owner Author

Some progress implementing duDebugDraw:

image

@isaac-mason
Copy link
Owner Author

@isaac-mason
Copy link
Owner Author

duDebugDrawRawContours

image

@isaac-mason
Copy link
Owner Author

@isaac-mason
Copy link
Owner Author

isaac-mason commented Apr 25, 2024

0.25.0 of recast-navigation/three has a new DebugDrawer class that supports:

  • Recast debug draw utilities:
    • debugDrawHeightfieldSolid
    • debugDrawHeightfieldWalkable
    • debugDrawCompactHeightfieldSolid
    • debugDrawCompactHeightfieldRegions
    • debugDrawCompactHeightfieldDistance
    • debugDrawHeightfieldLayer
    • debugDrawHeightfieldLayers
    • debugDrawRegionConnections
    • debugDrawRawContours
    • debugDrawContours
    • debugDrawPolyMesh
    • debugDrawPolyMeshDetail
  • Detour debug draw utilities:
    • debugDrawNavMesh
    • debugDrawNavMeshWithClosedList
    • debugDrawNavMeshNodes
    • debugDrawNavMeshBVTree
    • debugDrawNavMeshPortals
    • debugDrawNavMeshPolysWithFlags
    • debugDrawNavMeshPoly

Still a WIP - some TileCache methods need to be exposed to support visualising TIleCache intermediates.

Creating debug drawer implementations for other graphics libraries is doable, but there's some opportunities to make it more straightforward.

@isaac-mason isaac-mason self-assigned this Apr 25, 2024
@GGAlanSmithee
Copy link
Contributor

duDebugDrawRawContours

image

this is amazing!

@isaac-mason
Copy link
Owner Author

The debug helpers can still use more improvement, and TileCache helpers should get exposed but the helpers released in v0.25.0 were a huge leap forward.

Closing this issue and opening a new one for TileCache helpers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request three.js
Projects
None yet
Development

No branches or pull requests

2 participants