Moving objects

Hi in my application users can add objects move them, and select another object and move that.
the problem is that im not sure how to move the object once its live in the world
below the selectedObject is the BranchGroup containing the model.
im new to this so any help would be great as im stuck and need to sort this before
doing anything else.
selectedObject = worldObjects[objectNumber];
Transform3D tmp = new Transform3D();
selectedObject.getLocalToVworld(tmp);
Vector3f trans = new Vector3f();
tmp.get(trans);
System.out.println("vector of translation" + trans);
////////

you can find a tutorial at
http://java.sun.com/products/java-media/3D/collateral/
else,
for your specific problem, it seems you need to create a new Vector3f with the new coordinates of the selected object, then set it to the transformGroup of the object.
Something like :
Vector3f trans = new Vector3f(2.0,3.5,6.7);//or some others coordinates...
tmp.set(trans);
and before, be sure you have set the good CAPABILITIES to the transformGroup.
hope it helps.
gilles.

Similar Messages

  • Interlace problems with moving objects using iDVD

    I had an MP4 file (created by a 3rd party) from a Hi-8 analog tape which has some interlace artifacts on moving images (left image of boy) but not too bad. When the MP4 files was imported into iMovie 11 the interlace artifacts smoothed somewhat - that was OK (right image of boy). The camera was still and the boy was moving.  Vertical lines on stationary objects are OK in all images. These are screen captures from the Mac of the mp4 played through quicktime and the same file imported into iMovie 11 and played.  I paused both to take the screen capture.
    The completed project in iMovie 11 looked OK when previewed prior to rendering. These are 20 year old videos so my expections were being met.   I rendered the project with iDVD to the hard drive first and then to a DVD with the same poor imaging result on the moving object.  I am using a new Macbook Pro I bought in early January which came with iMovie 11 and iDVD  Ver 7.1.2 (1158). Running Mac OS X 10.7.3  Macbook Pro  2.3 Ghz Corei7   8GB 1333 Mhz DDR3.
    I couldn't screen capture from the MAC DVD player screen to illustrate the poor result (got a checkerboard screen) so I took a photo of the screen and imported that (below).  The moving boy on the left is from an  iMovie 11 screen capture, the image on the right is the moving boy from the rendered DVD I paused on the Mac (and took a pic of).
    Below a close up of the poorly rendered moving boy viewed on the resultant DVD.  This translates into a horrible rendition of any quick moving object.  It happens with any moving image - i.e. a pan across a room with straight vertical lines like edges of a wall will show as serrated and poorly rendered edge. I used a trial version of the Daniusoft DVD creator with the same result!  I am at a loss on how to resolve this issue.  Any thoughts out there??
    I had previously used Pinnacle Studios on my old XP PC which worked great on other tape's Mpeg files and created great DVD's (never had an interlace problem) ... until my computer died .....  so I figured Apple and associated software should be at least equal if not a superior product.   Now I'm not too sure!

    I had an MP4 file (created by a 3rd party) from a Hi-8 analog tape which has some interlace artifacts on moving images (left image of boy) but not too bad. When the MP4 files was imported into iMovie 11 the interlace artifacts smoothed somewhat - that was OK (right image of boy). The camera was still and the boy was moving.  Vertical lines on stationary objects are OK in all images. These are screen captures from the Mac of the mp4 played through quicktime and the same file imported into iMovie 11 and played.  I paused both to take the screen capture.
    The completed project in iMovie 11 looked OK when previewed prior to rendering. These are 20 year old videos so my expections were being met.   I rendered the project with iDVD to the hard drive first and then to a DVD with the same poor imaging result on the moving object.  I am using a new Macbook Pro I bought in early January which came with iMovie 11 and iDVD  Ver 7.1.2 (1158). Running Mac OS X 10.7.3  Macbook Pro  2.3 Ghz Corei7   8GB 1333 Mhz DDR3.
    I couldn't screen capture from the MAC DVD player screen to illustrate the poor result (got a checkerboard screen) so I took a photo of the screen and imported that (below).  The moving boy on the left is from an  iMovie 11 screen capture, the image on the right is the moving boy from the rendered DVD I paused on the Mac (and took a pic of).
    Below a close up of the poorly rendered moving boy viewed on the resultant DVD.  This translates into a horrible rendition of any quick moving object.  It happens with any moving image - i.e. a pan across a room with straight vertical lines like edges of a wall will show as serrated and poorly rendered edge. I used a trial version of the Daniusoft DVD creator with the same result!  I am at a loss on how to resolve this issue.  Any thoughts out there??
    I had previously used Pinnacle Studios on my old XP PC which worked great on other tape's Mpeg files and created great DVD's (never had an interlace problem) ... until my computer died .....  so I figured Apple and associated software should be at least equal if not a superior product.   Now I'm not too sure!

  • How do I pull up the left control panel that allows you to move from text to moving objects on page?

    How do I pull up the left control panel that allows you to move from text to moving objects on page?

    Do you mean this one:
    If so, go to the Window menu and make sure that Tools is checked.

  • Positioning moving objects

    I'm getting ready to make a 2d game and wasn't sure how to draw moving objects on the screen. I've played around in the past and always had a fixed sized window and basically moved objects around on a pixel grid. I want to have a resizeable window but keep the relative size and movements of objects the same. How is this usually done? Should I just render it to the largest possible window size and then transform it to the appropriate size? Thanks in advance!

    jgould wrote:
    I'm getting ready to make a 2d game and wasn't sure how to draw moving objects on the screen. I've played around in the past and always had a fixed sized window and basically moved objects around on a pixel grid. I want to have a resizeable window but keep the relative size and movements of objects the same. How is this usually done? Should I just render it to the largest possible window size and then transform it to the appropriate size? Thanks in advance!Not sure what that means. Basically you have a couple options:
    1- Store locations by ratios, not exact coordinates. So if you want a GameObject's location to be in the direct middle of the screen, its position would be (.5, .5). Then when you go to draw that GameObject, you have to convert that position to screen coordinates. You do this simply by multiplying the ratio-coordinates by the game window's width or height.
    2- Store locations by some model coordinates. This is similar to the first method, but requires some extra translation. You would store the GameObject's location via coordinates such as (50, 50), but you would also have to keep track of how large your game window model was (for simplicity's sake, let's say it is 200 by 100):
    drawPoint( (gameObject.getX() / 200) * gamePanel.getWidth(), (gameObject.getY() / 100) * gamePanel.getHeight() );Does that make any more sense?
    Edit- I should say that there probably are a ton of other ways to do it, these are just the ways that most easily fit into my head. It's all just algebra though.
    Edited by: kevinaworkman on Nov 13, 2009 2:54 PM

  • How do you filter out moving objects in a movie?

    Hello!
    I'v searched the internet for solutions to this but I cann't find any.
    Im prittie new and I need to make a house on fire while two guys (one is me)
    will be walking away from it, towards the camera.
    I want to filter out these two guys and only apply fire and flames to the house itself!
    To do this I used Time Diffrence and tried to isolate the guy using Fast Blur and Luma Key
    but Im prittie lost.. Nothing works and I really need guidence
    Do you know a trick to use?
    I cant do greenscreening as the green background would cost a fortune..
    But isn't there anyway to filter out moving objects?

    I'm not sure that you totally get the process. This kind of shot requires at least 3 elements or plates. These three plates become three layers in After Effects. The bottom layer would be the Background Plate which is a shot of the house without any actors in the shot. The next plate would be the Effect Plate or Fire Plate which could be any shot you can get or generate through plug-ins of flames. The top layer would be your Foreground Plate or your two actors.
    Now that you know what you need you can plan your shoot. The background plate is easy. Just set the camera on a tripod and lock it off. NO zooming. No panning, No change of focus. The foreground plate is also easy. You don't have to green screen the entire set, all you need to do is to put a green screen behind your actors. I do this kind of thing all the time using a 6' X 6' (sometimes smaller) green screen (or blue or red or purple) made of fabric and stretched over a frame that I made from 1/2" EMT electrical conduit and 4 90º elbow connectors for less than $20 at Home Depot or Lowes. You get a couple of assistants to walk behind your actors holding the green screen behind them. If you need to include their feet they can be easily rotoscoped out later and you can garbage matte everything else. If it's impossible to green screen the shot then you are stuck with roto, but that's much easier in CS5 using the roto brush. If you use your show with the actors as the background plate roto is even easier because you can hide a multitude of sins by simply feathering the roto and letting the fire light wrap around the actors a bit.
    The fire plate can be purchased footage, or you could shoot a real fire against a black background, or you could create the flames using AE or even a 3D app like Blender (free) or a bunch of other apps.
    Making the shot look real requires a few tricks once you have your clean plates. Fire creates light so you've got to add lighting effects to the background plate to sell the fire. You've also got to wrap light around your actors. Look for tutorials on light wrap for this. You can really help sell the effect if you place some flickering light sources behind and to the side of your actors when you shoot the foreground (actors) plate.
    Once you get a handle on these techniques it's fairly easy to make the transition to pulling of this kind of a shot with a hand held camera (now you have to learn motion tracking). On a project I recently completed we had to put a fire in a prop fireplace while actors moved around bringing milk and cookies for Santa. It was all roto and the fire was shot at night with nothing more than a black cloth (Duvetyne) behind the fireplace grate. The final composite was 10 layers and was so totally believable that no one questions the shot.
    The layers were from top to bottom, reflection in grandmas glasses, light wrap, actors (roto of original background plate), fire flicker layer, color mask layer (more orange around fire, fire glow layer, fire layer in Add mode, second fire layer in screen mode, third fire layer Luma keyed, and finally the original plate which contained all the actors, carefully lit with flickering firelight simulated by dangling a stick with fabric cut into 1/2 inch wide strips about one foot long in front of a orange gelled light behind and to the right of  the actors.
    If I get a chance I'll post a screenshot.
    Here you go:
    Light Wrap:
    The Movie
    Part of the original render before color grading.
    Enjoy

  • Blur moving object in AE CS6

    Hi:
    I need to blur a moving object:
    - The effect is only needed at some point of the video, it must appear, and then disappear, not being on screen the whole time.
    - The object is moving, and changing shape, the blur must adapt to it.
    - I've been trying to use the "Track Motion" option with Position & Rotation, then the "Analyze Forward" button, but the thing makes a mess all over, it's not following the object at all, then if You try to adjust it manually, it's only done in 1 frame, in the other frames the thing is off the object, then the "Tracking" stays on screen.
    Thanks in advance.

    Are you saying that you have something in some video that you have shot that you want blurred out? If so, you could create an adjustment layer with a mask on it over the object you want to blur and then just animate the mask over time. Now, you could use motion tracking to help that mask follow the object, but it sounds like you are having trouble with getting it to work properly. Try the tips here for doing motion tracking correctly. Alternatively, you could follow the tips on rotoscoping to make the mask animation go more quickly. Also, if you have After Effects version 12 (also known as AE CC), you can use the new mask tracker feature.

  • Lines on moving objects

    When I export DV clips from FCE I get lines appear on moving objects, (HDTV). When I export the same clip using iMovie08 it all looks smooth.
    I've tried the de-interlace, it made it worse.
    How can I get rid of the lines in FCE?

    shuggyboy1 wrote:
    ... What is the _best setting to export_ from imovie HD 6 to idvd to prevent this yet still maintain DV quality?
    .. not to export at all, that simple..
    the zillions of Export options could cause trouble.
    simply, store your iM projects in the 'Movies' folder of your Mac ...
    iDVD will 'find' them automatically and cares for itself to import..
    Plan B)
    drag'n drop the whole project from Finder to iDVD.. again: no export involved, no trouble..

  • When I render and Export there are these little lines around moving objects

    When I render and Export there are these little lines around moving objects, what are they and how do I fix it?

    The lines are caused by the video being interlaced.
    If you export to DVD they should no longer appear. However, if they don't disappear you can use the Deinterlace filter on the footage whilst in FCE.
    How are you exporting ..... QT Movie or QT Conversion ....... and what are you exporting to - the internet or DVD?

  • Video titling behind moving objects

    i recently saw a titling effect in a video, in which a motorcycle drove across the screen and as it passed a title appeared behind it. how does one create video titling behind moving objects? i have no experience in animation, so i'm guessing that the video layer is duplicated and the top layer masked, frame by frame? would an 8-point garbage matte work?

    You won't have an easy time doing this in FCP, but Motion, After Effects, or ultimately Shake, can do this a lot easier. You have to rotoscope the motorcycle, accounting for the rims, and space between the engine parts, or anywhere else where you would logically see through to the background, then duplicate that layer on top of the original, with the text in between the two layers. Depending on how long the clip is, you're in for a long haul. But if the footage is anything but DV25, clip analysis and automated keyframing might serve you well as a starting point after the initial mask is made.

  • Highlight a moving object

    Using AE CS5, how do I highlight a moving object in a scene?  I want an ellipse shape of normal brightness highlighting the moving object.  I want the rest of the scene to be around 60% brightness.
    Thanks

    These videos show some approaches to that kind of result:
    http://tv.adobe.com/watch/learn-by-video/adobe-after-effects-cs5-motion-tracking-and-rotos coping/
    http://www.video2brain.com/en/videos-1458.htm
    Start here to learn After Effects: http://adobe.ly/bjBT3P

  • Delayed response of when moving objects in diagram and panel, happend in LV 6, only for vi's compiled from previous versions. any suggestions?

    When I using the mouse to select portion of the diagram or the panel, or when I moving objects- I found that in all the vi's that I compiled from former versions of labview- there is a delay of close to a second to the actual selection or movement of the item. This happens in 2 machines out of 5 that I tested it, and it happened both in windows 2000 and in windows 98. any suggestions?

    Sometimes a video driver issue. Update your video driver.
    Or turn down the video driver hardware acceleration. Right-click an
    empty area of the desktop, choose the Settings tab, choose the Advanced
    button.
    The location of this differs in different versions of Windows.
    Win2000: go to Troubleshooting, and turn down the slider for hardware
    acceleration.
    Win98: I think it's on another tab.
    Mark
    ilan wrote:
    >
    > Delayed response of when moving objects in diagram and panel, happend
    > in LV 6, only for vi's compiled from previous versions. any
    > suggestions?
    >
    > When I using the mouse to select portion of the diagram or the panel,
    > or when I moving objects- I found that in all the vi's that I compiled
    > from former versions of labview- there is a delay
    of close to a second
    > to the actual selection or movement of the item. This happens in 2
    > machines out of 5 that I tested it, and it happened both in windows
    > 2000 and in windows 98. any suggestions?

  • How can I colour pop a moving object in a stop-frame animation in After Effects CS6 (Creative Cloud)

    Hi,
    The title pretty much explains what I want to achieve.
    I have a black and white video and I want to colour pop a moving object in it with it's original colours.
    I'm a full member of the Creative Cloud and so have all the suite available to me.
    How can I do this?
    Thanks.
    Neil

    Wow!!
    Thankyou for that.
    I'm a video/AE newbie and found a great tutorial video.
    Many thanks.
    Neil

  • How do you lighten a moving object?

    I have video of a person who keeps moving out of his spotlighting. Is there any way to "mask" a moving object and they brighten only that whilst leaving the background in tact?
    Hoping for a miracle!
    Yes... I'm grasping at straws

    Is there any way to "mask" a moving object and they brighten only that whilst leaving the background in tact?
    Yes. It won't be easy though. You could duplicate the clip then use a multi-point garbage mask but you'll have to keyframe frame-by-frame.
    Alternatively, you could try applying the 3 Way Color Corrector filter and using the Limit Effect feature IF the subject's coloring is distinct enough from the background.
    -DH

  • Count moving object (Inter the ROI from one side and leave ROI from other side)

    Hello All
    I want to design program that can counting moving object that inter ROI from one side and come out from the other side, I want to give each object ID number
    I have design a program that compare between object distances from one frame to the next frame, but the program efficiency is very low
    If any one can give me a sample code that I can use or modify it to suite my application

    Hello,
    you will find the code in the attachment (saved for LV2013). There is a longer delay inside the loop, remove it for efficiency.
    Roughly measuring the time to read an image, the processing takes ~8 ms on my computer (~500x200 image resolution). That is ~125 samples/images per second. Is this not fast enough for you? Considering better image resolution, the time is of course increased.
    My specifications:
    Core i7 3632QM
    6 Gb RAM
    Win 7 x64 (Labview x86 though).
    Best regards,
    K
    https://decibel.ni.com/content/blogs/kl3m3n
    "Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
    Attachments:
    IDMovingObjects.zip ‏64 KB

  • Trouble selecting and moving objects near text in Adobe Illustrator? Try this.

    It's been 4 years since I left Corel DRAW for Adobe Illustrator. One thing I could never get used to is the crazy way text has an impenetrable invisible sheet over it making it hard to select objects near or behind it.
    With Corel DRAW I was used to be able to select text by simply clicking on the visible area of the text. Selecting stuff behind the text by clicking between letters or right next to a decender was never a problem. But Illustrator is a different story.
    Tonight I finally found a way to make selecting text in Illustrator behave more like Corel DRAW.
    I wrote it up here: http://www.johnstanowski.com/blog/trouble-selecting-and-moving-objects-near-text-in-adobe- illustrator-try-this/
    Just thought I'd share! 

    It's not spam, but thanks for assuming.
    I was up really late writing that blog post. Posting a link was the quickest way to share and be able to go to bed.
    Plus it's rather lengthy. I thought that would be rude to use an Adobe forum for my articles.
    If you saw my blog you will have seen there's not much going on there at all, and no calls to action to hire me. I don't have anything to gain by getting traffic.
    And, yeah, layers work for selecting, but that slows you down. Who would want to look away from their work to find and select a layer when they're trying to tweak positions of objects? Layers suck for selecting quickly.
    And there must be something wrong with me but I find using Type Object Selection by Path Only by itself hard to use. I'd really just like to click on the text itself rather than an invisible hairline you have to probe to find.
    Here's the post. I hope people who had trouble like me find it helpful.
    Do you have trouble selecting objects near Point Type in Adobe Illustrator? You’ve been there. You want to select an object. Problem is, it’s really close to piece of Point Type. All too often we try to select objects that wind up being unreachable because they lie too close to a piece of Point Type, which we wind up selecting instead. Luckily, after years of angst, I discovered a solution.
    Point Type in Adobe Illustrator is funny. There’s this invisible “shield” around it. This shield is much larger (at least it seems that way) than the text itself. It prevents you from selecting objects behind text by clicking between letter and words. This shield is particularly meddlesome with lowercase letters and decenders because we think surely we can click on that blue box (or whatever) because it seems far enough away from that Point Type. But the lowercase “g” in the Point Type’s territory.
    Okay, now that we know we’re talking about the same thing, let’s move on to the solutions.
    Step 1. Check ‘Type Object Selection by Path Only’ in Preferences
    You’ll find this option in Preferences/Type. Click it and that nasty text shield goes away. But there’s a price to pay. With this option activated, the only way you can select your text is by clicking on the text path, a super, tiny, thin baseline thingy under all the letters, but above decenders. It’s really hard to grab. To do it right you need to slowly approach the text path with your cursor. When you’re right over it, Illustrator will let you know by adding a small black square to your cursor. Now, you can click, hold and move your text. But this workflow can really slow you down and break your rhythm, maybe even more so with it turned off.
    Step 2. Add the ‘Outline Object’ Effect
    Select your Point Type and, from under the Effects Menu/Path/, select Outline Object. This effect does something really sweet to text in Illustrator: it lets your Point Type objects be treated as if their were converted to Outlines. You can still edit the text, but as far as selecting it, Illustrator now considers it outlines and shapes instead of a text object. Basically, it now considers the Path of the text to be the text itself! Now, since we’ve already checked ‘Type Object Selection by Path Only’ we can now click on the text to select it. Just the text. Not the baseline, not the wacky invisible shield surrounding it.
    And now… you can select things behind the text by clicking between words and letters. And the ONLY way to select Point Type is to click on the visible parts of the text itself! Problem solved.
    Potential Problem:
    Too much of a good thing could be a bad thing. Let’s say you have some Point Type set in a very light face and it’s pretty small or you’re zoomed way out. Selecting that text could be a problem since you have to actually click on the text itself. Actually it isn’t that hard, it may just require an extra click to grab it. If you have a set of smaller, light-faced bits of text, you can elect to just not apply the Outline Object effect to these. They’ll get their ‘shield’ back and be easier to click on. And since they’re so small, they don’t pose a problem with selecting things behind them anyway.
    Applying this technique to your old files
    Now that you’ve learned this awesome new way to work around type in Illustrator, you may be anxious to open yesterday’s project and get back to work. But you may be not be looking forward to applying the Outline Object effect to each and every piece of type. For this you can use Illustrator’s “Select Same” feature. Select one piece of text. Then from the Select Menu click on Object/Text Objects. Now ALL of your text objects will be selected, and you can apply the Outline Object effect to all of them at once!
    That’s it. If you build ads or work with a lot of type in Illustrator, you’re about to be able to work a lot faster… and happier.

  • How to create a HMI page to control moving object

    Hello
    Good day
    I want create a Pc based HMI page to control the moving object (robot). I dont have knowledge in HMI. Plz help me with some ideas.
    My application conditions: 
    In HMI page -  to show input distance(X), start values (W- weights) which gives output(Q(X)) in two condition
     Q< 0 - move forward
    Q< 0  - stop (or move backward)
     And also feedback is given to input which give new start vaues (weights) and output runs contuinously.
    Equation in matrix form : X^T = (distance  1 ) , W^T = (W1 W0)
                                       output Q(X^T) = X.W^T = Distance. W1 + W0 
    Plz plz help me.
    Thanks in advance.

    Hi chittu,
    Developping code with LabVIEW always takes place in two separate windows, the block diagram and the frontpanel.
    In the block diagram you will do all programming operations like implementing your equation in program code.
    In the frontpanel you have the possibility to pre-give and adjust the input parameters for your equation, e.g. X, W.
    You can also display any values from the block diagram, e.g. Q(X), in a graph. So that is your HMI.
    Being able to send commands to your robot and communicate with it, you will need a hardware driver.
    In LabVIEW, you can use VISA to implement nearly every Hardware-driver available.
    The conclusion is, that LabVIEW is the perfect tool for your intent. But even if programming with LabVIEW is intuitive and effective, it is not trivial.
    So I strongly recommend you to learn LabVIEW in a professional way. In my opinion the best way to do that is to visit LabVIEW courses,
    where professional teachers will give you the needed knowledge and the skills to realize your project.
    The following links give you an overview of the courses, the possibilities to learn LabVIEW and some getting started hints.
    How to Learn NI LabVIEW
    http://www.ni.com/academic/labview_training/
    Introduction to NI LabVIEW
    http://www.ni.com/gettingstarted/labviewbasics/
    Getting started with LabVIEW
    http://www.ni.com/pdf/manuals/373427c.pdf
    Best Regards,
    JoLe
    National Instruments
    Applications Engineering
    www.ni.com/support

Maybe you are looking for

  • Radeon X800XT in a G4 MDD 867 mhz?

    Can a flashed Radeon X800XT be used in a G4 MMD 867 mhz? I assume it will need to draw power from the optical drive, is a standard Y cable OK? Do pins 3 and 11 will need to be taped?

  • How to create ForeignKey reference to code-first identity tables.

    Hi, I'm developing a web application using MVC 5, EntityFramework 6 with a Code-First approach. I have successfully created my tables dbo.AspNetRoles, dbo.AspNetUsers... etc, also I have created some custom tables for example a table that must have a

  • Problem with app: Asphalt 6

    Hello, I really don't know if I post on the right place, but I have a strange  problem with the full version of the app Asphalt 6. I'm playing the game for a while and it's was fine. suddenly it's loading only the begining movie and crash. This is th

  • No me aparecen los mapas, solo los fondos

    Desde la última actualización no me aparecen los mapas, sólo los fondos. ¿Quién me mandaría actualizar...? ¿Alguna solución? Muchas gracias.

  • Silicon image drivers

    Where can i get the non raid drivers for these sata ports on my neo4 plat? The driver cd that came with the board only has the raid ones, and i dont want to setup a raid array.