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

Documentation for nav mesh generation #144

Open
RuiOrey opened this issue Apr 6, 2022 · 9 comments
Open

Documentation for nav mesh generation #144

RuiOrey opened this issue Apr 6, 2022 · 9 comments
Labels

Comments

@RuiOrey
Copy link

RuiOrey commented Apr 6, 2022

Hi,
not sure if this has been addressed before but on the navmesh generation suggestion it uses blender 2.79.
Is there any suggested way to create it with a newer version of blender (without the game engine) or other software?
Thanks in advance!

@donmccurdy
Copy link
Owner

Yeah, this has become much harder since Blender removed the navmesh generation tools. I would use https://github.com/but0n/recastCLI.js but it is not as simple of a workflow.

@dirkk0
Copy link

dirkk0 commented Apr 8, 2022

Risking to get on everybodys nerves, I'd like to state (again) that creating a navmesh manually is easier than at least I thought and might be an option in some cases - actually in all cases I encountered.

@donmccurdy
Copy link
Owner

You're not wrong, and I'd use Blender myself here. But I also am not keen to provide user support for bugs resulting from bad topology (e.g. #142) that wouldn't have been a problem with Recast.

@RuiOrey
Copy link
Author

RuiOrey commented May 6, 2022

@dirkk0 can you give some lights on how you create the navmesh manually? Thanks!

@RuiOrey
Copy link
Author

RuiOrey commented May 6, 2022

For example, generated a navmesh using blender and has some issues with paths.

I attach a video illustrating the three-pathfinding behaviour and blender settings.

Gravacao.do.ecra.2022-05-05.as.20.42.35.mov

image

Any idea on how to improve this?
@donmccurdy do you think these issues would be solved with recastCLI? As suggested #144 (comment)

Thanks!

@dirkk0
Copy link

dirkk0 commented May 6, 2022

@RuiOrey what I see in your screencast looks like a canyon; you could now create a plane that loosely resembles the ground but doesn't need all of the polys that the original ground has. Then you export this as a navmesh. Since the navmesh is invisble, no one can see the difference between the optimised navmesh and the 'real' terrain.
Does this make sense?

@donmccurdy
Copy link
Owner

The pathfinding algorithm relies on having somewhat consistent triangle shapes/sizes, and the long thin triangles shown above will lead to weird paths. That hasn't been an issue with RecastCLI as far as I can see, but I don't know what your screenshot represents ... is that Recast from Blender 2.79? I would have expected it to work as well.

@RuiOrey
Copy link
Author

RuiOrey commented May 6, 2022

@dirkk0 is not a canyon, is something in another scale :). The screenshot represents a navmesh of an exposition area walking floor (center area) with a floor height difference (the 2 half moon shapes on the side) to the area where the exposition objects are. So basically they are flat surfaces in the real model. In fact the nav mesh seems to kind of tessalate the floor area...
About the invisibility yes when rendering the real one the navmesh is not visible.

@donmccurdy supposedly Watershed uses Recast.
image

@donmccurdy
Copy link
Owner

Related:

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

No branches or pull requests

3 participants