How would I go about generating a mesh and textures based on a 3d array of lets say ushorts? The array determines the colour of the voxels.
I don’t know where to begin so any help is appreciated.
Thank you
How would I go about generating a mesh and textures based on a 3d array of lets say ushorts? The array determines the colour of the voxels.
I don’t know where to begin so any help is appreciated.
Thank you
Well texturing from that array is a kinda tricky, generating a mesh is not. There are numerous ways to go ahead with this like marching cubes, marching tetrahedra, dual contouring, but the one I personally recommend is is Transvoxel (transvoxel.org). Simpler, performant and awesome. It’s downside is that the only way I know (I can be wrong though) to texture is using a texture atlas and position UVs for every cell (voxel). If you have any questions feel free to ask me