Comments (4)
Once again I can't really tell you what this exactly is, because the Godot 3 version is old, and Godot 3 is old too, and I stopped working on that version years ago. I could maybe check this if you see it happen in the current version in Godot 4.
I vaguely remember that there has been a fix that was done at some point where collision was a bit off. I don't remember what it was though, or when. But there could be many other causes I don't even have time to list.
Looking at your screenshot, I fail to distinguish what kind of mismatch you are having. Just the camera clipping with ground?
Another 2 things to keep in mind, is that terrain visuals have LOD, but the collider doesn't. So it won't perfectly match the further away you look. Also, visuals use a diamond-shaped triangles topology, while I believe Bullet/GodotPhysics seem to be using zig-zag triangles (so half of the quads have flipped triangles), so you can't really expect an absolutely perfect match. This is usually not much of a problem though, and you might only be able to see that if you use a very scaled up terrain with large triangles maybe.
from godot_heightmap_plugin.
I made a short video, maybe it helps to see the problem: https://youtu.be/j8OOqpq9-1Q
I do know that I can't expect support for an old version, so I'm really thankful for any hint you give me!
from godot_heightmap_plugin.
If I understand the video correctly, your character is extremely small and walks on a terrain with very big triangles?
If so, then I suspect the discrepancy is simply the choice of geometry for rendering it:
visuals use a diamond-shaped triangles topology, while I believe Bullet/GodotPhysics seem to be using zig-zag triangles (so half of the quads have flipped triangles)
In your video the character is so small and terrain triangles are so big that it probably becomes noticeable. It's just designed that way, and wasn't intented for extreme situations like this one.
If you still want such big triangles and such small player in your game, here is the place where visual triangles are flipped (in the master version, but I think it's roughly the same in yours):
from godot_heightmap_plugin.
I got it fixed by setting every triangle to flipped. Thx for the hint!
from godot_heightmap_plugin.
Related Issues (20)
- godot 4.3.dev5 error on active HOT 2
- godot4.3.dev5 headless profile not good HOT 3
- Single line of pixels on top of detail texture HOT 3
- How to determine height at a specific location HOT 2
- How can I set smooth texture transitions using Classic4/Lite shader by code? HOT 2
- Terrain scene will not load HOT 5
- How can I change the texture scale on the terrain? HOT 4
- How to correctly credit you? HOT 1
- How can I add detail layer at runtime using GDScript? HOT 3
- Strange square and contour artifacts in imported terrain HOT 7
- HTerrainDetailedLayer issues using centered maps HOT 3
- Tangent error in shader HOT 15
- How to get Multisplat16 working in procedural generation? HOT 3
- Allow showing CollisionShapes3D inside a StaticBody3D in the Editor for Dreadpon's Godot Spatial Gardener and maybe others to work with the plugin HOT 2
- Grass continues after the terrain and don't know why HOT 6
- mesh export is not same collide with the hterrain HOT 13
- Can't Texture Paint HOT 5
- Is it possible to create infinite procedural generated terrain? HOT 1
- texture can not paint second one HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from godot_heightmap_plugin.