Category: Sin categoría

  • Voxelization & Distance Fields from Meshes in WebGL

    Voxelization & Distance Fields from Meshes in WebGL

    The demo can be seen at: https://hectorarellanodev.github.io/WebGLVoxelizer/ Calculating the distance field of a mesh in real time can be done using the jump flood algorithm (more information in this post: https://blog.demofox.org/2016/02/29/fast-voronoi-diagrams-and-distance-dield-textures-on-the-gpu-with-the-jump-flooding-algorithm/), the idea is to calculate the initial seeds for the jump flood passes voxelizing the geometry, then the jump flood is used to obtain…