Wed, 07/10/2019 - 11:39
Forums:
Hi, I'm using the V3d_View::Translate(Dx, Dy, Dz) function to move the eye in the left/right and up/down direction corresponding to the user.
I noticed that passing a value for the Dz parameter does not work - as in, inputting a value does nothing to the view.
Is this behavior intentional?
Because the documentation does not state anything about disregarding the Dz parameter, or is this a bug in the library?
I've also tested the similar V3d_View::Translate(Axe, Length) function, where the Axe used was V3d_Z (the z-axis), and there was also no movement.
I'm guessing that movement in the z-axis should correspond to zooming on the view?
Regards,
Jure
Wed, 07/10/2019 - 16:06
Within orthographic projection translating camera in some directions might have no meaning (e.g. camera translates, but you will not see any difference on the screen),
Either use perspective projection or specify camera scaling for zooming within orthographic projection.
Fri, 07/19/2019 - 16:04
Kirill, thank you for your answer!