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

OpenGL Drawing to large #3327

Closed
clankill3r opened this Issue May 27, 2015 · 5 comments

Comments

Projects
None yet
3 participants
@clankill3r

clankill3r commented May 27, 2015

3.09a

void setup() {
  size(150, 150, OPENGL);
}

void draw() {

  width = 75;
  height = 75;

  background(255, 0, 0);
  stroke(255);
  line(0, 0, width, height);
  strokeWeight(5);
  line(0, height, width, 0);
}

You can see a little from the line in the right top and left corner.

screen shot 2015-05-27 at 3 25 33 pm

@codeanticode

This comment has been minimized.

Show comment
Hide comment
@codeanticode

codeanticode May 29, 2015

Member

are you on a retina machine?

Member

codeanticode commented May 29, 2015

are you on a retina machine?

@codeanticode codeanticode self-assigned this May 29, 2015

@codeanticode codeanticode added the macosx label May 29, 2015

@clankill3r

This comment has been minimized.

Show comment
Hide comment
@clankill3r

clankill3r May 29, 2015

yes, sorry I didn't mention.
OSX 10.10.3

I also tried with "processing.core.PGraphicsRetina2D" but that doesn't seem to work (not that I want retina pixels).

p.s. I love what you are doing :)

clankill3r commented May 29, 2015

yes, sorry I didn't mention.
OSX 10.10.3

I also tried with "processing.core.PGraphicsRetina2D" but that doesn't seem to work (not that I want retina pixels).

p.s. I love what you are doing :)

@clankill3r

This comment has been minimized.

Show comment
Hide comment
@clankill3r

clankill3r May 29, 2015

I did not now about P3D_2X untill today but this is the result with that:

screen shot 2015-05-29 at 10 50 22 pm

clankill3r commented May 29, 2015

I did not now about P3D_2X untill today but this is the result with that:

screen shot 2015-05-29 at 10 50 22 pm

@codeanticode

This comment has been minimized.

Show comment
Hide comment
@codeanticode

codeanticode May 29, 2015

Member

Thanks!

This seems a duplicate of #3332, so I'm going to close it.

Just noticed that you are assigning values to width/height in draw(), you shouldn't be doing that since those variables are set internally by Processing.

Member

codeanticode commented May 29, 2015

Thanks!

This seems a duplicate of #3332, so I'm going to close it.

Just noticed that you are assigning values to width/height in draw(), you shouldn't be doing that since those variables are set internally by Processing.

@clankill3r

This comment has been minimized.

Show comment
Hide comment
@clankill3r

clankill3r May 29, 2015

I assigned values to width and height to see if it fixed anything and I forgot to remove it before posting here. Anyway, I think this is animation is really cool :D

void setup() {
  size(150, 150, P3D_2X);
}

void draw() {

  width = (int) (noise(frameCount)*155);
  height = (int) (noise(frameCount)*155);

  background(124);
  ellipse(75, 75, width, height);
}

clankill3r commented May 29, 2015

I assigned values to width and height to see if it fixed anything and I forgot to remove it before posting here. Anyway, I think this is animation is really cool :D

void setup() {
  size(150, 150, P3D_2X);
}

void draw() {

  width = (int) (noise(frameCount)*155);
  height = (int) (noise(frameCount)*155);

  background(124);
  ellipse(75, 75, width, height);
}

@benfry benfry added the duplicate label Jun 1, 2015

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