in reply to drawing 3D rectangle in Perl/Tk
For an approach that uses Z-buffering to draw shapes in 3-space, see this node. It isn't fast, though.