find out the coordinates and keeping push and popMatrix in mind
in
Programming Questions
•
2 years ago
(The code below is a stripped version of a bigger project)
I need to know the x, y and z pos seem from the beginning.
If you look at the comment line you get what i mean, cause explaining here is really hard.
I need to know the x, y and z pos seem from the beginning.
If you look at the comment line you get what i mean, cause explaining here is really hard.
- import processing.opengl.*;
void setup() {
size(600, 600, OPENGL);
}
void draw() {
background(255);
lights();
pushMatrix();
translate(width/2, height/2, 0);
rotateY(radians(40));
rotateX(radians(30));
rotateZ(radians(20));
scale(2);
pushMatrix();
translate(40, 60, 20);
stroke(0);
strokeWeight(10);
point (0, 0, 0);
popMatrix();
popMatrix();
//how do i find out the coordinates (xyz) of the point in able to draw on the same spot from here
}
1
