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.
Behavior when Perspective Mode is false
Moderator: Moderators
Re: Behavior when Perspective Mode is false
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
Re: Behavior when Perspective Mode is false
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.
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.
Re: Behavior when Perspective Mode is false
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.