# Isometry z-sorting problem

**URL:** https://forum.kirupa.com/t/isometry-z-sorting-problem/244422
**Category:** flash
**Created:** [November 17, 2007, 8:50pm UTC](https://forum.kirupa.com/t/isometry-z-sorting-problem/244422 "2007-11-17T20:50:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Stiakooo](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@Stiakooo](https://forum.kirupa.com/u/Stiakooo)
#### Post date: [November 17, 2007, 8:50pm UTC](https://forum.kirupa.com/t/isometry-z-sorting-problem/244422/1 "2007-11-17T20:50:29Z")

</div>

Hello  
I’m working on a flash application for bath design.  
The user can set the dimensions of the bathroom and add different types of bath furniture on a 2d plane. After that the user can see the design in an isometric view.  
I did most of the work and the application is almost ready but I have some troubles with z-sorting in the isometric view.  
I know how to z-sort all products. I’m using something like this (from a Senocular’s tutorial):

```auto
this.swapDepths(this._x + this._y*isoPlane_width);

```

The problem is that I can’t use that for the walls because a wall can’t be projected on a single point on the floor.  
Here are examples of what I have to achieve:  
2d view:  
[http://madara-sp.com/stoyan/2d.jpg](http://madara-sp.com/stoyan/2d.jpg)  
and isometric view:  
[http://madara-sp.com/stoyan/iso.jpg](http://madara-sp.com/stoyan/iso.jpg)
