Like the others I'm curious how you solved the depth sorting problem. I've built a prototype but it really, really stinks.
Rather than assign each possible point its own depth - which won't work since the number of depth levels is limited- I run that number into an array and sort it- then I use that array to swap the depths on just the layers I need.
It looks like it will work, but my depth math is all wrong:
tmpD=zpad((board[i]._y*500+board[i].x+board[i].z),14)
zpad zero-pads the number so it can be sorted effectively.
As you can probably tell, it stinks. Any ideas?
|