ProceduralDungeon icon indicating copy to clipboard operation
ProceduralDungeon copied to clipboard

Destroy Navmesh

Open Acroviu opened this issue 2 years ago • 9 comments

Hi, I send you this problem on youtube, but I think it's easier to understand it after watching the pictures.

The Navmesh is in the persistent level and also in the level stream. It seems like the plugin its eating it up. image

But if I make the Navmesh bigger it spawn correctly on top of the level image

https://user-images.githubusercontent.com/31868722/130311562-1ce54a00-1e33-4d1c-96c1-b7e686cc6b29.mp4

It's like there's some reminiscence of information on the persistence level of the fail spawns.

Acroviu avatar Aug 21 '21 05:08 Acroviu

Hi Acroviu,

Thank you for taking the time to explain your issue :)

The Navmesh should be rebuilt at the end of the generation, so the previous navmesh is replaced with a new one. Indeed, In a 4.26 project, the navmesh is not rebuild correctly, I will investigate that... (Maybe I forgot some settings to change for the Navmesh)

Also, I don't understand what you want are meaning by a "bigger" navmesh ?

BenPyton avatar Aug 21 '21 18:08 BenPyton

Did you have the navmesh rebuild set to dynamic in the project settings ? image

BenPyton avatar Aug 21 '21 19:08 BenPyton

Hi Acroviu,

Thank you for taking the time to explain your issue :)

The Navmesh should be rebuilt at the end of the generation, so the previous navmesh is replaced with a new one. Indeed, In a 4.26 project, the navmesh is not rebuilding correctly, I will investigate that... (Maybe I forgot some settings to change for the Navmesh)

Also, I don't understand what you want are meaning by a "bigger" navmesh?

Sorry for the vague term "bigger". I make my z Scale bigger and that is when the navmesh spawns on the ceiling.

image

and the navmesh is on "Movable" I found a way around the problem by adding a plane 100 points above Z and the navmesh spawns just fine. It seems it's only affecting the surface of the box brush in that specific Z-axis spawn point. I don't even need to use the execute console command rebuild navmesh to make it work.

I hope this is helpful.

Acroviu avatar Aug 21 '21 23:08 Acroviu

Sorry, I think I don't understand correctly what you are saying... ^^"

From your video, it seems you have a plane in your persistent level on wich the navmesh build on, what is the reason for that ? Also, do you really need the navmesh to spawn on movable ? Generally, Navmesh are on static meshes, and the movables are set as obstacles (retriggering the build of only one chunk of the navmesh)

I tested on a sample project, and I have no issue with the navmesh generation (I don't have a plane with the navmesh in my persistant level, and the grounds of my rooms are set to static) so it seems there some settings in your project that produce this issue. If you can share with me a minimal project to allow me reproduce your issue (or share with me your project if you can't create a minimal project, and if you can share it with me, and if not too big, max 500 MB) I will be able to investigate further your issue.

What I can say to you for sure, is that hte navmesh is forced to rebuild at the end of the generation (similar to executing the console command "Rebuild Navigation")

Also, sorry but I have not much experience with navmesh in Unreal... So I can't help you much more with the settings...

BenPyton avatar Aug 24 '21 09:08 BenPyton

Place in each level Nav Mesh Bounds Volume. Use in project settings Runtime Generation - Dynamic Add in your pawn and AI pawn NavigationInvoker component. 333 111 222

gradusgl avatar Aug 29 '21 15:08 gradusgl

Sorry, I think I don't understand correctly what you are saying... ^^"

From your video, it seems you have a plane in your persistent level on wich the navmesh build on, what is the reason for that ? Also, do you really need the navmesh to spawn on movable ? Generally, Navmesh are on static meshes, and the movables are set as obstacles (retriggering the build of only one chunk of the navmesh)

I tested on a sample project, and I have no issue with the navmesh generation (I don't have a plane with the navmesh in my persistant level, and the grounds of my rooms are set to static) so it seems there some settings in your project that produce this issue. If you can share with me a minimal project to allow me reproduce your issue (or share with me your project if you can't create a minimal project, and if you can share it with me, and if not too big, max 500 MB) I will be able to investigate further your issue.

What I can say to you for sure, is that hte navmesh is forced to rebuild at the end of the generation (similar to executing the console command "Rebuild Navigation")

Also, sorry but I have not much experience with navmesh in Unreal... So I can't help you much more with the settings...

I try both methods, adding a navmesh on the persistence level and also in the individual streaming levels. I make it movable because if not, the navmesh would not spawn in the area it needs to be. It doesn't rotate according to the level spawning direction on the persistence level.

Thank you for trying it out, I needed to know if it was something with the plug-in or with my project. My file is bigger than 500 MB but I think I can try different things now that I know it's my project the one creating the issue. Thank your response!

Acroviu avatar Sep 04 '21 07:09 Acroviu

Place in each level Nav Mesh Bounds Volume. Use in project settings Runtime Generation - Dynamic Add in your pawn and AI pawn NavigationInvoker component. 333 111 222

Thank you, I try the invokers but it's the same result. I need to investigate what is creating the issue.

Acroviu avatar Sep 04 '21 07:09 Acroviu

Sorry for not being able to help you more... I hope you'll fix your issue :) In that case, can you consider sharing your fix here ? So I can add it in the wiki of the plugin ;)

BenPyton avatar Sep 04 '21 09:09 BenPyton

Sorry for not being able to help you more... I hope you'll fix your issue :) In that case, can you consider sharing your fix here ? So I can add it in the wiki of the plugin ;)

No worries, letting me know the plug-in is not the problem it's helpful enough! For sure, ill share it when I find the issue

Acroviu avatar Sep 04 '21 17:09 Acroviu