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

[Help] How can I get the indices of the generated navmesh? #18

Closed
Doprez opened this issue Nov 12, 2023 · 2 comments
Closed

[Help] How can I get the indices of the generated navmesh? #18

Doprez opened this issue Nov 12, 2023 · 2 comments

Comments

@Doprez
Copy link
Contributor

Doprez commented Nov 12, 2023

I am finally working on integrating this into Stride3d and I am having trouble actually generating the mesh for debugging purposes.

As far as I can tell in your demos for Unity the methods used only require that the vertices are provided as far as I understand it. in the Unity example I see you are generating per poly but in my generated mesh some poly data has more than 3 points depending on the tile.

I didnt realize DrawAAConvexPolygon was for drawing an arrow not the poly mesh.

image

In the code above you can see one of the polys has 24 verts or 8 Vector3 points. am I just meant to try and make my own indices or is there a way to get that data from the navmesh?

@GabrielMotaAlexandre
Copy link
Contributor

Isn't it detailTris?

@Doprez
Copy link
Contributor Author

Doprez commented Dec 14, 2023

I took a break to work on some other things. I will give this a try soon as I am back to working on it.

I think the issue I had with detailTris is some of the data was wrong? there were indices that had a value of 700+ when the mesh was well below 100 vertices so it cause issues. Ill try again to make sure I didnt miss something, thank you!

@Doprez Doprez closed this as completed Dec 18, 2023
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