Hello,
I am trying to use Camera Views functions (e.g. campos, camva, etc.) to simulate a real viewing camera, but when I change the parameters it seems not to behave as expected.
For example:
- when I position the camera using campos(), the camera doesn't look like exactly in that position. It looks a bit further.
- when I change the camera view angle with camva(), it looks like a zoom rather than a variation in the camera view angle.
- when I set camtarget() after campos(), the camera position changes and the plot shrinks. Whereas I would only like to keep the camera in the same position, but point it to view another location.
The code I am using is rather simple. It is a dummy code to understand the behaviour of the commands.
surf(peaks);
xlabel('x')
ylabel('y')
zlabel('z')
campos([70 50 15])
camtarget([5 45 0])
Is there anyone with some experience with this functions? How can I simulate a real camera using Camera Views commands?
Thanks,
Fabio