How to fill a cube sphere with volume data?
I want to create a planet that is fully deformable all the way through like in space engineers. So far I have tinkered with using a signed distance field (i.e radius - sqrt(x^2 + y^2 + z^2)) and marching cubes to create a sphere, but I want to experiment with the cube sphere method due to the advantages gained in terms of chunking and LODs.
My way of going about this would be to create the vertices and triangles in 3d space, normalize the vertices, then use the signed distance field to generate 'solid' density values within the radius of the cube sphere. Then I would use marching cubes / any other voxel meshing algorithm to mesh around terrain that was destructed, on the fly. Would this be a sensible approach? Or is there a better way?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612222818im_/https://answers.unity.com/themes/thub/images/avi.jpg)