Rotation and Z axis tracking

Here's my test:
http://media.putfile.com/shaketrack
As you can see, X and Y tracking work fine.
However, how can I do rotation and Z axis tracking?

You need a two point track and you need to tell Shake to interpret the information as rotation, size, or both...
Patrick

Similar Messages

  • How do I roll a ball along both x and y axis?

    I am trying to roll a 2D ball in 3D space that only moves on the x and y axis through a maze. I would like it to be rotating 360 degrees based on the curcumference so it looks like it is rolling no matter if it is moving along the x or y axis. I feel like it should be pretty straight forward to figure this out but I am at a loss.
    The ball rolls through the maze in an expressive way not at a constant speed but always in a straight line. Not every keyframe is at a corner direction change which makes things more difficult. I am just starting to learn about expressions so much of this is not based on knowing just forum searching and through trial and error.
    https://vimeo.com/89638507
    I have tried multiple variations on these three directions:
    distance=position[0,1];
    circumference=width*Math.PI;
    distance/circumference*360;
    This moves fine along the y axis or x axis.
    (length(position,position.value_at_time(0)[0,1])/(width*Math.PI))*360
    This works fine when moving on the y axis but the x axis rotates too slowly and then about 12 seconds in it stops completely and goes haywire after that.
    ball = thisComp.layer("Ball").transform.position;
    s1 = ball.velocityAtTime( time )[0];
    s2 = ball.velocityAtTime( time )[1];
    circumference=width*Math.PI;
    if
    (s1 > 1 || s1 < 1)
              transform.position[0]/circumference*360;
    if
      (s2 > 1 || s2 < 1)
              transform.position[0]/circumference*360;
    I was hoping I could switch from x axis to y axis when it's velocity slows at every corner. Only rotates when moving along y axis.
    I am not sure if it is possible or if there is a simple way that I don't know about (which is probably the case).
    Thanks in advance

    I think your expression is going to need to loop through all previous keyframes and add up the distances traveled (I'd use length() to calculate each distance) between each pair of keyframes and then add the distance traveled from the most recent keyframe to the current time. Then you can use your circumference formula to calculate the total angle. That assumes that there's no backtracking (wheel always turning in same direction)--otherwise, it will be more complicated.
    Dan

  • Model rotation about multiple axis

    Can anyone tell me how I can limit the rotation of a model to
    a specific angle without using camera rotation?
    I do know how to limit the rotation when the model has only
    been rotated in one axis (simple maths comparison of either x, y,
    or z depending on which axis I've rotated the model about).
    But, how do you limit rotation when the model has already
    been rotated about 1 or 2 of the other axes given that x, y, and z
    keep changing their values and axisAngle doesn't always give
    appropriate values?

    Using parent/childs is one way to work around relative
    rotation problems. Parent the model you are trying to limit
    rotation on to a dummy model (or group). Keep the dummy at
    rotation(0, 0, 0), and rotate the target model to its correct
    orientation in your scene. Then monitor the dummy's rotation to
    keep it within your limits.

  • Rotate to z axis

    How to use Behavior to rotate to z axis?

    You are so brief, this is the best I can tell you:
    Use a Transform3D that you put into a TransformGroup node placed over the brach that has to be rotated, and make your behaviour create a new Transform3D o change the already existing one and then set whichever of both you choose, again in the TransformGroup. This basically descrives the general method to change a trasnformation, just make your behaviour do it on your own criteria (on key presses, mouse movement, time, etc.)
    Anyway there are some predefined behaviours you could benefit from, check the tutorials.
    Regards

  • Another Question...rotating on two axis

    Hi again. Well I have yet another question...how do I set a translation to rotate on two axis? Like I know that I can do:
    TransformGroup tg;
    Transform3D t3d = new Transform3D();
    t3d.setRotation(new AxisAngle4f(1f,0f,0f,(some angle)));
    tg.setTransform(t3d);
    for one axis (I just put the declarations in to show an example) but if I try to apply two set rotations or two Transform3D's it doesn't work...so how would I rotate on, say, both the x and the y axis? Thanks,
    Compaq

    in fact the best thing would be to get used to quaternions. I suppose some Java3D tutorials discribe it quite well.
    If you really want to use rotation on axis you have two solutions :
    create 2 Transform3D and apply the result
    Transform3D t3dx = new Transform3D();
    t3dx.setRotation(new AxisAngle4f(1f,0f,0f,(xangle)));
    Transform3D t3dy = new Transform3D();
    t3dy.setRotation(new AxisAngle4f(0f,1f,0f,(yangle)));
    t3dx.mul(t3dy);
    tg.setTransform(t3dx);
    (hum, at least i suppose it would work ;)
    or you can do that too :
    Transform3D t3dx = new Transform3D();
    t3d.setRotation(new AxisAngle4f(1f,yangle/xangle,0f,(xangle)));
    tg.setTransform(t3d);
    (in this case xangle must be != 0)
    I'm not really sure it will work so please tell me if it works. I've tried to help you twice today so you can send me some bucks to the folowing address :
    oh, ok mum i won't give our address on the internet ;)
    c ya
    GnG

  • Animate a cube to rotate around x axis!!!

    Hi! I'm trying to animate a cube to rotate around x axis using RotationInterpolator object.
    Can anyone kindly tell me how I can do that? I've seen the example at Sun's 3d tutorial but they use the default behavior which is rotating around y axis.
    Thanks in advance.
    --DM

    lol
    in fact the axis used in the RotationInterpolator is the one which is on the y axis in the local coordinates system obtained after the Transform3D is performed
    for example:
    - if you use only new Transform3D(), which does nothing, the axis will be y
    - but if you use rotz(), this transform3D transforms the old x axis into the new y one, the old y axis into the new -x one and the old z axis into the new z one. Thus in the new local coordinates system obtained, the new y axis matches the old x axis, so this x axis is used for the interpolator
    I don't know if I'm very clear, it's difficult to explain and I'm French ;)
    see the java 3D API :
    http://java.sun.com/products/java-media/3D/forDevelopers/J3D_1_3_API/j3dapi/javax/media/j3d/RotationInterpolator.html#RotationInterpolator(javax.media.j3d.Alpha, javax.media.j3d.TransformGroup, javax.media.j3d.Transform3D, float, float)

  • Rotate and edit videos

        Im searching for a good app to rotate and edit videos I've taken. Im affraid to purchase any of them I get in search. imove and rotate HD came up. I go upon the rating but looking at them it seems the developers of those apps rate them to make them look better. When I actually read and research the apps they arent that great and have a lot of flaws.  I dont want to waist the time and money. From the looks of it all Apple doesnt test these apps thoroughly, which is ashame. Does anyone have any real suggestions?                                       

    Phoenix Mirage wrote:
        Im searching for a good app to rotate and edit videos I've taken. Im affraid to purchase any of them I get in search. imove and rotate HD came up. I go upon the rating but looking at them it seems the developers of those apps rate them to make them look better. When I actually read and research the apps they arent that great and have a lot of flaws.  I dont want to waist the time and money. From the looks of it all Apple doesnt test these apps thoroughly, which is ashame. Does anyone have any real suggestions?                                       
    Rediculous comment, even from a Windows user.
    For an Apple user this is easy, as described below. For Windows please ask the question on a Microsoft forum.
    You can do this using Quicktime Pro 7:
    Open MOV file in QT Pro (QT 7.6.6)
    Window -> Show Movie Properties
    select "Video Track"
    select "Visual Settings" from lower window
    check "Preserve Aspect Ratio"
    Click on appropriate rotation icon (MOV rotates!)
    Click back on the open MOV in Player Window
    FILE -> Save
    You can also do this using TransformMovie, available here:
    http://www.macupdate.com/info.php/id/21859
    Also, MPEG Streamclip can rotate video while maintaining the aspect ratio as well as the interlacing when converting to DV, which is what iMovie prefers as an input:
    http://www.apple.com/downloads/macosx/video/mpegstreamclip.html
    There is also a plug-in for iMovie from GeeThree called rotate/scale that might do the job:
    http://geethree.com/slick/index.html
    Further useful information here:
    http://www.sjoki.uta.fi/~shmhav/SVCD_on_a_Macintosh.html#vert-horiz_rotate
    http://www.sjoki.uta.fi/~shmhav/SVCD_on_a_Macintosh.html#43-169

  • Rotation about ANY axis

    Hi all !!!
    I am a novice to 3d programming but i have done some JAVA programming earlier.
    The problem i am finding is that I do not know how to rotate any geometric object (say, a cylinder or a cone) about any arbitrary axis, say ax+by+c=0.
    Can anybodyhelp me ???
    Thanks in advance.
    Ajay

    I am pretty sure I know what you are talking about.
    //Create the Object
    //Create a transform group for your object
    TransformGroup tg = new TransformGroup();
    // Now you need to make a Transform3D to do the rotational work
    Transform3D tr = new Transform3D();
    //To rotate around any axis use setRotation and pass
    // is a Quat4D (or f,i)
    // Quat takes 4 arguments x,y,z,w use the x,y and z to
    // create a vector to rotate around. i.e. (0,1,0,.4) would
    // rotate arount the Y axis, (1,1,0, .4) would rotate
    // around a line between x,y.
    // The W in the Quat is the angle to rotate (in Radian 0-2Pi);
    //So ...
    tr.setRotation( new Quat4d(1,1,0,.4));
    tg.setTransform(tr);
    //Add your object to your transform group
    tg.addChild(your_object);
    //Add your TRansformGroup to the world
    root.addChild(tg); //or whatever your BranchGroup is called
    I hope that is what you wanted. And does what you need.

  • Combing rotate and translation?

    hey
    i want to both rotate and set a translation on a ColorCube, but i cant to them to work at the same time.
    In the code i have it works fine if i use either the rotate code OR the translation code, if i put in the code for both, it only rotates on the x axis, eventho it also rotates on y-axis with translation code, and it doesnt rotate as much as if i leave the translation part out.
    Why is that?
    Here is the code:
    public void createPhyBox(){
            // Position box in scene
            Transform3D t3d = new Transform3D();
            t3d.setTranslation( new Vector3d(-0.4f, 0.0f, 0.0f));
            // Rotate box
            Transform3D rotate = new Transform3D();
            Transform3D tempRotate = new Transform3D();
            rotate.rotX(Math.PI/3.0d);
            tempRotate.rotY(Math.PI/5.0d);
            rotate.mul(tempRotate);
            baseTG = new TransformGroup(rotate);
            baseTG.setTransform(t3d);
            baseTG.addChild(new ColorCube(0.2));
        }

    i helped myself :D

  • Performance issues with Motion (position, scale, rotate) and GTX 590

    I'm experiencing performance issues with my Premiere Pro CC when I scale, position or rotate a clip in the program monitor.
    I have no performance issues with playback! It's only, when i move something with the mouse or by changing the x,y-values of Position in the Motion-Dialog in video effects.
    Premiere then lags terribly and updates the program monitor only about once per second - this makes it very difficult and cumbersome to work and position things.
    On a second Premiere installation on my laptop, performance is fine and fluid - allthough it doesn't have GPU support and is a much slower computer.
    I'm pretty sure this has somehow to do with my graphic card, which is a Nvidia GTX 590.
    I was told by the support, that it is actually a dual graphic card, which is not supported/liked by Premiere.
    The thing is, until the latest Premiere update, I did not have performance issues at all with this card.
    I also read on the forum that others with the GTX 590 did not experience any problems with it
    So where does this come from?
    There is no change in performance whether or not I activate Mercury Playback Engine GPU acceleration.
    I also tried deactivating one of the 2 gpus, but there also was no change.
    Does anyone else know this problem and has anyone a solution?
    I'm running Premiere CC on a Win 7 64bit engine, Nvidia GTX 590, latest driver (of today),

    I am suffering from the same phenomenon since I updated just before christmas, I think.
    I am hardly able to do scaling, rotating and translating in the program monitor itslef - whil motion has been highlighted in teh effect controls.
    In the effect controls I can scale, rotate etc however.
    Also I have noticed there is a yellow box with handles in teh program monitor. I remember it was white before.
    I cannot figure out what to change in my preferences. What has happened?
    best,
    Hans Wessels
    Premiere CC
    Mac Pro OSX 10.7.5
    16 GB 1066 MHz DD3
    2 X NVIDIA GeForce GT 120 512 MB

  • Problem with rotation and keyboard click sound

    Ok, there's still a problem with the rotation and keyboard click sound and I thought I had the problem fixed.
    It's a serious bug when you want the keyboard click sound enbabled without having the rotation locked. I noticed this bug started when I had the previous iosinstalled 7.0.6.
    Everytime I wanted to enable the keyboard click sound, I have to always go to settings and have lock rotation checked. And it would stay locked.
    If I wanted to rotate my iPad, I have to have mute enabled, but no keyboard click sound.
    I know it sounds confusing. I'm already confused... beh.

    I completely forgot about that.
    Thank you!

  • My ex husband had the kid's iPad.. how do I get rid of his info and ability to track me?

    Hello,
    I am recovering from a control freak.  Please help.  My ex husband took off with the children's iPad for over a year.  So the warranty is expired.  How do I keep the games he put on there (like Angry Birds) but get rid of a "restrictions Passcode" he refuses to give me and get his AppleID off of there and most importantly take his ability to stalk me via GPS tracking away?
    Yes he has been stalking me.
    I would like to add an internet browser and be able to have my own restrictions passcode so that when the children are not supervised I can turn off the internet. 
    How do I get rid of his passwords and ability to track me and set the iPad up for my children.  (I have no money, no child support and definitely no cash for tech support.)  I would deeply appreciate the help.  Even after I find a new job, it will be tight.
    Thanks so much!

    You'll have to restore the device, but with out the restricions passcode you'll have to put it into recovery mode first.
    Follow this:
    Unable to update or restore
    http://support.apple.com/kb/HT1808?viewlocale=en_US

  • In iTunes, is there any way to play one song at at time and have the song stop at its end.  I want to play guitar with a track and have that track stop playing rather than going to the next song.

    I want to play a single song in iTunes on my ipad and have the track stop when the song finishes, rather than itunes playing the next track.  I play guitar with the track and need iTunes to stop at the end of the song.
    I have worked around this issue by creating a separate play list for each song, then inserting the song into the play list.  I would like to find a more straight forward solution that would eliminate this extra step.  On my PC, I use QuickTime to bring up an individual song and then can play one track at a time.
    Thanks!

    On the IPod if the shuffle icon is colored blue it is ON, if it is colored white it is OFF. This control is global, if it is ON any album or list will be shuffled.

  • How do I re-number and re-order tracks in album view in iTunes 11 for Mac?

    When I manually transfered my iTunes library from an old PowerBook G4 to a used (but new to me) MacBook Pro, one of my albums has the same track numbers for multiple songs and so the songs are in the incorrect order.
    I know I can create a playlist of the album and re-rorder the songs, which I've already done.

    I found the answer in another thread.  I have to use Get Info -> Info for each song and change its track number to the correct number.

  • My iP5 will not play any track not purchased from itunes Store, red circle with red square inside appears and skips the track, any ideas?

    my iP5 will only play songs purchased formmthe itunes store.
    all over songs, uploaded from cd's on my laptop and dragged into itunes will no longer play, a red circle with a red square in the middle appears and skips the track.
    anybody know why Itunes / iP5 will no longer play all tracks, has worked for years, only stopped with the latest itunes update.

    Hey Kelsieee,
    First, I would try to resolve the issue with the ! in a circle that you're seeing in iTunes. There's some steps in the following article that go over what that ! usually means and how to fix it:
    iTunes: Finding lost media and downloads
    http://support.apple.com/kb/TS1408
    Welcome to Apple Support Communities!
    Best,
    Delgadoh

Maybe you are looking for