Hi there,
I'm using Polyvox since a few month on my project and I've been following this forum since then, seeking for all the good information it contains.
First, a quick word to say how glad I am to have found this great voxel library, considering all the time I saved on my project thank to it. So many thanks for all the good work!
Now, about my issue. I recently updated the version of Polyvox I use to the latest commit on the develop branch. I was using the sobel gradient for normals extraction in the marching cubes, so I had to retrieve it back from a previous version of MarchingCubesSurfaceExtractor.h to paste it into MarchingCubesSurfaceExtractor.inl, along side with the central difference gradient function.
But unfortunately, the resulting normals aren't the same as before and look terrible now.
Basically, the grass texture is on the Z (up) plane, and the soil texture on the others planes for my triplanar texturing.
This is how it used to look with my older version of polyvox:
http://www.hostingpics.net/viewer.php?id=981680beforesobel.pngAnd here is how it looks like now (only change being the Polyvox version used):
http://www.hostingpics.net/viewer.php?id=726236aftersobel.pngI looked at a detail where the normal seem to break, and it looks like some triangles don't use the right normal:
http://www.hostingpics.net/viewer.php?id=486003detail.pngOn the wire frame, we see that the tiny triangles seem to break the "smoothing":
http://www.hostingpics.net/viewer.php?id=655794detailwireframe.pngI looked at possible mistakes I could have made when doing my changes to use the sobel gradient, but found nothing at first glance.
Would you have an idea of what produced this change? I saw the marching cubes extractor has been refactored a lot so I suppose this is related.
Thanks in advance for the help!
Cheers,
Kishan.