I’ve been playing around and learning for about a week having not done any 3D stuff before, and I think I now understand the basics of vertices/indices/normals - just about, and I’ve been playing with the various IsoSurface demos and libraries that the community has put out or recommended over the years, as well as the voxel libraries, as I’d like to implement various destructible surfaces
It’s helped me crystalize exactly what I want to work towards and taught me loads about JME internals that I needed to know but I haven’t actually had much success, between building old sources and trying to rip out isosurface functionality from demos and old threads, i’ve only been able to get block-based voxel stuff to actually render, none of the isosurface or Marching Cubes code that I have found has actually worked out for me so far, for various various reasons lol, it’s been a fun week though.
I have found this implementation of SurfaceNets:
The demo code work’s to output an object file, and looks great, if only I can get the in memory generation working - I’m wondering if this may be the simplest entry point for me to start prototyping with isosurfaces, the part that’s stumping me at the moment is how to get the appropriate values to build a JME mesh out of that SurfaceNets class.
I tried to follow [Solved] Simple Dynamic Mesh Example with JME3 - #3 by glitch83
But I am unable to make the leap in my mind between the Vertices/Faces exposed in the class and the data JME needs to build a mesh.
Can one of you 3D wizards please kindly point out the obvious stuff I am missing here? I would love to get this working and share it.