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!
Solved!
Go to Solution.

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!

Similar Messages

  • How to make look an object like a piece of metal?

    hellow guys....i have a question...im kind of new in illustrator and would like to make a plane object to look like a shinning piece of metal with 3D effect....can any one tell me how to achive this? thanks in advance!

    You apply gradients of all sorts using the normal gradient tool, gradient meshes, blends and combine it with other effects like edge bevels.
    Mylenium

  • How to make a Graphics2D object from a Graphics object?

    Hallo !
    Graphics g = pj.getGraphics();
    Graphics2D g2 = (Graphics2D) g;I get an Exception as follows:
    java.lang.ClassCastException: sun.awt.windows.WPrintGraphicsWrapper
    Is there an other possibility to to make a Graphics2D Object ? Or can I repair the error on an other way?
    Thank you Wolfgang

    Yes JBuilder makes a reference to this line.
    pj is a PrintJob.
    The only lines in this method for test are
    PrintJob pj = Toolkit.getDefaultToolkit().getPrintJob(p,"PrintWindow",null);
    Graphics g = pj.getGraphics();
    Graphics2D g2 = (Graphics2D) g;
    pj.end();Exception occurred during event dispatching:
    java.lang.ClassCastException: sun.awt.windows.WPrintGraphicsWrapper
    Wolfgang

  • How do I take an object from an image and save it so I can use it in other images?

    I am trying to figure out how to take an object from an image and save it so I can re-use it again in other pictures?  I know how to use the magic wand to select the object and place it in a blank image.... but I do not know how to re size the selected object or keep it for later use.  Basically I would like to use the object the same way that I use the graphics ... so I guess I am wondering if there is a way that I can make my own graphics... I have Elements Photoshop 13.  Thanks for any help/advice....  Jerrie

    Hi Jerrie,
    You can re-size using Transformation tool. Ctrl + T will give you a box to re-size the image or object.
    You can save these object as PNG file with Transparent layer. You can use these objects later in another projects.
    Regards,
    Sandeep

  • How to make mouse click event to display image on 2D array?

    Hi! beginner programmer here looking for some guidance, hints and tips.
    I'm making a game of "Connect 4" and using a 2D array to display the board which is 7x6 in size.
    What i want to do is that when the player clicks on one of the squares, one of the 2 game pieces(red.png or yellow.png) will appear on the respective coordinates of the 2D array and check if the square in the first row is empty and if true, places/display
    the game piece, else it places the piece on the first empty square.
    Since i've never worked with WinForms or 2d arrays before i'm not sure how to initiate it.
    What i was considering in pseudocode was:
    pb_Mouseclick(object sender, MouseEventArgs e)
    if(e.Button==MouseButtons.Left)
    Picturebox pb=(Picturebox)sender;
    clickLocation.X= e.Location.X + pb.Location.X, pieceArray[row];
    clickLocation.Y=e.Location.Y + pb.Location.Y, pieceArray[col];
    if(pieceArray[row, col] == null)
    if(player1.IsStarter==true) selectedimage(@"yellow.png")
    else
    selectedimage(@"red.png")
    else {
    bool empty= false;
    for(int row=0; row<height - 1; row++)
    for(int col=0; col<width; col++)
    if(pieceArray[row, col] ==null)
    empty=true;
    (Add gamepiece)
    This is what i've come up with so far, but it's just some theorycrafting, not sure if i should use a while-loop instead...
    Hope anyone can give me some insight on how to make it work and if the logic of my pseudocode is correct for what i want according to my earlier explanation.
    Many thanks in advance!
    Regards
    Gabbelino
    Student at the University of Borås, Sweden

    Hi Gabbelino,
    I could not understand your game rule clearly, and could you make explanation for me?
    1.>> when the player clicks on one of the squares
    What were the squares? Did it like dice or anything else?
    2.>> one of the 2 game pieces(red.png or yellow.png) will appear on the respective coordinates of the 2D array
    What is the 2 game pieces? Could you show us the two pictures?
    3.>> check if the square in the first row is empty and if true, places/display the game piece, else it places the piece on the first empty square
    Could you show us where places/display the game piece?
    Best Regards,
    Tony
    Help each other

  • How to make a round Slider with an image ?

    hello everybody,
    I'm back and i have a new question : how to make a round Slider (like a volume knob) with an image ?
    I see this very interisting tutorial : http://fxexperience.com/2012/01/fun-javafx-2-0-audio-player/ but it use a private class from com.sun.javafx.scene.control.skin.SkinBase...
    thank you for your answer.
    Gaëtan.

    I'm guessing you could subclass Slider to create a class SliderKnob.
    At some stage in the process, not sure where (perhaps after calling super in the constructor), you could look up the slider region's child thumbnail and track and call setVisible(false) and setManaged(false) on them, create an ImageView for your knob, add the knob ImageView to the slider's region and bind the ImageView's rotateProperty to the slider's valueProperty(). Not sure that that is any better than using the SkinBase stuff, but at least it is an alternative idea.
    Everything to create your own controls has not been added to the public API, so if you want to make your own controls in the same way the JavaFX does them (i.e. with Skin's and Behaviours and stuff like that) you have to make use of com.sun classes unless you can subclass and modify the workings of existing controls similar to what is proposed in the preceding paragraph.

  • How to make text stop wrapping around an image?

    Hello:
    I am using RoboHelp HTML 10 on Windows 7, generating PDF and webhelp.
    My project includes some images with text wrapping to the right of the image. I would like to allow a certain amount of the text to appear next to the image, then force the wrapping to stop at a specific sentence. I want the next paragraph to be aligned with the left margin instead of continuing to wrap around the image.
    This is the effect I want:
    I want paragraph A to appear next to the image, and paragaph B to be aligned with the left edge of the topic. It is OK for there to be some white space below paragraph A.
    Is there a way to make this happen?
    Regards,
    Juliette Curtis

    Thanks for the quick reply Peter.
    I was able to create an image style that makes the text wrap to the right of the image. However, I can't work out how to make the text stop wrapping in a specific place. This image shows what is happening:
    I want to allow paragraph A to appear to the right of the image and force B to appear below the image, as shown in the first image. The problem is that I don't know how to make B do what I want. Is there a way to do this?
    Thanks again for your help.
    Regards,
    Juliette

  • How to make "check for Objects" YES

    Hi I am trying to create installation scripts for supporting objects.
    When i click on app builder- app- supporting objects. I see check for supporting objects is "NO" i need to make it "YES" Please let me know how it should be done
    Thanks

    You would have to enforce this at the application level. You can get the IP address of the current client from the framework - IF_WD_APPLICATION method GET_REMOTE_ADDRESS.
    You could write an entry with the IP address into a temporary table during WDDOINIT.  You could clear the entry in the WDDOEXIT.  Also during the WDDOINIT, check to see if there is already an entry for this IP address.  If so, then fire an exit nagivation plug to a static MIME object or BSP page that explains why the user can only be logged in once.

  • How to make a callable object daemon

    Hi Gurus,
    I have a class which implements Callable interface and I am using thread execution framework to execute this object. My requirement is to make this thread a daemon thread. I would like to know how can i do this because setDeamon(True) doesnt exist in Callable interface.
    Thanks

    If you know that a method from your object is being called in the thread which you want to make daemon, try
    Thread.currentThread().setDaemon(true);

  • How to make a Window object Transparent

    hi all,
    how can i make an object of Window Class transparent.
    please help me out friends.

    This is a transparent window with an orange in it:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.peer.*;
    public class Tw extends JWindow implements FocusListener, MouseMotionListener, MouseListener
         Image     img,tim;
         Graphics  tig;
         Point     mp;
         Robot     r;
    public Tw()
         setBounds(170,170,100,100);
         try
              r = new Robot();
         catch(AWTException awe)
              System.out.println("robot excepton occurred");
         capture();
         addMouseMotionListener(this);
         addMouseListener(this);
         addFocusListener(this);
         setVisible(true);
    public void mouseDragged(MouseEvent m)
         if (mp == null) return;
         Point p = m.getPoint();
         int x = getX()+p.x-mp.x;
         int y = getY()+p.y-mp.y;
         setLocation(x,y);
         paintP(getGraphics());
    public void mouseMoved(MouseEvent m)
    public void mouseClicked(MouseEvent m){}
    public void mouseEntered(MouseEvent m){}
    public void mouseExited(MouseEvent m) {}
    public void mouseReleased(MouseEvent m)
         mp = null;
    public void mousePressed(MouseEvent m)
         mp = m.getPoint();
    public void focusGained(FocusEvent fe)
         setSize(0,0);
         capture();
         setSize(100,100);
    public void focusLost(FocusEvent fe)
    public void capture()
         Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
         img = r.createScreenCapture(new Rectangle(0,0,d.width,d.height));
    public void captureX()
         Rectangle rect = getBounds();
         setVisible(false);
         Thread.yield();
         Image xmg = r.createScreenCapture(rect);
         img.getGraphics().drawImage(xmg,rect.x,rect.y,rect.width,rect.height,null);     
         setLocation(rect.x,rect.y);
         setVisible(true);
    public void paint(Graphics g)
         Rectangle rect = g.getClipBounds();
         if (tim == null)
              tim = createImage(getWidth(),getHeight());
              tig = tim.getGraphics();
         if (!rect.getSize().equals(getSize())) captureX();
              else                               paintP(g);
    public void paintP(Graphics g)
        tig.drawImage(img,0,0,getWidth(),getHeight(),
                           getX(),getY(),getX()+getWidth(),getY()+getHeight(),null);
         tig.setColor(Color.orange);
         tig.fillOval(10,20,70,80);
         tig.setColor(Color.green);
         tig.fillOval(21,16,20,10);
         tig.fillOval(40,02,11,21);
         g.drawImage(tim,0,0,null);
    public void update(Graphics g)
         this.paint(g);
    public static void main (String[] args) 
         new Tw();
    }Noah

  • How to make a flat object look round?

    I have a round logo for a company. I want to make it look like it is painted on to a christmas tree ornament.. so it almost needs to look 3D. Can I do this in photoshop or illustrator or something? Any thoughts?

    And for the lights/shadows one can often achieve good effects just with brushing in black and white on either two Solid Color-layers or two Gradient-Adjustment Layers Clipping Masked to the content-layer.
    Or, if one has CS4, one can use the small 3D-objects-library under 3D – New Shape From Layer, map the content onto that and light it according to one’s taste.

  • How to make a photographed object free standing

    Hi.
    For a client I photographed a bottle of wine (in a white tent with a couple of softboxes, got a nice photograph). Now the client want the bottle free standing without background for easy use on his website etc. How can I do that using CS4 or do I need other software. I tried to use  the magnetic lasso but I'm not satisfied. Anyone with a suggestion/solution? Thanks. BO

    I'd still use the pen tool.  If you are going for translucency, then there is a tendency for the back light to wrap round the bottle leaving a very indistinct border between the edge of the bottle and the background, and Refine Edge is not going to do well with that.  The trick — if you know you are going to cut out the bottles — is to have the backlight _just_ wide enough, or to be careful to manage the exposure.  Then there is the cap — no one uses corks here anymore — which has super fine edge detail, and is going to look horrible with anything other than a clean selection using the Pen tool.
    Dark field is even more problematic, for a lot of people as they just don’t seem to understand the angles, and have way too big a light source placed too close behind the dark background.  Plus everyone I see seems to want to overexpose the rim light.  You can get translucency with dark field by placing a bottle shaped cut-out behind the bottle at 45° to the lens axis, and fire a snooted strobe in from the side.
    Light tents make life easy, but you don’t have the control with them.  Having said that, I did resort to a light tent for a bottle of Rosé recently that was proving super difficult to photograph, but I still ended up faking a lot of it in Photoshop.

  • How to make a draggable object snap into place?

    I'm new to Flash (sort of - I used it a bit back in 1999-2000, but it's changed a LOT since then). I'm making an educational game for my company that involves dragging labels from a word-bank to their correct position on a diagram. I want the kids to be able to drag any one of the five labels and move them to any one of five marked positions on the diagram. I'm using Flash CS5 with Actionscript 3. I used code snippets, so that each individual label has the following code associated with it:
    movieClip_1.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
    function fl_ClickToDrag(event:MouseEvent):void
    movieClip_1.startDrag();
    stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
    function fl_ReleaseToDrop(event:MouseEvent):void
    movieClip_1.stopDrag();
    Is there any code that I could add in there to make the objects then snap into positions when dragged near them? Note that there are five possible positions for them to snap to. The coordinates for those are:
    X
    Y
    299.75
    235.90
    775.40
    244.65
    421.15
    447.45
    804.15
    484.85
    437.15
    599.60
    Here is a screenshot of the area of the game that this is concerning to give you an idea of what I'm talking about:
    Thanks for any help you can give me.

    It might help if I give ALL of my code for this project. Here it is:
    movieClip_1.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
    function fl_ClickToDrag(event:MouseEvent):void
         movieClip_1.startDrag();
    stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
    function fl_ReleaseToDrop(event:MouseEvent):void
         movieClip_1.stopDrag();
    movieClip_2.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag_2);
    function fl_ClickToDrag_2(event:MouseEvent):void
         movieClip_2.startDrag();
    stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop_2);
    function fl_ReleaseToDrop_2(event:MouseEvent):void
         movieClip_2.stopDrag();
    movieClip_3.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag_3);
    function fl_ClickToDrag_3(event:MouseEvent):void
         movieClip_3.startDrag();
    stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop_3);
    function fl_ReleaseToDrop_3(event:MouseEvent):void
         movieClip_3.stopDrag();
    movieClip_4.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag_4);
    function fl_ClickToDrag_4(event:MouseEvent):void
         movieClip_4.startDrag();
    stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop_4);
    function fl_ReleaseToDrop_4(event:MouseEvent):void
         movieClip_4.stopDrag();
    movieClip_5.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag_5);
    function fl_ClickToDrag_5(event:MouseEvent):void
         movieClip_5.startDrag();
    stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop_5);
    function fl_ReleaseToDrop_5(event:MouseEvent):void
         movieClip_5.stopDrag();
    answers_but.addEventListener(MouseEvent.CLICK, fl_ClickToPosition);
    function fl_ClickToPosition(event:MouseEvent):void
         answersflyin.x = 230.00;
         answersflyin.y = 187.50;
    hide_but.addEventListener(MouseEvent.CLICK, fl_ClickToPosition_2);
    function fl_ClickToPosition_2(event:MouseEvent):void
         answersflyin.x = 693;
         answersflyin.y = 865.8;
    clear_but.addEventListener(MouseEvent.CLICK, fl_ClickToPosition_3);
    function fl_ClickToPosition_3(event:MouseEvent):void
         movieClip_1.x = 112;
         movieClip_1.y = 246.55;
         movieClip_2.x = 112;
         movieClip_2.y = 327.85;
         movieClip_3.x = 112;
         movieClip_3.y = 415.55;
         movieClip_4.x = 112;
         movieClip_4.y = 495.5;
         movieClip_5.x = 112;
         movieClip_5.y = 578.25;
         answersflyin.x = 693;
         answersflyin.y = 865.8;
    stop();
    That all works really well, too, except that the objects don't snap into place. Other than that, I'm able to drag each of the 5 movie-clips onto the board, arrange them as I like, click one button to show correct answers, another to hide answers, and another to sweep the board clean.

  • How to make a some object or picture got to a color

    hi i am VERY new at adobe flash an i am trying to get a layer or a symbol or something (im not sure what the objects in flash are called) to go to a given color does anyone know how to do this? im trying to track motion from a webcam feed with a person wereing a blue colored shirt. thanks.

    you can use the draw() method of the bitmapdata class to create a bitmap of the camera input and then loop through the bitmapdata's pixels using getPixel() or getPixel32() to find the x,y of the pixels that meet your criteria.

  • How to make a class object  from a string representation of the same

    i have the name of a class whose object i want to make in the form of a string i.e. String s="S1"; i get this name after some prosessing. so what i want to do is to create an object of S1 which is actually one class that i have implemented.plz hlp. it is urgent.thnx in advance.

    reflection api...
    see java.lang.Class. Read the api docs.
    mostly, u need to do the following:
    Class myClass = Class.forName(s1);
    Object x = myClass.newInstance();
    reg
    s giri

Maybe you are looking for

  • Creative Cloud Packager - Mac

    What's up group! In Creative Cloud Packager 1.5 for Mac, when we click on the 'Change' link to configure the custom settings, and change the 'Adobe Update Manager Behavior' from the default to 'Admin users update via Adobe Update Manager', the option

  • Aftereffects expression BUG. cannot compare the values of 2 sliders???????

    so do this: make a new comp with a new solid. add 2 slider effects to the layer. add an expression to the Opacity of the solid, add this tot he expression: // begin expression if(effect("slider_01")("Slider") == effect("slider_02")("Slider")){ 100 }e

  • AWR report automation

    Hello! I use the Oracle EM GC 11 for monitoring of databases . I need to form the AWR report for some of databases and send it once a day by e-mail automatically. How to realize it?

  • How to convert vob to mpeg with mpeg to vob converter for mac

    MPEG has standardized the following compression formats and ancillary standards: MPEG-1, MPEG-2, MPEG-3, and MPEG-4. MPG is one of a number of file extensions for MPEG-1 computer files. VOB is based on MPEG-2 program stream format.MPEG to VOB Convert

  • How can i attach a signature?

    hi i just want 2 know about if theres a posibility to attach a html signature to a pdf file