# LabVIEW

cancel
Showing results for
Did you mean:

Solved!
Go to solution

## How to make a 3d object of 2d image

Hello everyone,

I have this image of a robot - crude,

I would like to place this within another image (the map) and move it around according to the movements of the robot. I believe the best way to do this is by making a 3d object and placing the texture on it.

However, I am having difficulty editing the examples from the NI site (community zone) to achieve this. This also includes configuring the camera to effectively remove the 3rd dimension but still show the whole map (which is a blank 512 by 512 pixel image. The robot image is 40 by 40 pixels.

An example in LabVIEW 8.6 (open-able) would be really helpful in aiding me to learn the use of these powerful 3d picture controls.

Regards,

James

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
Message 1 of 4
(3,257 Views)
Solution
Accepted by topic author Hillman

## Re: How to make a 3d object of 2d image

Hi James,

I'm not experienced with 3d picture controls, but since - if I understood correctly - you only want to display it flat (2d) I think a plain (2d) picture control will do the job.

Draw the image and keep it in a shift register, then draw the robot at the position you want it. To move the robot just take the background image from the SR and draw the robot at the new position.

There's several interesting threads on picture controls in this forum, for instance Darren's nugget here.

Hope this helps,

Daniel

Message 2 of 4
(3,250 Views)

## Re: How to make a 3d object of 2d image

Hi Daniel,

Thanks for your post. But, I am likely to have many more robots in the environment and other meshes. I wondered if a 3D picture control using objects would provide greater flexibility?  But yes, I would like the 3D image flat (2d).

What do you think?

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
Message 3 of 4
(3,243 Views)

## Re: How to make a 3d object of 2d image

Hm, probably somebody with more experience with 3D controls can answer this.

Just another idea I used once: Have independent picture controls, one big picture with the background and small picture controls with the robots. Then just move the robots by setting their picture control's position property. I think this is not very efficient (LV isn't efficient with overlapping front panel objects in general), but it's another simple solution.

Daniel

Message 4 of 4
(3,232 Views)