I am a fairly advanced programmer, and have gone on and done unity/3d design (hence the lengthy period of my abscence). Here is the problem:
I have a array (sorted by the members z coordinates), and use that to determine the draw order. it seems to work fine, other than I get this wierd anomaly while moving the cube around. Its not an error message, but it just looks wierd.
Here is the line in question:
here is the link to the game:
http://www.greenfoot.org/scenarios/11505
public GreenfootImage DrawSolid(GreenfootImage ImageToRender, ArrayList<Face> faces) { int i = 0; while (i < faces.size()) { //if visible (lower z = closest to camera) // A "Face" has several variable in it, already assgined // I need to Sort them by this very specific means: the AverageZ floating point variable ArrayListTools tools = new ArrayListTools(); faces = tools.SortFaceByVariable(faces); ImageToRender = drawFace(faces.get(i).getV1(), faces.get(i).getV2(), faces.get(i).getV3(), ImageToRender, faces.get(i).getCol()); i++; } return ImageToRender; }