I have played with my voxel engine in flash for a while. (http://www.jonof.id.au/forum/index.php?topic=1954.0) One problem of my engine is the low resolution (256*192) which make the screen likes "mosaicy". I think it's time for some shading.
Suppose the voxel data array is voxel[256][256][256], 1.Is there any fast way to get the normal vector for each voxel? 2.And distance falloff? How do you do it? I simple use this way: falloff=1-distance/100.0; cr*=falloff;//red cg*=falloff;//green cb*=falloff;//blue I don't know whether there is something better.
3.And what about cartoon shading voxels, anyone tried? (http://pages.cs.wisc.edu/~nowak/779/779ClassProject.html) Can it be a good solution to make the output like pretty/better?