The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

0 votes

I am using this heightmap plugin to generate terrain.

The option of "Debug > visible collision shapes" in the editor doesn't show the heightmap collision shapes.

Is there is a way to make the heightmap collision visible while in game for debugging?

Godot version 3.3
in Engine by (20 points)

1 Answer

0 votes

This was answered by Zylann on github:

It is likely easy to implement naively, but it would completely destroy performance, because it basically means showing a wireframe version of the entire terrain without level of detail. So it might be ok for relatively small terrains from 512 to 1024, but starting from 2048 it might start to be really slow to load (there is a big wireframe mesh to make) and to render. Debug collision shapes is a global option, so if this was supported on terrains, it should at least be optional.

It is not available because so far I considered it kinda useless to display, considering that the shape basically matches the visuals at lod0 (it's not like having a capsule collider for a character where in this case it really helps), there is no particular difference apart from the Z-shape of triangles used by Bullet and the diamond shape used for rendering. It might get a bit more useful if we add the option to use half-resolution collision shape though.

Note, if you want this to troubleshoot collision issues by seeing how the collider looks like, a better way is not to rely on this, but instead use a more direct tool such as collision scanner. A wireframe mesh would not be able to detect known issues like this godotengine/godot#37337. There are also issues with Areas specifically which were not figured out yet (these are bugs of the engine, not the plugin).

by (20 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.