LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3d control zoom and pan quit working

Hi All,

 

I have a 3d picture control and I was able to zoom with Shift-mouse and pan with ctrl-mouse, as well as move per the CameraController.Type.

I added a Reset button to change the ModelView Matrix back to 100,010,001 and the Zoom and Pan values to appropriate. Since then, I can no longer zoom or pan. The cursor changes to indicate that it is zoom or pan mode, but it doesn't do it.

I rebooted the computer to make sure it wasn't something flaky, but it still doesn't work.

Any ideas?

 

thanks,

Paul J

 

0 Kudos
Message 1 of 5
(2,438 Views)

Hey Paul,

 

Would you be able to post yout program here so we can take a look at it?  My first thought is that you may be reseting theModelview Matrix value over and over again which would prevent you from zooming and panning.  

Regards,

Eric L.
Applications Engineering Specialist
National Instruments
0 Kudos
Message 2 of 5
(2,414 Views)

That was my first thought as well, but it only happens when I press the reset button.

An update: it sometimes pans but will never zoom.

 

0 Kudos
Message 3 of 5
(2,410 Views)

In fact, it will pan until you try to zoom, then it won't pan anymore.

0 Kudos
Message 4 of 5
(2,406 Views)

What may be happening is that once you set that reset value the property node it causes the zoom and pan properties to no longer be changeable.  I think finding a way to reinitialize that value might be the way to fix it.  I would try figuring out the initial value for the ModelView Matrix when you start the program.  Also just in case check the latching on your reset button, it would be causing your case structure to always receive a true, which would constantly set the value after you press it.  

Regards,

Eric L.
Applications Engineering Specialist
National Instruments
0 Kudos
Message 5 of 5
(2,386 Views)