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

Similar Messages

  • 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

  • Another question re:daisychaining lacie, canon, g5

    I read the post from a few days ago about problems capturing while a lacie is plugged in at the same time that a Canon camcorder is plugged in and I have encountered the same problem (I am using FCE). I also read how someone said they have dealt with it, i.e., capturing to the internal, restarting, then moving the clips to the LaCie. I have done this (prior to reading this, not as a result of reading it), but encountered a problem. I lost everything.
    I moved the captured clips to my LaCie--or actually, a copy of the clips was made when I dragged and dropped. I then went back and moved the "original" clips to the trash and emptied the trash. When I went to use the copied clips on the LaCie, they appeared to be there, but all the data was gone. In other words, I couldn't use them in the sequence I had begun. I had to go back and 'capture project' to get them all back. Major bummer.
    So here's my question. When "moving" captured clips, render files, etc. from the internal drive to my LaCie, they don't appear to be truly moving, just copying. Is there a way to move the original files so that I'm not having to move anything into the trash? I've been working on an opera on the internal drive and now have run out of space halfway thru rendering (I so knew this was coming!). I've "moved" (copied) all the captured clips and render files to my LaCie and subsequently dragged the "originals" to the trash in an effort to free up space. I am now petrified to empty my trash. I'm scared that my two-hour opera that took six hours to capture and another week to put together will be lost completely. Can anybody help???
    Another question: is there another brand of external hard drive that is compatible with my Canon GL2? I'd so love to just be able to capture right to the external...
    Thanks!!!
    Heather
    iMac G5   Mac OS X (10.4.2)  

    Hi Heather.
    I don't know what happened to your clips but it is certainly not normal!
    When you drag and drop to your LaCie you are making a perfect byte for byte copy of your originals. They are identical.
    There is no way you can "move" your originals to another HD and have nothing left to trash.
    What I suggest is do a little test - capture five minutes of video and copy it across. Delete the original files and try a few minutes of editing - a few cuts, several transitions and effects to check that everything is OK.
    Ian.

  • Another question - This time about CoverFlow

    Hi again.
    Now that I feel better about my previous problem I have another question: I ripped some really old LPs from my personal collection to mp3 format and transferred them to my iPod. Those LPs are really obscure and info about them on the Net is virtually inexistent. I scanned the LP covers (a tedious process since my scanner isn't big enough to hold the whole cover) and embedded the pictures into the audio files. For some time, they appeared OK within CoverFlow, but now they've been replaced by the two sixteenth notes symbol. I've tried synchronizing my iPod with cover art disabled and then enabling it again-resyncing, changing the images format to jpg to bmp and nothing works. I think I'd download a different image file from the Net and use it instead, but again, nothing can be found about these LPs. Is there a solution for this aside from rescanning the covers? (Again, it would be OK for me if I hadn't to join and fix images using PhotoShop since I can't scan the whole cover at once). Thank you again!

    You do not say what the image resolution of your scanned artwork is but, I recently read a post stating that too high resolution can cause problems. Try changing the resolution of your final images to something smaller than 500x500. You should be able to do this in PhotoShop without rescanning the covers.

  • Another question about gmail

    I just posted a question about adding gmail and it was answered.  Now, I have another question,  I added the new gmail account.  It shows in the mail preferences under accounts.  Incoming mail addressed to gmail comes to the Archive Box. But I still can't send mail by gmail because in the drop down menu on the email it only lists my other two accounts.  Gmail is not an option.  I highlighted gmail in the account list and it showed that as the account in use.  But, still there was no gmail option on the email form in the sender box.  How do I fix that?

    You need to look at and read over these very carefully.
    http://support.apple.com/kb/TS3276
    The link above is about sending issues.  The one below is about setting up or confiquring new e-mail.
    http://support.apple.com/kb/HT1277
    Good Luck to you and welcome to the Discussions.
    Don

  • TS4124 Hi, do you know how can I upload inelegible songs from itunes to Icloud. They are songs added from original CDs. Another question would be how can I transfer all the music I have in my Ipod Classic to my Itunes or ICloud as I want to back it up.

    Hi, do you know how can I upload inelegible songs from itunes to Icloud. They are songs added from original CDs. Another question would be how can I transfer all the music I have in my Ipod Classic to my Itunes or ICloud as I want to back it up.

    Depends on why it's ineligible.  If it's under 96 Kpbs, try right-clicking on the file and choosing Create AAC Version.  (If you don't see this option, go to iTunes>Preferences, click "Import Settings..." then choose "Import Using: AAC Encoder" and "Setting: iTunes Plus".)  Then rescan your library to see if this version will add to iTunes Match.  Or, after changing your import setting, just re-import the song to your iTunes library.
    If the song is over 200 MB you would have to reduce it's size to make it eligible.

  • Thanks all for the great advice.  Another question.  If I use Entourage on my desktop Mac to access an email address I use on there, is it possible to be able to access my email on that same email address on my iPad either with or without Entourage?

    Thanks all for the great advice.  Another question.  If I use Entourage on my Mac desktop to access my mail using an email address I have on there, is it possible to access my emails on that same email address on my iPad, either with or without using Entourage.  Is there an Entourage app, or something I could use?  Thanks...

    Simply add the email account to Mail, no need for Entourage.
    One word of warning, though, iPads tend to become community property (meaning anyone who uses your iPad can access your email). That is why I have zero email accounts on my iPad.
    I use Entourage on my desktop as well, so going back and forth between Entourage and Mail (whether on your iPad or iPhone) is no problem.

  • Using trial version of Lightroom and photoshop. Plan to buy. but i have a question: I have two computers a desktop and a laptop that i use when i travel can the programs be installed in both computers?

    Using trial version of Lightroom and photoshop. Plan to buy. but i have a question: I have two computers a desktop and a laptop that i use when traelling. Can i download the programs on both computers?

    Check the end user licensing agreement at End-user license agreements FAQ

  • 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 - I'm sorry!

    I'm sorry to bother you guys with another question. =p Just a quickie- How exactly do I get a movie from a DVD onto my computer after putting it in the drive? This is probably another stupid question, haha. ^_^; But I honestly haven't a clue.
    THANK YOU in advance!! =)

    It may be a quick question... but there's certainly no quick answer to it.
    The topic of DVD ---> iPod has been covered thoroughly in these forums already. There's literally hundreds of topics which answer your question for you.
    I would suggest that you search through the forums to find your answer, rather than start a whole new topic with duplicate information.

  • Another question (master socket)

    Sorry for another question, but this is a forum after all .
    Tomorrow all being well I should receive my welcome pack and business hub and on Friday I should receive Infinity, however I need something answered before the installation begins on Friday.
    When I moved in my master socket, well, it had no faceplate on the bottom half (just a test socket basically) so I got myself one of those ADSLNation faceplate things which fit to the bottom half of the master socket and work as a filter. My question is:
    - Should I remove the ADSLNation faceplate, use a standard micro-filter instead and explain to the engineer (if he queries it) that when I moved in there was no faceplate on the lower half of the master socket?
    ... or ...
    - Should I leave it as it is with the ADSLNation faceplate on the front (screws don't properly fit either so I didn't bother with screws for that)?
    Just concerned that if I appear to have used the ADSLNation (in other words not official BT faceplate) instead of an official BT one then the engineer might make a fuss or something?
    Many thanks.

    I see. Thanks for the clarification everyone.
    I'll either take it off before Friday morning and use a normal micro-filter, so that it has no opportunity to go missing with the engineer, or if I decide to leave it there I'll make sure the engineer doesn't take it with him (as it doesn't belong to him after all, since I purchased that from ADSLNation and may at some point in the future need it again, e.g. if I moved years later to a location where Infinity isn't currently supported).

  • Hi ya'll! I'm still learning how to navigate my way with Lightroom. (Last time I wrote, I did get some responses that work. Thanks so much!) Now, I have another question. When I try to copy pics from my external drive to a CD/DVD, no matter if do it from

    Hi ya'll! I'm still learning how to navigate my way with Lightroom. (Last time I wrote, I did get some responses that work. Thanks so much!) Now, I have another question. When I try to copy pics from my external drive to a CD/DVD, no matter if do it from LR or my drive, I keep getting the message; "Disk burning is not supported by LR on this computer." I've tried everything I can think of, so, I thought I'd see if anyone may know if there's anything I can do. Or could it be that my computer just can't handle it? Help!!! So frustrating!!  I have a PC Lenovo computer, I don't know if this makes any difference. Any ideas? Thanks so much for your help!!!

    Have you burned Discs with other programs using this computer? Are you certain that you have a drive that will burn discs?

  • 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)

  • Rotation between two vectors

    Hello,
    I am looking for a way for my 3D character to slowly rotate
    between two vectors. The rotation vectors is results from the
    rotation property of GetWorldTransform().
    My first idea was to somehow convert the two vectors into
    degrees and with the help with that information then simple use the
    rotation()-function.
    All help to figure out how to do so, or other suggestions,
    would be highly appreciated. Thanks. :)
    Thanks!

    The interpolate() and interpolateTo() commands accept a
    percentage value as the second parameter, so you should be able to
    specify what percentage of the interpolation you want, at the
    current point in time, as a factor of your time delta.
    - Ben

Maybe you are looking for

  • How can I create a pdf-report in a database trigger

    Hi, how can I create a pdf-file with Reports 9i in a database trigger ? Where can I find informations about it? Thanks Friedhold

  • Renaming offline computer account on AD as part of OSD

    I am looking for an automated solution to a Windows 7 "rebuild" problem and here is the story: We periodically have computer hard disk failures and the machines will be rebuilt on a new hard disk at the build center using the model-specific hardware

  • Long time for Adobe Media Encoder to encode 3 minute video

    I created a Premiere Pro project with a dynamic link to Adobe After effects (both CS4 versions). Upon finishing this PremPro project which is a 3 minute song with 3d animation playing in the background, I chose Export Media. Since first try was takin

  • Need help:  deleting duplicate photos & freeig up space

    when i first got my macbook pro and transferred all my photos to it from another computer, the iPhoto library was separated into 5 folders (iPhoto Library 1, 2, etc). For whatever reason, when i opened iPhoto, there were thousands of duplicates and t

  • Adobe photoshop element and premier element 12

    Hello, I did pay online element 12, photo editor and film editor, started the dowloading through akamai, supposed to be done but finally nothing. my computer is a OSX version 10.9.1 2.8 GHz intel core i7, 4gb 1333 mhz ddr3. Also i bought first the pr