Bug 827 : hint(DISABLE_DEPTH_TEST) doesn't give expected results with P3D and OPENGL
Last modified: 2008-10-05 15:58




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P2
Severity:
normal

 

Reporter:
antiplastik
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2008-06-17 02:55
When drawing 2D objects on top of a 3D scene using
hint(DISABLE_DEPTH_TEST), the strokes of the 2D shapes look incomplete.
Using Arrays.fill(((PGraphics3D)g).zbuffer,Float.MAX_VALUE); instead gives
expected results.

Example (see how the green rectangle's border is incomplete) :

[code]
size(200, 200, P3D);
background(255);
fill(250, 150, 0);
pushMatrix();
translate(30, 30); box(30);
translate(47, 0); box(30);
translate(47, 0); box(30);
translate(47, 0); box(30);
popMatrix();
// this one doesn't give expected results:
hint(DISABLE_DEPTH_TEST);
// this one does:
//Arrays.fill(((PGraphics3D)g).zbuffer,Float.MAX_VALUE);
fill(150, 250, 0);
rect(10, 10, width-20, 20);
[/code]
Additional Comment #1 From fry 2008-06-25 14:08
noted, thanks for the example.
Additional Comment #2 From fry 2008-10-05 15:58
fixed for P3D and OPENGL for 0149.