Given: size(500,500,P3D);

I am having some issues trying to use these functions correctly.

I am expecting that if I create a camera(0,0,100,0,0,0,0,-1,0) that I'll have a camera looking at the origin down the z axis (PVector(0,0,-1)).

I would expect if I do this:

beginCamera();

rotateY(-PI/2);

endCamera();

That my camera will now be looking down the X axis (i.e., camera(100,0,0,0,0,0,0,-1,0)). However, this is not the case.

What am I conceiving incorrectly here?

BTW, I added a printCamera(); command and it gave me a 4x4 matrix which I can't find any documentation on what that matrix stands for.

The default camera position for a size(100,100,P3D) is:

1 0 0 -50

0 1 0 -50

0 0 1 -86.6025

0 0 0 1

I am assuming that the last column is my x,y,z,1 (looks like there is a unity matrix in here).

Can anyone shed any light on this?

Thanks,

Jon

w1jp

I am having some issues trying to use these functions correctly.

I am expecting that if I create a camera(0,0,100,0,0,0,0,-1,0) that I'll have a camera looking at the origin down the z axis (PVector(0,0,-1)).

I would expect if I do this:

beginCamera();

rotateY(-PI/2);

endCamera();

That my camera will now be looking down the X axis (i.e., camera(100,0,0,0,0,0,0,-1,0)). However, this is not the case.

What am I conceiving incorrectly here?

BTW, I added a printCamera(); command and it gave me a 4x4 matrix which I can't find any documentation on what that matrix stands for.

The default camera position for a size(100,100,P3D) is:

1 0 0 -50

0 1 0 -50

0 0 1 -86.6025

0 0 0 1

I am assuming that the last column is my x,y,z,1 (looks like there is a unity matrix in here).

Can anyone shed any light on this?

Thanks,

Jon

w1jp

2