3D transparency issues..

For some reason when plotting 3D objects with semi-transparent shapes, the lines (strokes) are not visible..

for example:

    size(100, 100, P3D);
    translate(50, 50, 0); 
    rotateY(0.5);
    fill(200,0,0,50); // semi-transparent
    stroke(10);
    box(40);

Screen Shot 2014-03-03 at 1.25.36 PM

how can I get the hidden lines to reappear?

Answers

  • Answer ✓
    size(100, 100, P3D);
    translate(50, 50, 0);
    rotateY(0.5);
    fill(200,0,0,50); // semi-transparent
    box(40);
    hint(DISABLE_DEPTH_TEST);
    noFill();
    stroke(10);
    box(40);
    
  • thanks!

Sign In or Register to comment.