Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NavigationRegion3D generates inexplicable hole at (0,0,0) against HeightMapShape3D with values at -0.5 to -1.75... #80509

Closed
Dabnabbit opened this issue Aug 11, 2023 · 1 comment · Fixed by #83783

Comments

@Dabnabbit
Copy link

Dabnabbit commented Aug 11, 2023

Godot version

4.1.1 Stable

System information

Windows 11, RTX 3070TI, Vulcan

Issue description

NavigationRegion3D generates inexplicable hole at (0,0,0) against HeightMapShape3D with values at -0.5 to -1.75

Not sure how this hasn't been noticed before, but the NavigationMeshRegion3D bakes a single square unit size hole at (0,0,0) against HeightMapShape3D if it is using values between -0.5 and -1.75... I have attached a MRP that is very easy to use and demonstrate the error happening.

Steps to reproduce

Create a HeightMapShape3D, set values between -0.5 and -1.75, bake NavigationRegion3D mesh on it. Observe hole in mesh at (0,0,0).

In MRP with the "main" node selected, you can adjust the "height_map_value" export variable to move a dynamically generated heightmapshape3d up and down, the script will automatically rebake the navmesh when the value is changed. When values are between -0.5 and -1.75 a hole will appear at (0,0,0)

MRP_NavMeshHole.zip
image

Minimal reproduction project

In MRP with the "main" node selected, you can adjust the "height_map_value" export variable to move a dynamically generated heightmapshape3d up and down, the script will automatically rebake the navmesh when the value is changed. When values are between -0.5 and -1.75 a hole will appear at (0,0,0)

@Dabnabbit Dabnabbit changed the title NavigationRegion3D generates inexplicable hole at (0,0,0) against HeightMapShape3D with values at -1.5 to -1.75... NavigationRegion3D generates inexplicable hole at (0,0,0) against HeightMapShape3D with values at -0.5 to -1.75... Aug 11, 2023
@Calinou
Copy link
Member

Calinou commented Aug 11, 2023

I can confirm this on 4.2.dev 16a9356 (Linux).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants