Page 1 of 1

IView_DG translation along z-axis does not work

Posted: Tue May 19, 2020 3:16 am
by Paul Gibb
Hi,
I'm using the IView_DG.Translate(hx, hy, hz) 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 hz 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 hz parameter, or is this a bug in the library?

I'm guessing that movement in the z-axis should correspond to zooming on the view?

Regards,
Paul

Re: IView_DG translation along z-axis does not work

Posted: Wed May 20, 2020 4:06 am
by Aaron Ht
Within orthographic projection translating view volume 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 with IView_DG.SetProjectionType(ProjectionType_DG.eProjectionTypeDgPerspective) or specify view volume scaling for zooming within orthographic projection with IView_DG.Zoom*()

Re: IView_DG translation along z-axis does not work

Posted: Wed May 20, 2020 4:18 am
by Frank Costanza
The birds eye window (context menu or v+b shortcut) is handy to see what is going on. It shows the view volume while you zoom or translate in the main windows

Re: IView_DG translation along z-axis does not work

Posted: Thu May 21, 2020 4:03 am
by Paul Gibb
Thank you, gentlemen
Good information
Paul