Hello.
I am working on a roulette game and could really use some advice about z-sorting. (Away3D 3.6)
My scene is made up of the number wheel, 37 slot dividers and the ball. Due to the nature of the models and the animation, if I put them all in the same layer then loads of nasty intersecting happens which results in a bunch of missing triangle during the spin.
I think this is impossible to avoid so I have put the 3 components into their ownSession, which solves one problem, but obviously results in the ball being in front of the dividers all the time, which isn’t right.
I thought of changing the SpriteSession screenZ property on a timer or an onEnterFrame to ‘manually’ z-sort the ball and dividers - but don’t really know where to start. Is this a good idea or is there a better way? To make things more complex the ball animation is an MD2 import and I’m not sure how to get the z-position of the ball from this data.
A demo swf is attached.
Any advice would be warmly received!
Thanks.