3D bound depthSortMode(1)
Posted: Fri Sep 27, 2013 10:14 am
Hi,
Im using the 3D bound depthSortMode(1) which from the documentation the entity wil be sorting using the 3d bound that i have created. From the image below as u can see the 3d bound for the tree is not behind the character. I was expecting the tree should be sort below the character because im using the depthSortMode(1) which use the 3d bound to determine sorting. Am i doing the correct way here?
Here is my code on the tile map
im using depthSortMode(1) and mount this to foregroundScene and later i mount it to the mainScene. Every entity is mount to this.foregroundMap.
Please Advise.
Regards,
Zachz
Im using the 3D bound depthSortMode(1) which from the documentation the entity wil be sorting using the 3d bound that i have created. From the image below as u can see the 3d bound for the tree is not behind the character. I was expecting the tree should be sort below the character because im using the depthSortMode(1) which use the 3d bound to determine sorting. Am i doing the correct way here?
Here is my code on the tile map
Code: Select all
this.foregroundMap = new IgeTileMap2d()
.id('foregroundMap')
.isometricMounts(true)
.tileWidth(40)
.tileHeight(40)
.drawGrid(10)
.drawMouse(true)
.depthSortMode(1)
.drawBounds(false)
.drawBoundsData(false)
.hoverColor('#BFE01B')
.mount(this.foregroundScene);
Please Advise.
Regards,
Zachz