3D bound depthSortMode(1)

All things HTML5 or text based engines, or really any web based engines.
Post Reply
zaquanishak
Posts: 53
Joined: Mon Aug 26, 2013 1:54 am

3D bound depthSortMode(1)

Post by zaquanishak »

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?
Untitled.png
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);
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
zachz
Programmer
compass-interactive
User avatar
coolbloke1324
Posts: 181
Joined: Mon Jan 23, 2012 5:20 pm

Re: 3D bound depthSortMode(1)

Post by coolbloke1324 »

Could you switch on drawBounds(true) and drawBoundsData(true) for the character as well? It would help to see the data because that will include the current layer and depth-sort values.
CEO & Lead Developer
Irrelon Software Limited
http://www.isogenicengine.com
Post Reply

Return to “HTML5/Web Engines”