Dear flashers,

I have studied the 3d articles from renderhjs, kirupa and some others (serveral times )
but i just cant get the depth sort to work proper

what i do now:
1 - create camera
2 - create models: only sets needed vars
3 - add onEnterFrame that loops all models and adds the faces to 1 global face array
4 - that faces array get sorted
5 - drawing the models

sample

source zipped

srcView

I hoped someone could help me with this and give a explanation what i did wrong (i know my problem is math.cos and math.sin because i just not fully understand the mechanics behind those functions what is my missing link in creating my own get2d)

Regards,

MasterX

PS: i do know that my code maybe isnt that fast or perfect but i am only focussing on the depth sorting ( i will optimize/use proper methods when i fully understands whats wrong with it now )