View Single Post
Old 29-Mar-2007, 02:45 AM   #1 (permalink)
Iphone
Fixed Error!
 
Iphone's Avatar

Posts: 4,202
Join Date: Mar 2007
Rep Power: 6 Iphone is on a distinguished road

IM:
Default Isometrics Graphics - Engine Layers Position , how to work out layers, which objects

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
Iphone is offline   Reply With Quote