P3D make something display on top!

How do i display gui in p3d always in front of everthing?
if i try to do it like this:

box(256);
popMatrix();
  
  camera(); //resets viewport to 2D equivalent
  noLights();
  
  fill(60);
  rect(0,0,100,100);
  fill(255);
  text("erwrrw", 10, 50);

when i move the camera, sometimes the cube clips through the rectangle!

Solution:
render the box in perspective mode:

perspective(PI/3.0, float(width)/float(height), 10, 100000);
camera( //...
box(100);
noLights();
camera(); //without anything
ortho(-width/2.0, width/2.0, -height/2.0, height/2.0, 10, 10000);

See number 9 : 25 life saving tips for processing (blogpost) - Processing Forum