x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Navigation mesh not generating correctly

alt text

Hi fellow unreal users :D

i just got wondered that if unreal can handle a bunch of Nav Modifiers or Nav Links which spawn during run-time. so i have get in to the test, and make a simple blueprint actor that using 'instanced static mesh component' to spawn tile grid floor, then spawn random nav-modifier just above that tile (while red one is Area-Obstacle, green one is Area-Default).

but before i even try to spawn 100*100 (pic is 50*50), i just faced a problem. which nav mesh doesn't generate the way i expected :/

and, for detailed info, i marked the size of nav bound volume by Cylinder mesh.

so as you can see in the picture, nav bound is big enough to cover most of 'dynamically spawned 50*50 size tile grid'. and as generated nav mesh shows, i also set 'dynamic nav mesh generation' option thing to 'true'.

i just don't get it why it only generates a small bit of grid.

thanks for read, and hope all of you have a nice day :D

Product Version: UE 4.21
Tags:
navquestion0.png (802.1 kB)
more ▼

asked Jan 29 '19 at 08:53 AM in Using UE4

avatar image

hhm1573
9 2 2 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

ok so i finally find an answer.

alt text

first of all, here is a post by who had same problem like me. https://answers.unrealengine.com/questions/173787/navmesh-not-generating-over-instanced-static-meshe.html

seems like there is some problem about "navigation mesh generation system". i Guess it is possible that 'Add instance' in instanced static mesh component doesn't tell Navigation Bound Volume to regenerate navigation mesh. So, you need to tell Navigation Bound Volume to recast nav mesh.

So long story short, i discovered that if you press F8 during play you can edit map like edit mode. so i use that, move my instanced static mesh component a little then that makes recasting work begin, and i have got a full navigation mesh.

there is some ways to make actor to tell nav system to recast nav mesh. but i couldn't find any way to rebuild nav mesh only by blueprint.

So, Long story short, you need to trigger engine to rebuild navigation mesh by moving an actor or execute some functions on C++.

more ▼

answered Feb 01 '19 at 02:35 PM

avatar image

hhm1573
9 2 2 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question