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"

NavMesh Invoker on Player instead of NPC

We have a large tiled world (20 km on a side) and want to use the Dynamic NavMesh.

The normal way is to add a NavMesh Invoker to the NPCs and then the area around them gets a NavMesh on-the-fly. And that works fine.

What we want to do is put the NavMEsh Invoker on the Player so the NavMesh area is only near the player.

This way with 4000 NPCs only the ones near the player are active and important so there is no wasted time on far away NavMesh generation.

When I add the NavMesh Invoker to a Player, it does not appear to work.

Any ideas how to get this working?

Product Version: UE 4.8
Tags:
more ▼

asked Jun 13 '15 at 02:55 AM in Using UE4

avatar image

SND R Keene
933 29 118 112

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

2 answers: sort voted first

On possible solution....

We put the invoker on every NPC but diable it and enable it.

Here is a test Blueprint that toggle s the enabled every 10 seconds. In the editor I can see the nav mesh appear and go away.alt text

more ▼

answered Jun 13 '15 at 03:44 AM

avatar image

SND R Keene
933 29 118 112

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

I actually tried to add the navmesh invoker on the player and it worked just like you expected. The reason I didn't use it because if there is no NPC around the player, the player still needs to generate navmesh around itself which is a waste.

One way I use to optimize the navmesh invoker is changing its TileGenerationRaidus at runtime based on its LOD. The lower LOD (0, 1) gets a large radius and the higher LOD (2, 3...) gets a smaller radius. I tested even the radius is 0, the NPC still generates navmesh in its current tile.

In order to do this, you need to expand the Navigation System which is in the engine code. I am not sure if it is possible to you.

Hopefully, helps.

Cheers.

more ▼

answered Oct 17 '17 at 03:14 PM

avatar image

YuchenMei
1 2 6

avatar image 伐伐酱 May 04 '18 at 08:38 AM

how can i move player with navmesh? i can't do that , i want in the area move my player,then out the area ,cant move the player

(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