Rotating in all three directions

I compiled the Java 3D examples.
They are really great!
Now I am trying some experiments with them and try to alter them.
The code HelloJava3Dd.java rotates a cube in 3D.
But only around the Y-Axis.
What do I have to do to rotate it around the X-Axis as well?
Alpha seems to be for the timing and RotationInterpolator seems to have no parameter for the rotationaxis.
How can I rotate around X anyhow?
     Transform3D yAxis = new Transform3D();
     Alpha rotationAlpha = new Alpha(-1, 4000);
     RotationInterpolator rotator =
         new RotationInterpolator(rotationAlpha, objSpin, yAxis,
                         0.0f, (float) Math.PI*2.0f);

I couldn't attach two interpolators to the same Spinobject.
The cube would only rotate around the Y-Axis as before, but now it is changing the colours of the sides sometimes.
But my code with two Transformgroups and two Cubes works fine:
objSpin.addChild(new ColorCube(0.4));
objSpin1.addChild(new ColorCube(0.39));
Transform3D yAxis = new Transform3D();
Transform3D xAxis = new Transform3D();
Alpha rotationAlpha = new Alpha(-1, 4000);
Alpha rotationBeta = new Alpha(-1, 4000);
RotationInterpolator rotator =
    new RotationInterpolator(rotationAlpha, objSpin, yAxis,
                               0.0f, (float) Math.PI*2.0f);
RotationInterpolator rotator1 =
    new RotationInterpolator(rotationBeta, objSpin1, xAxis,
                    0.0f, (float) Math.PI*3.5f);
BoundingSphere bounds = new BoundingSphere();
rotator.setSchedulingBounds(bounds);
rotator1.setSchedulingBounds(bounds);
objSpin.addChild(rotator);
objSpin.addChild(rotator1);Edited by: EricFalbe on Nov 8, 2008 7:52 PM

Similar Messages

  • HT1040 I have previously submitted a book for printing three different times and Apple has told me it's been unreadable. I have previously previewed it before sending and it was perfect. I have followed all other directions. Help.

    I have previously submitted a book for printing three different times and Apple has told me each time it's unreadable. I have previously previewed it each time before sending and it was perfect. I have followed all other directions - updated software, all other applications off etc. What am I doing wrong?

    Boot into Safemode and Before ordering your book preview it using this method - http://support.apple.com/kb/HT1040 - and save the resulting PDF for reference - the delivered book will match it.
    If it is good order while in safe mode
    LN

  • We have 3 MacBook Pros in our house, connected by a WiFi network. I am having troubles connecting an external hard drive thru our router, to make back ups of all three computers wirelessly.

    I have purchased a 3rd party external hard drive to back up all three computers. I have done the intial back up by connecting each computer separately to the drive via USB. I was told at the Apple store where I purchased the drive, that I could then connect the hard drive to our router via the USB and then use Time Machine to back up the computers wirelessly. But I can't seem to figure out how to do that. I have connected the device to the router, but don't see it on Finder and when I check with Time Machine, it doesn't recognize any device. Help please!

    First off your external drive must be formatted Mac Extened (Journaled) for it to work with Time Machine. As that is not a widely used format, the Apple Mac format, most routers do not support it so the router will not see it is even connected to the router. For the router to see the drive is must be formatted either FAT32 or on some routers they can see/read/write to the NTFS format. But if you kformat it like that then Time Machine will not backup to it.
    About the only device that can be used for network backups of Mac computers is an Apple Time Capsule.
    So you have 2 options.
    1) Do all the backups by connecting that drive directly to each Mac.
    2) Take it back and get a Refund then buy an Apple Time Capsule. And or some other Network Attached Storage device (a NAS) that cane be formatted Mac Extended (Journaled) and be seen on your LAN and that the Mac's can backup up to.
    <Edited by Host>

  • Youtube URL (but not links to Youtube from pages elsewhere) crashes all three of my browsers., Youtube URL (but not links to Youtube from pages elsewhere) crashes all three of my browsers.

    All three of my browsers crash when I enter the Youtube URL <http://www.youtube.com> in the address window.  Safari reports that the problem may be caused by my Adobe Flash Player, so I reinstalled that, rebooted.  Didn't help.  Google Help then suggested I empty the cache and remove all cookies.  I did that (with Firefox).  Also didn't help.  Then I Repaired Permissions.  That didn't help either.
    But if I use Yahoo video search, or any other site's link to get to a Youtube video, there's no problem;  the video not only plays, but once I'm in the Youtube site, I can navigate within it and play other Youtube videos.  And when I bookmark a Youtube site, I can use that bookmark to return to Youtube.
    The crashes occur only when I type Youtube's URL into my browsers' address windows.  And since they occur with all three of my browsers, I have to think the fault is in my OS.
    I have a G4 Mac laptop WITHOUT an Intel chip, using OSX10v10.5.8.
    What might  I do to fix this?
    Further: 
    At about the same time the above problem arose, I could no longer play any FaceBook videos.  Error message:  "Upgrade to latest Flash player".  But I HAVE the latest Flash version (10.0.12.36) that my NON-INTEL Mac, a G4 with OSX10.5.8. can support.  And it had been working on FB.
    (Note: the Adobe Flash Player site offering Flash upgrades for OSX10 specify that the upgrades are only for machines with Intel chips.)

    Thanks!
    But when I go to the link you gave me, I see a number of candidates for further download, three saying "Mac".  Which should I use, please?
    In the folder simply marked :10_1r102_64" are:
    flashplayer10_1r102_64_mac_sa.app.zip  @ 8.1MB
    flashplayer10_1r102_64_ub_mac.dmg   @ 7.6 MB
    and in the folder marked:  "10_1r102_64_debug" is:
    flashplayer10_1r102_64_ub_mac_debug.dmg
    I'll gladly install whichever one you say, but I'll be amazed (and delighted!) if that stops my browsers from crashing whenever I enter http://www.youtube.com in the address window.   I can play youtube videos and navigate the site once I reach it using a link from another site, but if I enter http://www.youtube.com in the browser window and hit Return, the colored wheel rotates for several seconds, then the browser crashes.  Happens with Safari, Firefox and Netscape, so I suppose the bug must be in the OS.   I Repaired Permissions - didn't help.  Disc First Aid verifies as OK.

  • Can I use one photoshop cc subscription on all three macs we use?

    We have three Macs in use. Can we use one CC Photoshop + Lightroom subsctription across all three?

    Creative Cloud Help | Creative Cloud / Common Questions
    Do I need to be online to access my desktop apps?
      No, the desktop applications in Creative Cloud, such as Photoshop and Illustrator, are installed directly on your computer, so you don’t need an ongoing Internet connection to use them.
      An Internet connection is required the first time you install and license your apps, but you can use the apps in offline mode with a valid software license. The desktop apps will attempt to validate your software licenses every 30 days.
      Annual members can use the apps for up to 99 days in offline mode. Month-to-month members can use the software for up to 30 days in offline mode.

  • I have 3 airport express units, an Ipod and a PC.  I used the PC to set up an airTunes and the AirUtility can see all three of the airexpresses.  The Ipod displays all of the airexpresses and I can pick any one to stream music to. PC won't - any ideas?

    I have 3 airport express units, an Ipod and a Windows 7 PC.  I used the PC to set up an iTunes/airTunes and the AirUtility can see all three of the expresses.  The Ipod displays all of the expresses and I can pick any one to stream music to. The PC won't - any ideas? AirUtility tells me the 7.5.2 version of the firmware is the latest for the expresses and ITunes is also reporting that there are no upgrades available.  I get an error code -15000 when I try to connect from the PC to one of the expresses.

    How do I configure the AX to connect to the hub's wireless network? It will only scan one base station Airport Express at a time in the Airport Utility. I think what I am trying to do is use the hub as a router to the two AX's. Is there a specific way to set this up?
    To set up the AX to join a wireless network as a "Wireless Client," using the AirPort Utility, either connect to the AX's wireless network or temporarily connect your computer directly (using an Ethernet cable) to the Ethernet port of the AX, and then, try these settings:
    Launch the AirPort Utility.
    Select the AX.
    If not already connected to the AX's wireless network, go ahead and switch to it when prompted.
    AirPort Utility > Select the AX > Manual Setup > AirPort > Wireless
    Wireless Mode: Join a wireless network
    Network Name: <type in the network name/SSID of the wireless network that you want to join or select it from the pop-up menu>
    Wireless Security: None OR, if you are using security on your wireless network:
    Wireless Security: <Select the appropriate level of security for the existing wireless network: WPA/WPA2 Personal | WPA2 Personal>
    Password: <enter your wireless network security password>
    Verify Password: <re-enter the same security password>
    Click Update to write the new settings to the AX.

  • Purchased Homesharing; Homesharing is working on all three Apple devises except for Apple TV. Apple TV is showing photos, but not music. My computer is "authorized" but it is not showing up on my Apple TV. Request advise.

    Apple TV is not showing the authorized computer on my network. All three other Apple devises are sharing. Apple TV is getting my pictures, but not my music or  iTunes Match.

    It is not properly connected to the network.
    Make sure location is set correctly
    DNS should be on auto (settings - general - network)
    Try ethernet
    Signal strength on device won't account for issues, you would need a network report from istumbler, netstumbler or similar. This will show accurate signal strength along with noise and nearby networks

  • I followed all the directions to get Norton 360 to work with Firefox 8, but nothing works. I love Firefox, but if my Norton 360 won't work with it I'll be stuck with IE, which I do not like. Please Help Me!

    I followed all the directions to get Firefox 8 to work with my Norton 360, but nothing has worked. Is there anything else I can do? I didn't know there was an issue when I first upgraded to Firefox 8 so didn't choose the Norton plug ins immediately so I uninstalled Firefox hoping to be able to do it correctly when I Downloaded it again. Unfortunately it didn't ask me any thing regarding Norton so I went to Plug ins as directed to Enable Norton 360's plug ins, but none were listed.
    What can I do now? I LOVE Firefox! If we can't make it work I'll be stuck with Internet Explorer which I do not care for at all!
    I need to have Norton Security to protect my computer. Please help me find a solution to this problem ASAP.
    Thank you,
    Susan L Woods
    [email protected]

    Hi Susie, I use Norton 360 and have the latest Firefox 8 installed is working fine for me. Firefox 8 support for [http://community.norton.com/t5/Norton-360/Firefox-8-Support-for-Norton-Toolbar/td-p/581640 Norton Toolbar] was released on Nov 8th. Install the appropriate add-ons based on the version of Norton 360 you're using (see official Norton link above). Hope this helps.

  • I am using the Adobe Acrobat Reader on a mac and I followed all the directions to copy an image but when I press paste only half of the image appears or it appears as an empty square. What can I do to fix this?

    I am using the Adobe Acrobat Reader on a mac and I followed all the directions to copy an image but when I press paste only half of the image appears or it appears as an empty square. What can I do to fix this?

    Hello,
    I would like to inform you that not all the browsers and online PDF readers support copying text from a PDF. If you have opened the PDF online, please download PDF file to your computer and then open the file in Adobe Reader.
    Please share a screenshot if the issue still persists.
    Regards,
    Nakul

  • I bought a second hand G4 iBook with iLife 09 on it.  I have copied iLife to my new Macbook Pro. The applications would not open, so I did a software update and update all three applications, but they will still not open.  Can anyone help?

    I bought a second hand G4 iBook with iLife 09 on it.  I have copied iLife to my new Macbook Pro. The applications would not open, so I did a software update and update all three applications, but they will still not open.  Can anyone help?

    The seller should have given you the original disk so that you can reinstall as needed. But it likely was a single-user license (which really means single computer) so you can only have a copy on one computer at a time. If the seller didn't give you the disk he is probably still using the software on his new Mac. Your best option to get any of the iWork apps to use in OS X 10.6.6 or later is through the Mac App Store. You can then install them on any Mac you have that has access to the Mac App Store using your Apple ID.

  • Quicktime pro crashes on all three of my computers_Help!

    I produce video using Premiere pro. I just bought QT pro 7 and the mpeg2 plugin. I am trying to export ipod compatible files and other MP4 files.
    No matter what I try the success rate is extrely limited. I have manged 1 or 2 files to export sucessfuly and they look great, but were talking about 1 or 2% of the time.
    Where do I start?
    First I very often get this buffer overrun detected message. Other times, especially with dvavi it crashes as soon as it tries to open it. Other times it gets about half way thorugh and freezes or shows some error message.
    I have played with this for about 15 hours and am getting just a little frustrated.
    I have tried every imaginable combination. I have tried converring DVAVI, M2V, Mpeg2, QT exported from PPRO. You name it. I have also adjusted every possible setting in QT
    I thought maybe the files were too large, so I chopped them up getting down to as little as 6 minutes and still the crash.
    Is this program normally stable? If it is a computer problem why is it happening on all three of my computers. Even my 3.2ghz computer crashes every time. it is the worst of all.
    Any suggestions?

    Before you can export you must first be able to play the file without issue using the QuickTime Player. If it can't play it can't export.
    QuickTime doesn't (can't) export audio from muxed files (MPEG 1 or 2 and Flash) so you'll need other software for those files.
    Export from your Windows Premiere software to DV Stream. This is a large file size but compatible with QT Pro. These will export to .m4v formats (and others) to use on your iPod.

  • I have a  macbook, an ipad, and an iphone with the Mail app on all three synced through icloud, but when I read and delete emails on my phone, the inbox on my ipad is not update, so I have to go through and mark as read or delete messages again. How can I

    I have a  macbook, an ipad, and an iphone with the Mail app on all three synced through icloud, but when I read and delete emails on my phone, the inbox on my ipad is not update, so I have to go through and mark as read or delete messages again. How can I sync my iphone and ipad? (it seems like each is synced only to my laptop, so don't synchronize until I go home and use my laptop.

    POP: yahoo, aol, comcast/time warnder/road runner
    Imap: google, hotmail, and more including icloud.
    If you want to use multiple devices - move to imap, I would even say "exchange", but Google does not support free exchange anymore, since January of that year. So Ironically  Icloud or Hotmail would be my choices right now.
    To find out more about what happens to you, search on Google "difference between pop and imap"

  • HT1203 Can I share one iTunes account for my iPad and two I phones? If so, how can I get the purchased apps and music on all three devices? Do I need a home computer,

    Can I share one iTunes account for my iPad and two I phones? If so, how can I get the purchased apps and music on all three devices? How do I sync all the devices to have the same music and apps?

    You can set up an iCloud account on each one (the SAME iCloud account using the same AppleID on each) and then sync via iCloud.
    http://support.apple.com/kb/HT5262\
    However, an iCloud backup nor sync contains purchased content - that is available for redownload from the iTunes and App stores (so no need to waste iCloud space storing it for you).
    So, for purchased content, you will have to download it on each device - just use the same AppleID and download each item on each device.
    Without a computer to aid the sync'ing, downloading the purchased content on each device is the only way.
    P.S  audiobooks cannot be re-downloaded once purchased (all other content can be), so without a computer to save, store and move the audiobook files around, you will only be able to put those on one device - the one you first purchase it on.

  • I am thinking about upgrading to PSE 13. How many computers can you install it on? I have a desktop at work and a desktop and laptop at home. I would like to install it on all three.

    I am thinking about upgrading to PSE 13. How many computers can you install it on? I have a desktop at work and a desktop and laptop at home. I would like to install it on all three.

    duplicate post, see:
    Elements 13 questions (was P/)

  • ICloud - have two iPads and one Macbook and want to sync reminders on all three

    iCloud - have two iPads and one Macbook and want to sync reminders on all three. I have managed to get the Macbook and one iPad to sync, but wjat about the other iPad?

    First check that all your settings are correct, that reminders syncing (calendars on a computer) is checked on all devices (system preferences > iCloud on a mac and settings > iCloud on a iPhone, iPad or iPod).
    Make sure the reminders you are adding are added to your 'iCloud' account and not an 'On My Mac', 'On My Phone'  or other non iCloud account (you can do this by checking in accounts on an iOS device by tapping the icon with three lines in the top left corner of the screen, or the right side panel by clicking on the small triangle to the right of the word 'Reminders' in iCal on a computer), non iCloud reminders will not sync.
    If you are sure that everything is set up correctly and your reminders are in the iCloud group, you might try unchecking reminders syncing (calendars syncing on a computer) in the iCloud settings, restarting your device and then re-enabling notes syncing.

Maybe you are looking for

  • Transfer upgrade in Apple store?

    I wasn't able to order the 5s early Friday morning and had to wait until Saturday to put my order in. I used an upgrade from a different line. Since the phone isn't expected to ship for another month (specifically, 10/28), I was wondering if it's pos

  • How do i go back to my os5

    Upgrade to OS6 and unhappy, how can i go back to my older OS5. With out lossing my data

  • Combining pages in the same file

    Hello all, How do I combine two pages, in the same file, to create a single page document? Thanks Acrobat 9 Pro

  • There was an error opening this document. the file is damaged and could not

    Dear all, I am simpley reading pdf file & producing to browser with this servlet ( which i got this from same forum) import javax.servlet.*; import javax.servlet.http.*; import java.io.*; public class Isotest2 extends HttpServlet public void doGet(Ht

  • Output from Flash to session cookies

    Hi, I'm a newbie as far as Flash is concerned. My background is coding dynamic ASP 3.0 with ODBC connection to Access databases. I have a number of educational programmes written in Flash that I want to be able to track the progress of the student th