Hello Experts : )
I'm currently trying to program an isometrics engine, in Java2d and i need some help,
with how objects are layered.
Eg. which 2d pictures (that look 3d from the way they're drawn because of the isometrics) should be drawn infront of which other 2d pictures depending on there position, to give the illusion of 3d-ness.
I've got a good sorting algorith that will sort an Array List according to a certain value, this can be wasily edited and stuff.
I'm not sure how to do this, atfirst and naively i thought that it would be correct just to order the list from which all the images were drawn by a sorting the objects in the draw list according to there Y coordinate position on screen, but when i got longer objects, the layering wasn't working properly, so i'm not sure how to do it, so any advice would be very nice.
Thank you : )
Start Free Trial