Okay, so I have setup a scene in Java.
I have 2 points. The first point is always 0,0,0.
The second point is the camera position and can be any positive or negative values for x,y,z.
Now what I want to do is have a function 'centerCameraVi ew' which will modify the camera angle values, and will put the first point (0,0,0) in the center of the camera's view.
So I guess as much as anything I am looking for pseudo code. Any help would be great, even links to other sites, or a good search. I couldn't find anything that really helped.
Cheers, Josh
I have 2 points. The first point is always 0,0,0.
The second point is the camera position and can be any positive or negative values for x,y,z.
Now what I want to do is have a function 'centerCameraVi ew' which will modify the camera angle values, and will put the first point (0,0,0) in the center of the camera's view.
So I guess as much as anything I am looking for pseudo code. Any help would be great, even links to other sites, or a good search. I couldn't find anything that really helped.
Cheers, Josh
Comment