I added the following but my code is still only making a height map of the corner?
// set the origin to the center of the screen, and move it 400px far away on z-axis
translate(halfWidth, halfHeight, 0.05); // zoom in (lower numbers) zoom out (higher numbers around 200)
//GLOBAL VARIABLES
PImage img;
int borderGap = 30;
int resolution = 100;
//int maxHeight = 0;
float halfWidth, halfHeight;
Grid grid;
void vertexP(PVector P) {
vertex(P.x, P.y, P.z);
}
void setup() {
size(1000, 1000, P3D);
halfWidth = width/2.;
halfHeight = height/2.;
grid = new Grid(resolution, borderGap);
smooth(8);
}
void draw() {
background(0);
grid.display();
// set the origin to the center of the screen, and move it 400px far away on z-axis
translate(halfWidth, halfHeight, 0.05); // zoom in (lower numbers) zoom out (higher numbers around 200)
noLoop();
}