IView_DG translation along z-axis does not work

Forum for reporting problems
Post Reply
Paul Gibb
Posts: 0
Joined: Tue May 19, 2020 3:11 am

IView_DG translation along z-axis does not work

Post 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

Aaron Ht
Posts: 1
Joined: Wed Oct 23, 2013 1:45 am

Re: IView_DG translation along z-axis does not work

Post 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*()

Frank Costanza
Posts: 0
Joined: Thu Jun 27, 2019 4:16 am

Re: IView_DG translation along z-axis does not work

Post 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

Paul Gibb
Posts: 0
Joined: Tue May 19, 2020 3:11 am

Re: IView_DG translation along z-axis does not work

Post by Paul Gibb »

Thank you, gentlemen
Good information
Paul

Post Reply