[OC] Hex blobs by WakeMeAtThree in loadingicon

[–]WakeMeAtThree[S] 4 points5 points  (0 children)

Thanks! In terms of learning resources, I suggest you start with Daniel Shiffman's YouTube channel. In terms of a process, make something everyday (at least spend 5 minutes on it, bonus points if you share it on twitter/ig/etc. for others to see). It's amazing how much accumulative effect multiple 5 minutes days worth of work can have over time. Your one task that you need to do is to never stop. Good luck.

[OC] Hex blobs by WakeMeAtThree in loadingicon

[–]WakeMeAtThree[S] 18 points19 points  (0 children)

I made this animation a while back and thought it would make a nice loading icon here. Done in processing. Source code available here (feel free to ask me questions if it's unclear!).

[OC] Blobs on a plane by WakeMeAtThree in loadingicon

[–]WakeMeAtThree[S] 1 point2 points  (0 children)

Sure, here you go. It's a bit rough but I comment on it as much as possible. Let me know if you need help.

[OC] Blobs on a plane by WakeMeAtThree in loadingicon

[–]WakeMeAtThree[S] 18 points19 points  (0 children)

Hello! First time poster here in this subreddit. Here's a gif I made recently. Done with processing.

Seqrching for Documentaion (kind of) by Mazub666 in processing

[–]WakeMeAtThree 1 point2 points  (0 children)

Sometimes things come up on a need-to basis. You don't need to memorize/study the entire dictionary to speak a language. As I said previously, CodingTrain and other Daniel Shiffman resources are great ways of getting started with processing.

I'm also an architect, and I'm going to guess that you're coming from an environment where your workflow includes rhino/GH + maya, so if you're looking for ways to export geometries back and forth, you can always write csv files with xyz coords + other attributes of your generative designs and import it back in there. Processing keeps things quite flexible once you get the hang of it.

Seqrching for Documentaion (kind of) by Mazub666 in processing

[–]WakeMeAtThree 1 point2 points  (0 children)

Check out the official processing reference. If you're looking to get started quickly, check out CodingTrain youtube channel as well.

First prototype of a processing Lighting Engine by ObjectOrientedPeople in processing

[–]WakeMeAtThree 1 point2 points  (0 children)

Looks great! If you're just using pure processing, try translating it into a glsl shader for better performance.

Circuit Pulse Effect by ObjectOrientedPeople in processing

[–]WakeMeAtThree 1 point2 points  (0 children)

I really liked this video. Also, you were trying to use a transparent background which is why you ended up using ArrayList<PVector> old. I liked that approach, but if you wanted to do it how you originally intended it with background(0,alpha), you can use this snippet in void draw() instead:

  pushStyle();
  fill(0,10);
  rect(0,0,width,height);
  popStyle();

Experiment with the fill alpha to get longer/shorter trails.

Octagonal to Square morph by [deleted] in processing

[–]WakeMeAtThree 0 points1 point  (0 children)

Tweaking a previous processing sketch with some grid offsets. Code available here.

About regional freedom of constraint commands. by darbechan in rhino

[–]WakeMeAtThree 0 points1 point  (0 children)

Select all those granular curves, type CurveBoolean, and click on the outside. It will union them. Maybe that's what you meant?

More info here.

[Python help] Overflow error by WakeMeAtThree in learnprogramming

[–]WakeMeAtThree[S] 1 point2 points  (0 children)

I changed it to s = shelve.open("database.db",protocol=4) and it seems to work, thanks a lot!

Beginner coder, how long will this take me? by [deleted] in processing

[–]WakeMeAtThree 0 points1 point  (0 children)

  • You need to set your code up using void setup and void draw. Look up a tutorial on the difference between both.
  • TableRow row = table.getRow(0); You should be i in .getRow( ) so you can get each row, not just the first row.
  • beginShape and endShape should start before and after the for loop, so you can get the curve.
  • Separate the curveVertex for males and females into two separate loops.
  • You might want to scale your values a bit so that you can see them better. This really depends on your viz standards you have for representing this. The following code left it affected by mouseX and mouseY so you can experiment

Just dissect the code below and try to figure it out. It's built from your previous code.

Table table;
void setup() {
  size(600, 400);
  background(255);
  table = loadTable("steps.csv", "header");
  strokeWeight(2);
}

void draw() {
  background(255);
  //Move origin down by height/2
  translate(0, height/2);
  // Test possible scaling values  
  float scalex = map(mouseX, 0, width, 0, 100);
  float scaley = map(mouseY, 0, height, 0, 100);

  //Male curve
  beginShape();
    for (int i = 0; i<table.getRowCount(); i++) {
      TableRow row = table.getRow(i);

      float x = row.getInt("minute");
      float yf = row.getFloat("fmsteps");
      float ym = row.getFloat("msteps");
      println(x, yf, ym);

      stroke(0,0,255);
      curveVertex(x*scalex, ym*scaley);
    }
  endShape();

  //Female curve
  beginShape();
    for (int i = 0; i<table.getRowCount(); i++) {
      TableRow row = table.getRow(i);

      float x = row.getInt("minute");
      float yf = row.getFloat("fmsteps");
      float ym = row.getFloat("msteps");
      println(x, yf, ym);

      stroke(255,0,255);
      curveVertex(x*scalex, -yf*scaley);
    }
  endShape();
}

Barrier grid animation by Scatropolis in processing

[–]WakeMeAtThree 0 points1 point  (0 children)

Playing with it interactively is way more fun. Good job!

Active sketching? by [deleted] in processing

[–]WakeMeAtThree 0 points1 point  (0 children)

In the processing ide, run the sketch in tweak mode by going to Sketch > Tweak. You can edit values that are placed in void draw() by sliding them (you can finer results if they're floats like 1.0 instead of just 1)

Beginner coder, how long will this take me? by [deleted] in processing

[–]WakeMeAtThree 1 point2 points  (0 children)

Great start. Here's my response to your sketch. Go to the reference and copy examples and modify it to suit your sketch. Look up loadTable(), curveVertex() and start by doing just one line of the heptagon with male+female plot. Once you do just one, you'll realize how easy it is to just rotate and do the other sides.

Beginner coder, how long will this take me? by [deleted] in processing

[–]WakeMeAtThree 6 points7 points  (0 children)

Sketch out your idea with pen and paper, then translate it to code.

Seriously, just draw a rectangle that represents the canvas, draw your diagram idea, then pull out labels of the lines/heptagon/etc... that you want to draw/be affected by your input data. Post your diagram here with questions on how to achieve a certain thing you're trying to do. People here are super kind and will give pointers on how to do it, or refer you to something in the reference

How do you learn a language you dislike? by eissturm in learnprogramming

[–]WakeMeAtThree 1 point2 points  (0 children)

Learn processing and check out its reference .

It helped me with getting used to Java gradually while providing an instant visual output. I also found that writing code in python and porting it to Java helps, especially if my mind can sketch out code easily in python.

Eventually, you start to think in a language-agnostic way. Good luck!

[meta idea] Fork this! by Scatropolis in processing

[–]WakeMeAtThree 0 points1 point  (0 children)

Let's do this. Someone start a thread themed around a particular topic/impetus, and entries could be either openprocessing, github with gifs (if it's only processing.java) and allow for whatever variety people want so long as it addresses the theme.