in reply to help with Z-buffer algorithm
What I'd do in your situation is put a load of warn statements in such that you can track exactly where the script is and when, and what variables are set to at key points throughout the program.
If you think that the problem is with one of those three subs, then that's a good place to start. Ensure something's not getting overridden, that if..then..else and the like are working correctly.
If nothing else, that'll give you a whole load of debug data, and hopefully an elusive error, that'll help you narrow the problem down and come back with something a little clearer.
Hope that helps a little ..
--Foxcub
|
|---|