LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3d picture control view single object

I'm using the 3D picture controlfor the first time and I'm amazed at how much faster it is at drawing than the old Picture control.  Likey Likey.

 

What I would like to do is to abuse the 3D picture control as a 2D picture control but I need to fill the viewport with a single side of a box created in the scene.

 

I can create the box to have th same orientation and size of the viewport and also create the texture for the box the same size, this is no problem.  What I want in the end is to have my texture pixel-perfect in the viewport of the 3D picture display.

 

I can do this manually via "projection Matrix" and "model View Matrix" but I don't quite understand where the numbers come from.  Since I'm a bit of a dunce when it comes to matrix transoformations, can somebody perhaps help me out with some tips on where to find this informaiton out?

 

Shane.

0 Kudos
Message 1 of 6
(3,169 Views)

I worked it out.  :smileysurprised:

 

Knowing that the corners of the viewport are always from -1,-1 to 1,1 regardless of the actual aspect ratio of the indicator it's kind of easy to work out the settings required.

 

Simply paint a texture on a 1x1x1 cube and voilà.

 

I'm amazed at the difference in speed between the old picture control and the new 3D picture control.  Is it hardware-accelerated?

 

Shane.

0 Kudos
Message 2 of 6
(3,167 Views)

Hi Shane

 

That depends on your hardware (CPU, graphic board, RAM etc.) and your LabVIEW Version. In the new LabVIEW version the hardware acceleration is better then in the older versions.

 

Look at this forums post:

 

3D picture control speed/latency

http://forums.ni.com/ni/board/message?board.id=170&message.id=360309&requireLogin=False

 

 

Kind regards

 

Beat

NI Germany

 

0 Kudos
Message 3 of 6
(3,144 Views)

Are the embedded 3D-controls also hardware-accelerated?

 

I read somewhere that only the external windows are accelerated by Hardware.....

 

I'm using LV 8.6.1 and the performance for what I'm doing seems just fine.

 

Shane

0 Kudos
Message 4 of 6
(3,136 Views)

Hi Shane

 

I think they aren´t hardware accelerated and only the external windows are.

 

Kind regards

 

Beat

NIG

0 Kudos
Message 5 of 6
(3,117 Views)

Can someone from NI confirm if the embedded 3D picture control is hardware accelerated in LV2010.

 

Thanks

0 Kudos
Message 6 of 6
(2,900 Views)