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

generate a navmesh from an heightfield #22

Open
mockersf opened this issue Jan 29, 2023 · 2 comments
Open

generate a navmesh from an heightfield #22

mockersf opened this issue Jan 29, 2023 · 2 comments

Comments

@mockersf
Copy link
Member

possible solution from recast: steps 3 to 5 of https://9631ec60-a-62cb3a1a-s-sites.googlegroups.com/site/recastnavigation/MikkoMononen_RecastSlides.pdf

  • watershed partitioning to find regions
  • contour the regions to get polygons
  • triangulate the polygons to get a trimesh
@Elabajaba
Copy link
Contributor

Elabajaba commented Aug 21, 2024

The recast slides linked aren't working for me, but here's an alternative algorithm.

Fast Polygonal Approximation of
Terrains and Height Fields
Michael Garland and Paul S. Heckbert
September 19, 1995
CMU-CS-95-181
https://www.cs.cmu.edu/%7Egarland/scape/scape.pdf

Implementations:
https://github.com/fogleman/hmm (MIT)
https://github.com/mapbox/delatin (ISC, based on hmm)

@mockersf
Copy link
Member Author

mockersf commented Sep 6, 2024

Thanks!

I had a local copy of the slides, here they are: MikkoMononen_RecastSlides.pdf

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

No branches or pull requests

2 participants