Behavior when Perspective Mode is false

Post questions, comments and feedback to our 3Dconnexion Windows Development Team.

Moderator: Moderators

Post Reply
toru
Posts: 3
Joined: Sat Mar 06, 2021 1:29 am

Behavior when Perspective Mode is false

Post by toru » Sat Mar 06, 2021 1:42 am

Hello
I'm having trouble developing software.
I didn't know where to ask, so I drew it here.
I'm sorry if it's misplaced.

I am thinking of using Space Mouse with my own point cloud software.
The screen area is created in C # Windows Forms, and the access to OpneGL is created in C ++.
From the SDK sample (3DxTestNL), the parts related to mouse operation other than the screen are ported to C # and confirmed.

When PerspectiveMode is true, rotation, zoom, and translation are working.
When PerspectiveMode is set to false, only rotation works, and zoom and translation do not work.

The following functions called from the SDK are set, but are there few functions to set?
I would appreciate it if you could give me some advice.

The set function and name remain as a sample
IView.GetCameraMatrix ()
ISpace3D.GetCoordinateSystem ()
ISpace3D.GetFrontView ()
IView.GetViewExtents ()
IModel.GetModelExtents ()

Thank you.

ngomes
Moderator
Moderator
Posts: 2493
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Re: Behavior when Perspective Mode is false

Post by ngomes » Mon Mar 08, 2021 1:25 am

toru wrote:
Sat Mar 06, 2021 1:42 am
When PerspectiveMode is set to false, only rotation works, and zoom and translation do not work.
When perspective is false, the view projection is orthogonal (or parallel).

You need to ensure the "view.extents" property is correct for your application. If your application is not handling this property, then the driver has no way to control zoom in orthogonal views.
Nuno Gomes

toru
Posts: 3
Joined: Sat Mar 06, 2021 1:29 am

Re: Behavior when Perspective Mode is false

Post by toru » Tue Mar 09, 2021 7:08 pm

Hello ngomes.
Thank you for your reply. That would help a lot.

I understand that I need to set view.extents.
However, I set the maximum and minimum values ​​of the view in the IView.GetViewExtents function.
It's still not working.
Let's look at the value a little more.

Also, I'm sorry for the late reply.

ngomes
Moderator
Moderator
Posts: 2493
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Re: Behavior when Perspective Mode is false

Post by ngomes » Wed Mar 10, 2021 2:43 am

toru wrote:
Tue Mar 09, 2021 7:08 pm
However, I set the maximum and minimum values ​​of the view in the IView.GetViewExtents function.
It's still not working.
How are you extracting the positioning information in the SetCameraMatrix method? Perhaps you're only using the rotational data of the matrix and not using the positioning values.

Post Reply