LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Moving camera 3D picture control

Hi

 

How do I control the camera with variables (x,y,z) in my 3d picture control box- my functionallity is to follow a box that is moving. 

For now I just want to figure out how to get a camera to move without moving it manually with with a mouse.

 

Thanks in advance

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

Are you doing some sort of image tracking? You might want to explain a little bit more about what hardware you are using and or post your current vi. Without knowing details of what exactly you are doing and the hardware you are using all I can suggest is,  saving the start position (x,y) of object image, get some cheap distance sensor and get the (z) and then in a loop keep camparing if the current location is different than previous. if there is change in any coordinate, use the delta (change in cordinates) and use some servo motor to change the camara angle based upon the change that you just measured.

 



------------------------------------------------------------------------------------------------------
Kudos are (always) welcome for the good post. 🙂
0 Kudos
Message 2 of 5
(2,835 Views)
Hi everything I'm doing is virtual. So I created a virtual 3d cube and as it moves I want my camera to move as well. Think of it as a 3d simulator . I managed to get the cube moving but I can only move the virtual camera in perspective , othogonal etc using the mouse. I want the camera to move in the virtual world like you would in a 3d game
0 Kudos
Message 3 of 5
(2,829 Views)

Use the "image view matrix" property.

 

Google that term to learn how to use it since it is a OpenGL property.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 5
(2,817 Views)

@Ben wrote:

Use the "image model view matrix" property.

 

Google that term to learn how to use it since it is a OpenGL property.

 

Ben


 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 5
(2,811 Views)