Repository navigation
32x32 region size support #1062
|
Hello.. I'm currently working on game with deformable terrain.. Is there a possibility that even smaller region sizes might be supported in near future? |
Replies: 6 comments 5 replies
|
I don't think there are any plans for this. What makes you believe that smaller region sizes would help your project? More detail about what you are doing, how you are doing it and what problem you are facing would help us help you. |
|
You can paint holes or edit the shader to null vertices outside your desired bounds in vertex(). |
|
from my understanding, when terrain collision is set to FULL-GAME, entire region collision must be updated to accodomate changes in terrain, the bigger the region, then slower it gets when there multiple changes . I don't need holes at all, I need just to change terrain elevation in certain spots (like making craters from strong weapons) It is possible to update only parts of a given region? |
|
Updating many regions every frame is going to be heavy. Making the regions smaller may just mean you are processing more regions. You could create a queue that updates just one or two 'dirty' regions per frame. |
|
I will try to make this system performant :) Anyway, thank you both, this plugin is very helpfull for me :) |
|
Sorry to bother again, I not doing another topic just for this.. hope it's allright.. I noticed something which I don't know if it's my drive detection or there is something within Terrain3D: when I cross region border, most of the time my vehicle jumps like there is certain gap there. I'm not sure what I doing wrong (plugin or my fault code, but works like a charm on any other terrain, either flat or complicated) |
You can make a custom build with a modified enum if you must have it.
The reason it's off the table for the main tree is because you don't even want 32m sized regions. You only want it for smaller collision shapes. A smaller region size is the wrong solution. Re-engineering collision is the right path.
It's not occurring across regions, which have nothing to do with physics, it's occurring across HeightmapShape3Ds, which happen to be region sized and aligned.
You can visualize the collision or audit the shape vertices and confirm there is no gap beca…