Hey all,
I was trying to fix the z-sorting problems in my collada model. My model is a house, and every element is imported as a mesh. To get the materials on the model i loop through the meshes and assign the appropriate material to all the faces of each mesh.
to try and fix the z-sorting i tried different things. The “CORRECT_Z_ORDER” and “INTERSECTING_OBJECTS” render methods are a no go because then everything just goes toooo slow. So i gave every mesh it’s own canvas.
mesh.ownCanvas = true;
The result is that every element looks very good when rendered. But the thing is that the front of my model now is see through and you look at the inside of the back wall. When i rotate the model it stays like this.
I tried several things but i can’t pinpoint where to fix this strange behavior. Does anyone have a clue how to fix this?
Thanks in advance everyone.