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

Navmesh representation #13

Closed
mimooh opened this issue Jun 13, 2018 · 7 comments
Closed

Navmesh representation #13

mimooh opened this issue Jun 13, 2018 · 7 comments
Assignees

Comments

@mimooh
Copy link

mimooh commented Jun 13, 2018

"This library does not build navigation meshes for you — instead, create a navigation mesh using Blender, Recast (CLI), or another tool."

I'd say that the original Recast writes the output to some binary structure which is more than just geometry. I don't expect it's that easy to just extract the geometry into the .gltf. The question is: are you sure of what you state above, I mean the Recast part? I am not commenting Blender or CLI outputs.

@donmccurdy
Copy link
Owner

Hi! Recast can write to a binary structure, as you mention, and currently this library does not support that. But fortunately Recast can also be used to extract geometry from the navigation mesh and write that to an OBJ. I've been using https://github.com/but0n/recastcli.js to do this in Node.js.

@mimooh
Copy link
Author

mimooh commented Jun 13, 2018 via email

@donmccurdy
Copy link
Owner

I'm not aware that https://github.com/recastnavigation/recastnavigation has any one correct output style... it can write the binary navigation mesh, or a tiled navigation mesh, or simple geometry... perhaps using it for geometry is less common? I'd welcome suggestions in the docs if you think the docs could be better — I've tried to be specific (The library accepts a THREE.Geometry instance) about the current need for raw geometry.

@donmccurdy
Copy link
Owner

About recastcli I assume you mean this issue? but0n/recastCLI.js#11

FWIW I have a slightly older version of the package published to NPM which works for me:

@mimooh
Copy link
Author

mimooh commented Jun 13, 2018 via email

@mimooh
Copy link
Author

mimooh commented Jun 13, 2018 via email

@donmccurdy
Copy link
Owner

Added more documentation in 070b48c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants