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"

How to update navmesh according to a moving NavMeshBoundsVolume ?

Hello World ^^

I working on UE 4.5.1, I'm building a game which generates levels with some square tiles (Static Mesh). This tiles collection is endless and generated according to my player location. I actually have a NavMeshBoundsVolume set at the world origin in my scene (it is put to movable in its parameters). This NavMeshBoundsVolume also create a raycastnav mesh that I set on 'rebuild at runtime'. With a blueprint I update the NavMeshBoundsVolume position to the player location.

It can maybe be easy to understand that by following those illustrations :

alt text

alt text

And the view of the blueprint that link navmesh/player position :

alt text

I need to have an updated navmesh that works all this tiles. Due to my endless level, I want to avoid expanding the NavMeshBoundsVolume to a large scale value. So my goal in this case is to having a navmesh that don't exceed a 5X*5Y tiles size > 20000X*20000Y (Each tile have a size of 4000x4000).

Is it possible to recalculate the navmesh according to the moving player location in real time ?

Many Thanks.

Product Version: Not Selected
Tags:
navmesh-05.png (20.5 kB)
navmesh-06.png (16.7 kB)
bp_navmesh.png (127.0 kB)
more ▼

asked Nov 13 '14 at 03:59 PM in Using UE4

avatar image

PierreMaux
28 8 10 64

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

I was about to answer that you should try calling NavigationSystem.OnNavigationBoundsUpdated after moving your NavMeshBoundsVolume, but realized there's not way to get your hands on NavigationSystem's instance in blueprints. I'll fix, but it won't make it to UE4 4.6 version.

So, hack around it for now. Console command RebuildNavigation might help though I'm not sure if it will update navigation bounds.

Cheers,

--mieszko

more ▼

answered Nov 16 '14 at 02:03 AM

avatar image

MieszkoZ STAFF
7.3k 223 56 410

(comments are locked)
10|2000 characters needed characters left

I've tried some experiences around the Console command 'RebuildNavigation', but nothing seems to be really updated using only this command. The only way i've found to deal with my problem is to make a Class variable of type 'NavMeshBoundsVolume' and create a new instance of it using the 'SpawnActor' function.

alt text

This method using with 'RebuildNavigation' seems to update the NavMeshBoundsVolume's location... the calculated navmesh is a little bit messy but it's maybe a starting solution in order to find a better one with this problem.

Thank you and I will follow closely about this point in the next engine's updates.

navclass.png (20.7 kB)
more ▼

answered Dec 02 '14 at 04:59 PM

avatar image

PierreMaux
28 8 10 64

(comments are locked)
10|2000 characters needed characters left
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