I have already prepared the skeleton and skin. I am currently studying OpenGL. I want to know how I can remove the iso-surface of the skeleton and skin and make the skeleton visible under translucent skin.
How to set two thresholds for the skeleton and skin and remove isosurface when scanning voxels from the back? Once a voxel is found that crosses the threshold, I can calculate the normal vector with a finite difference.
Finally, I can calculate the color with diffuse reflection: N * (0, 0, 1), where N is the normal vector, * is the point product, and (0,0,1) is the vector to the camera. Mix the color of the skeleton and skin to the skeleton appeared behind translucent skin. I know this idea, but I donโt know how to implement it in C ++ and OpenGL.
source share