Sight not working everywhere

Spotted strange perception issue - sight isnt working when getting few miles away from the map center (landscape is made around the third person example). When using gameplay debug tool I can notice that only hearing is working. Sight isnt reqistered at all (no balls). I can walk in front of the AI actor but it can only hear me. Not having the issue nearer the map center.

Hello,

Are you ensuring that you have your sight radius in your Perception Component set to a high enough value to be able to function at that distance?
If so, could you provide a zipped up copy of your project so that I can take a look at your setup and attempt to figure out what could be causing the issue? Thank you.

Hi,

yes tested with values between 3000-5000. And sight works properly near center of the map. But it stops working already when moving around 1km away from the center. Cant zip the Project since its around 60gb but made a video of the issue. You can see first the AI that have sight not working and close to end I have moved more near to map center (around 0,4km away from it) and sight again works for identical AI actor (all are spawned). Sight always work near the map center and never when getting over the unknown range.

Edit: Sense setting: sight 3000, loose 3500, peripheral 120, detect true for all 3, auto suc -1, max age 10 (also tested with 0), starts enabled true. And dominant sense is also AISense_Sight

Hello,

I’ve done some additional testing with a large landscape, and even after being over 900,000 cm away from the center of the map, I was still able to detect sight on the player character.
Are you sure that your AI is not registering perception? Is it possible that the AI is actually registering sight, but is just not moving because the NavMesh isn’t built in that particular area of the map, or it fails to extend past a certain point in your level?

Very strange. The AI definitely have sight registered, but the debug balls dont show (and onperceptionupdated isnt updating for sight). Noticing now there is green line following the sight targets when in “view range”, but it goes through the player and never display the ball. Could be the ball is trieing to be made with wrong distance factor.

Is the sight connected to navmesh? Using dynamic navmesh that is generated around invokers (also tried with dynamic setting). Player and all AI actor have the NavigationInvoker-component and set to 3000-5000.

- YouTube in one location the world direction matter if there sight or not. :S I will try to do much testing if would find something.

Could you provide images of your setup for your sight perception please? Meaning the blueprint where OnPerceptionUpdated is called as well as the setup of the AIPerception Component, and anything else that you have that relates to your Perception setup. Thank you.

Sure, here. Thanks for helping with this. :slight_smile: I have no idea why dosent work. Also tried that the get actors perception is reached in any case (skipping the conditions), but no change. There have been strange note in onPerceptionUpdated for few last official builds if its related. Still it works normally near the center of the map.

Edit: Detection By Affiliation is set true for all three. Forgot to make it visible in pics.

With the information you have provided, I haven’t been able to reproduce the issue. Are you able to reproduce this issue in a new project?

I found out what is causing it - procedural foliage volumes. Landscape areas that are inside that volume block that sight to work. :slight_smile:

I’m facing the same issue. How to have procedural foliage volumes and still detect using sight ?
Please help.

You can change the volumesize after generating the foliage. I think also move it away e.g. under landscape.