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

strokeWeight works differently in normal, P2D and P3D mode for point() function #4188

Closed
ynaoto opened this Issue Dec 6, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@ynaoto

ynaoto commented Dec 6, 2015

Hello,

strokeWeight with scale doesn't make any effect to point() in P3D mode?
I wrote the following 3 sketches for testing with Processing 3.0.1 for Mac.

void setup() {
  size(100, 100);
  scale(10);
  strokeWeight(1);
  line(0, 0, 3, 3);
  point(4, 4);
}

normal

The point is drawn in same size as line.

In P2D mode:

void setup() {
  size(100, 100, P2D);
  scale(10);
  strokeWeight(1);
  line(0, 0, 3, 3);
  point(4, 4);
}

p2d

Line cap is slightly different from normal mode, but point size is fine.

P3D mode:

void setup() {
  size(100, 100, P2D);
  scale(10);
  strokeWeight(1);
  line(0, 0, 3, 3);
  point(4, 4);
}

p3d

The point size is very small.

Is this expected result?

Thanks,

@djokjulapfe

This comment has been minimized.

Show comment
Hide comment
@djokjulapfe

djokjulapfe Dec 7, 2015

You've put the same code for P2D and P3D. Pleas put the P3D code.

djokjulapfe commented Dec 7, 2015

You've put the same code for P2D and P3D. Pleas put the P3D code.

@codeanticode

This comment has been minimized.

Show comment
Hide comment
@codeanticode

codeanticode Dec 8, 2015

Member

@ynaoto P3D does not apply line caps, but the point should definitely be a large polygon like in P2D. I will look into it. Thanks for the report!

Member

codeanticode commented Dec 8, 2015

@ynaoto P3D does not apply line caps, but the point should definitely be a large polygon like in P2D. I will look into it. Thanks for the report!

@codeanticode codeanticode added the opengl label Dec 8, 2015

@codeanticode codeanticode self-assigned this Dec 8, 2015

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