Log in or register to post comments

NavMesh does not work well in MultiArea

March 11, 2021 - 8:01pm #1

Hi I have separated scan areas and they're all under the parent of MultiArea (Attached with MultiArea.cs provided by Vuforia).

I have baked the nav mesh, but when I use NavMesh agent to move to destination, from one room (AreaTarget-1) to another room (AreaTarget-2), the nav mesh is not consistent and would disappear in AreaTarget2. Works well in editor but not in build. Navmesh and agent have no issue in same AreaTarget.

Q: How to make the separated/unified navmesh consistently stay in position, while pointing my camera from one area target, to another area target?

This is my problem captured in video:

1. I have tried Worle Centre mode to FIRST_TARGED and DEVICE but no luck.

2. Rebake the navmesh in runtime won't solve my issue.

3. Separate the NavMeshSurface in each Area Targets is not working as well. It seems that the Nav Mesh is baked universally in the scene (By looking at my video, when nav mesh is shown, it is including the nav mesh of another area target).

I've been tried to achieve this result for weeks. I'm gonna try on baking the navmesh on plane or similar method...

Thank you.

NavMesh does not work well in MultiArea

June 24, 2021 - 7:05am #6

Hey ! Thanks a lot !

What do you mean with "For linking two area targets, put NavMeshLink object (under its Area targets parent) each in the same spot." ? I don't get that part

NavMesh does not work well in MultiArea

June 24, 2021 - 6:45am #5

Hey ! Thanks a lot !

What do you mean with "For linking two area targets, put NavMeshLink object (under its Area targets parent) each in the same spot." ? I don't get that part

NavMesh does not work well in MultiArea

April 29, 2021 - 11:29pm #4

Works best under that activated targeted area parent. Man vuforia is so powerful and so ahead compared to many tools out there even Unity MARS..

NavMesh does not work well in MultiArea

April 23, 2021 - 1:03pm #3

where do you suppose to put you navmeshAgent, under you vuforia cam and change the mode to device?

NavMesh does not work well in MultiArea

March 29, 2021 - 9:00am #2

Alright. After two weeks I've managed to do it. I'm posting my own answer to my own question.

1. Use "extended" Unity NavMeshComponents - NavMeshSurface to bake the Nav Mesh in runtime.

2. Use Word Centre Mode to Device.

3. For linking two area targets, put NavMeshLink object (under its Area targets parent) each in the same spot.

4. Calculate nav path from origin to destination is here.

5. Display navigation line answer is here.



Extra: You would want to have this in development work: Show Nav Mesh in runtime.

Happy coding. 

Log in or register to post comments