-
-
Notifications
You must be signed in to change notification settings - Fork 249
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
VoxelModifier preview mesh has gaps with smoothness #654
Comments
I believe this is happening purely because of the generator. The flat generator fills space with gradients up to a certain distance to ground. Beyond that, it sets it to uniform far SDF as an optimization. But that means if you use large smoothness factors in modifiers, chunks that lie in the area that's been "optimized out" by the generator will not "blobify" the same way as in areas that have accurate SDF, because gradients dont extend that far. If you wanted this to work at any distance, that optimization just can't happen. Note that the same issue could happen with different generators doing the same trick. You'd have to calculate full SDF everywhere if you want smoothness to cause shapes to "connect" through arbitrary distances. |
I see, that makes sense. |
Added in 30d6b73 |
Describe the bug
VoxelModifier (this includes VoxelModifierMesh and VoxelModifierSphere) preview mesh starts to have gaps with high enough smoothness.
Image that shows gaps in mesh:
To Reproduce
Steps to reproduce the behavior:
VoxelLodTerrain
and addVoxelGeneratorFlat
generator.VoxelLodTerrain
addVoxelModifierSphere
.VoxelModifierSphere
's radius=30 and smoothness=40.Expected behavior
Preview mesh should not have any gaps in the mesh.
Environment
MRP
Test VoxelModifier mesh gaps.zip
The text was updated successfully, but these errors were encountered: