Antialising - Problem

I have a 2D scene drawen using lines and quads and triangles. The lines etc that I want to be hidded by say a box I move in the z direction so that they appear behind one another.

When I turn on antialising it all gets rather messed up.

Any ideas what parameters I should be using to get antialising working properly?

Thanks

Originally posted by stockton:
When I turn on antialising it all gets rather messed up.

What do you mean, messed up? A screenshot could be helpfull…

/Niko

I appear to have sorted it now.

I had all sorts of transparancey things going on and had turned off depth buffering which caused some problems.

All sorted though.