03-06-2010 09:45 AM
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
Solved! Go to Solution.
03-06-2010 09:57 AM
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
03-06-2010 10:15 AM
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?
03-06-2010 11:00 AM
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