mnse
October 31, 2022, 12:40pm
2
Hi @asymmetric ,
still the same used in earlier post.
Hi again,
Well, as the day is slowly coming to an end and I’ve had some thoughts about whether to post or not, I’ve come to the decision that I will post it after all.
There are many pros and cons that could be listed, but none of them weigh so heavily that there would be a right or wrong.
Reasons are …
My code is just one of many examples and is far from an all-encompassing implementation. There are many things that can be worked out in addition to this on the topic.
I’ve now added lots of…
Hi @asymmetric ,
just for the sake of completness … I extended to 3D
Removed all the mouse picking stuff, as picking in 3D is another topic and would go beyond the scope here…
Cheers
— mnse
float scl = 8.;
int rows, cols;
int halfWidth;
int halfHeight;
boolean mode = true;
GridPoint[][] grid;
PImage img;
class GridPoint {
PVector position;
PVector oposition;
PVector uv;
boolean locked;
float phase;
public GridPoint(float x, float y, float z, float u, float v, boolean plocked) {…
Look at it again and try to figure out what’s to do…
As a Hint: read the blurred image into a buffer (maybe convert to grayscale beforehand), and map ie brightness from black to white (-1 to 1) and apply it to the corresponding z-coords (maybe multiplied with a factor, ie. 50.).
Cheers
— mnse