'Get Instances Overlapping Box' doesn't work

Get Instances Overlapping Box doesn’t return any instances, even if it’s set to really big box, like Min = (-100k, -100k, -100k) Max = (100k, 100k, 100k).

I’ve tested it with hierarchical instanced static meshes (foliage component).
‘Get Instances Overlapping Sphere’ works fine in the same conditions (it detects the instances), so it must be a bug.

( How to get foliage component in game: Get All Actors of Class (InstancedFoliageActor) → ForEach → getComponentsByClass(Foliage Instanced Static Mesh Component) )

Looks like Overlapping Sphere node also has problems, it misses many instances: https://answers.unrealengine.com/questions/368462/instancedstaticmesh-overlapping-sphere-misses-inst.html

Hi Slavq,

  • Does this occur in a clean, blank project with no additional content or is it limited to one project?
  • What steps can I take to reproduce this on my end?
  • Is this limited to foliage actors or does it occur on instanced meshes/hierarchical instance meshes as well?
  • Can you show me a screenshot of how you are setting this up for use?

Sure, I’ve made a repro demo project here:

Box Overlap Bug Repro Demo Project

Just press play to see the bugged logic. The ‘OverlapTester’ blueprint does it, it’s in the main folder.

… + regarding Sphere Overlap, it seems like it’s bugged on 4.12 but fixed on 4.13. I’ve made two projects, one for 4.12 which presents bugged sphere overlap (not all instances are detected & removed) and one for 4.13 which presents properly working sphere overlap (all instances detected & removed)

4.12 Sphere Overlap - bugged

4.13 Sphere Overlap - fixed

For all projects, just press Play to see the bugged logic in action.

Thank you for submitting a bug report. I have reproduced this issue and logged a report for it here. You can track the report’s status as the issue is reviewed by our development staff.

Thanks. I see that the bug is marked as ‘Duplicate’, is this correct?

Hi Slavq,

There was a bit of miscommunication on the backend of this one. I’ve gotten it sorted out and it is back to unresolved. Please keep an eye on it for the reports future updates. Thanks!

Hello,

In release notes of 4.13 I see that

Updated “Remove Instances” on a
Hierarchical Instanced Static Mesh
Component to now properly rebuild the
cluster tree, allowing “Get Instances
Overlapping Box” to return correct
results.

But the issue is still marked as Backlogged, sadly… But is it correct? Is the ‘Get Instances Overlapping Box’ really fixed?

Hi Slavq,

I tested this to be sure. The backlog is correct, the box overlap is not yet fixed. Once a fix has been implemented, the public bug tracker will update to reflect this.

Hi, this has just been fixed for 4.15. If you’re using the source code, the change is available on github here:

https://github.com/EpicGames/UnrealEngine/commit/29fca7a767f61025bcd8ad0f3f346c68ba6af6b0

this problem still exists in 4.17.2. At least in my project

I can confirm that the problem is still occuring with 4.18.2 with Get Instance Overlaping Sphere.