New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stroke glitches in P3D #4027

Closed
codeanticode opened this Issue Oct 19, 2015 · 1 comment

Comments

Projects
None yet
1 participant
@codeanticode
Member

codeanticode commented Oct 19, 2015

This issue is about the P3D portion of #4007. 3D strokes show glitches in the form of extraneous/random triangles, reproduced with the following code in 3.0:

// modified example from Generative Design P_2_1_2_03
void setup(){
  size(600, 600, P3D);
}

void draw() {
  background(255);
  noFill();
  stroke(0, 180);
  strokeWeight(10);
  for (int gridY=0; gridY<width; gridY+=50) {
    for (int gridX=0; gridX<height; gridX+=50) {
      float diameter = dist(mouseX, mouseY, gridX, gridY);
      diameter = diameter/500 * 80;
      pushMatrix();
      translate(gridX, gridY, diameter*5);
      ellipse(0, 0, diameter, diameter);
      popMatrix(); 
    }
  }
}

image

@codeanticode codeanticode added the opengl label Oct 19, 2015

@codeanticode codeanticode self-assigned this Oct 19, 2015

@codeanticode

This comment has been minimized.

Show comment
Hide comment
@codeanticode

codeanticode Oct 19, 2015

Member

Fixed with ed76e73

Member

codeanticode commented Oct 19, 2015

Fixed with ed76e73

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment