Anyone knows how to use STARFIRE?

I got problem ro manipulate the transform group got from the getModel() method.
It turn out that all the methods such as setScale() and rotX() do not work in such TransformGroup.
My code is as follows:
public TransformGroup load(String _filename) throws Exception
     Inspector3DS loader = new Inspector3DS(_filename);
     loader.setLogging(true); // turns on writing a log file
     loader.setDetail(7); // sets level of detail of report log
     loader.setTextureLightingOn();
loader.parseIt();
     return loader.getModel();
Part of another method:
TransformGroup group = new TransformGroup();;
try
     group = loader.load("E:\\semi3ds\\a3dsemi.3ds");
     group.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
     group.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
     group.setCapability(TransformGroup.ENABLE_PICK_REPORTING);
     Transform3D t = new Transform3D();
     t.setScale(0.0001);
     t.rotX(.5);
     group.setTransform(t);
     catch(Exception e)
          e.printStackTrace();
     }

Hey,
I have found a solution to our problem... :)
For some reason it is not enough to set the Transform3D of the root TransformGroup - the transformation is not propagated through the whole model in this case. It might be a bug of java3d or 3dmax somehow locks the transformations.
In my scenario I needed to change just the scale, so this snippet worked for me - it could be more complicated in your case:
     private TransformGroup testLoader() {
          com.mnstarfire.loaders3d.Inspector3DS inspector =
               new com.mnstarfire.loaders3d.Inspector3DS("D:\\3dmax\\meshes\\server.3ds");
          inspector.parseIt();
          TransformGroup groupModel = inspector.getModel();
          Transform3D transform = new Transform3D();
          transform.setScale(1/Scene.SCALE_FACTOR);
          traverse(groupModel.getAllChildren(), transform);
          return groupModel;
     private void traverse( Enumeration nodes, Transform3D transform ) {
          while(nodes.hasMoreElements()){
               Object node = nodes.nextElement();
               if( node instanceof Group ) {
                    if( node instanceof TransformGroup ) {
                         ((TransformGroup)node).setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
                         ((TransformGroup)node).setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
                         ((TransformGroup)node).setTransform(transform);
                    Group group = (Group)node;
                    this.traverse(group.getAllChildren(), transform);
     }I hope it helped,
Peter

Similar Messages

  • I managed to transfer the music from 1 pc to 1 other pc (to be played by iTunes). Bit didn't fixe the transfer of the meta data (for example the rating). Does anyone know how to use your old playlists, etc..(= meta data) on the other PC? So, please help!

    I managed to transfer the music from 1 pc to 1 other pc (it is played perfectly on the other PC (Windows 7- pc) by the newly downloaded and installed iTunes, version 10.6.1.7). But I didn’t fix the transfer of the meta data (for example the rating). Does anyone know how to use (or import) your old playlists, etc..(= meta data) on the other PC? So, short: how to migrate the meta data from one pc to an other pc?
    It's a pity that it seems not to be possible to import on the new pc e.g. the ratings!!!
    I don't want to start again with rating my (beautiful classical) music!
    Thanks, from Amsterdam, NL

    Did you do the move via Home Sharing, astro?
    If so, perhaps try the instructions from the following post:
    Re: i transfered itunes to my pc playlists did not go

  • Anyone knows how to use Adobe Photoshop CS6 on Mac?

    Anyone knows how to use Adobe Photoshop CS6 on Mac? I've downloaded from cnet and it seems not working. Asking for a stable Adobe application Manager. Downloaded and not working..

    System requirements are v10.6.8 and v10.7  >  System requirements | Adobe Creative Suite 6
    Not v10.8

  • Does anyone know how to use pages so you can export pdfs from the internet and automatically drag words from the document into the file name of the pdf (i.e., author, title of a scientific paper)

    Does anyone know how to use pages so you can export pdfs from the internet and automatically drag words from the document into the file name of the pdf (i.e., author, title of a scientific paper). For example, if I am downloading a paper by smith called "Surgery" that was published in 2002, it will automatically set the file name in the download to smith- surgery 2002. I have heard pages is smart enough to do this.
    thank you

    Pages can export only its own documents. They may be exported as PDF, MS Word, RTF or Text files.
    Pages can import (ie. Open a file as, or Insert a file into, a Pages document) documents in several formats, but won't rename the document as you describe. Documents that can be Opened (eg. Text, AppleWorks 6 WP, MS Word files) are converted to Pages documents, and retain their original names, with .pages replacing the original file extension. Files that can be Inserted (generally .jpg, .pdf and other image files) become part of the existing Pages file and lose their names.
    It may be possible, using AppleScript, to extract the text you want and to Save a Pages file using that text as the filename, but that would depend in part on being able to identify which text is wanted and which is not.
    How will the script determine where the author's name begins and where it ends?
    How will the script recognize the beginning and of the title, an decide how much of the title to use in the filename?
    How will the script recognize the year of publication?
    For papers published in a specific journal, with a strict format for placing each of these pieces on information, or containing the needed information as searchable meta data in the file, this might be possible. But it would require knowledge of the structure of these files, and would probably handle only papers published in a specific journal or set of journals.
    Outside my field of knowledge, but there are some talented scripters around here who might want to take a closer look.
    Best of luck.
    Regards,
    Barry

  • Hello anyone know how to use the locked iphone outside USA

    hello anyone know how to use the locked AT&T iphone 5 outside US. I'll go to Japan. Don't know if the phone can be used there.any idea will be appreciated.

    You'll need to get it unlocked by ATandT to avoid paying huge roaming costs.
    See: http://www.att.com/esupport/article.jsp?sid=KB414532&cv=820

  • Anyone know how to use a zoom in video mode for 4S?

    anyone know how to use a zoom feature in video mode for iphone 4S?

    Page 76:
    The User Guide is available at http://support.apple.com/manuals/ or downloadable from iTunes as an iBook.

  • Does anyone knows how to use Assistive Touch in iOS 5

    Does anyone knows how to use assistive touch in iOS 5? Thanks.

    LiveCycle is J2EE based, so you the way to interact with LiveCycle would be using SOAP (web services).
    See the following documentation:
    http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/wwhelp/wwhimpl/js/html/w whelp.htm?&accessible=true
    http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/wwhelp/wwhimpl/js/html/w whelp.htm?&accessible=true
    http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/wwhelp/wwhimpl/js/html/w whelp.htm?&accessible=true
    Jasmin

  • ANyone know how to use an Apple keyboard A1359 with a MacBook Air?

    Does anyone know how to use an Apple Keyboard A1359 with a MacBook Air?

    I'm going to ask the hosts to move this to the macbook forum since you're more likely to get answers there than in the iPad one.

  • Does anyone know how to use vlookup from a pop up menu to retrieve another pop up menu?

    Does anyone know how to use vlookup from a pop up menu to retrieve another pop up menu?

    BM,
    Pop-Up menu format is not dynamic. It is created in the Cells Inspector and can't be modified contingent upon the state of other cells.
    You could program a table to list the options available for the previous selection, but it wouldn't be in the form of a Pop-Up.
    Jerry

  • Does anyone know how to use ATV with a keynote presentation?

    Does anyone know how to use ATV with a keynote presentation? Is it possible?
    Thanks.

    Yes use Quicktime. Try to create a presentation that uses a widescreen aspect 1280 x 720 would be good, then export it at full quality which should give you a movie of 720p at 24 fps and should be just fine for the tv, if you have any problems with exporting it this way, you could try manual settings or simply run the export you made at full quality through itunes using advanced/create an Apple tv version.

  • Hi, anyone knows how to using airdrop between mac and iPhone 5? My mac was using mavericks and my iPhone was using OS 7. There is airdrop icon in my mac. And already on. But it is searching constantly. Even my airdrop in iPhone already on for everyone.

    Hi, anyone knows how to using airdrop between mac and iPhone 5? My mac was using mavericks and my iPhone was using OS 7. There is airdrop icon in my mac. And already on. But it is searching constantly. Even my airdrop in iPhone already on for everyone.

    Yes, you can use it for Mac computer > Mac computer or iDevice > iDevice. It's because they have different operating systems.

  • Sooo, anyone know how to use this iMessage?

    Does anyone know how to use this iMessage? I chose a friend who has an iPhone and I chose his email and his phone number, but the SEND button is shaded and not clickable. I thought this whole iMessage thing was universal on all our devices? I am guessing he didn't update his iPhone to iOS 5 yet. I have no idea. Not even sure how to use it. My girlfriend in Thailand has an iPhone and once she updates to iOS 5 is Apple basically saying that I can text message her free? iPhone to iPhone? Using iMessage? Are they using similar technology like TextNow or TextFree or something? Just a few ponderings. Thanks for any input y'all can give.

    If you have the iPhone with iOS 5 on it and you setup iMessage with it and then start using it, then (Your cell number) is automatically registered with iMessage. (Remember Apple at this stage do not have telephone numbers registered but only e-mails. You can then use your cell number and vice versa with your friend on iPhone and iPad.
    If you only have the iPad and not the iPhone and someone else you know that only owns the iPad and not iPhone with iOS 5, then you would only use the e-mail to send via iMessage
    When you send a message on the iPhone, the SMS 'send button' is green. If it's an iMessge, the 'send button' is blue.

  • Does anyone know how to use music transfered from another phone to the iphone as ringtones?

    Does anyone know how to use ringtones that I put on my iphone from my previous phone? It went in as music and now I cant use as ringtones and figure out how to put it as ringtones.

    Two ways to do this:
    Download an app, such as RMakerPro, which uses music on your phone to create ringtones.
    Plug in to iTunes and find where your ringtones are listed. Drag them to your desktop, and then you will need to change the file type to .m4r, which can be done at www.freefileconvert.com.

  • Apple Keybord ADB (Anyone knows how to use the power button?)

    Hi, I just found my uncle's old Mac SE and I was wondering if anyone knows how to set the power button on the keyboard (Apple Keyboard) model number M0116C? I want this key to work, because it is actualy not working.
    Tanks!

    Hi, I just found my uncle's old Mac SE and I was
    wondering if anyone knows how to set the power button
    on the keyboard (Apple Keyboard) model number M0116C?
    I want this key to work, because it is actualy not
    working.
    You don't make any settings for the power switch; either the Mac can use it or it can't. The Mac SE has a rocker power switch on the back of the CPU. The keyboard can't change the state of the power supply. Later Macs could, but not the SE.

  • Anyone know how to use torrents with a mac

    Does anyone know how I would use a torrent?  I downloaded a torrent and a torrent player but can't watch a show.  ANyone have VERY simple instructions for me?  Thanks!

    A .torrent file is just like a URL. It is used with a torrent downloader like Transmission to download an actual file.
    Do some Google searching on the subject.

Maybe you are looking for

  • How do I set up a 1and1 account on my iPad withi iOS 6

    I have a 1and1 email account and ever since I put iOS 6.0.1 on my iPad I can not access it I tried to reset the account even erased and re did the whole thing. Can you help I have went through all the help and support and still can not get it to work

  • Bluetooth will not recognise my GPS

    Can any one help, please? I have a PowerBook G4 1.25 GHz running Mac OS X, version 10.4.3 and want to use a BT-338 GPS with my ROUTE 66 Route 2004 Application. Although Bluetooth Preferences says that it has connected with the GPS, when I tell ROUTE

  • Remove entry from FWSM context cfg

    I want to remove 2 entries from a context cfg for an ACL and cannot find a way to do it. Here is the cfg: access-list PERMIT-PRINT extended permit ip 10.10.50.0 255.255.254.0 165.24.146.90 255.255.255.240 access-list PERMIT-PRINT extended permit ip h

  • @RANK Function - Help!

    I am using the following function in my outline which is 2 pass calc: It ranks the sales of associates.@RANK(SKIPMISSING,Sales, @RANGE(Sales,@LEVMBRS(EMPLOYEES,0)));It works fine on upperlevel time dimension members that are dynamic calc, but it fail

  • To find out how many charge cycles...

    How can i find out with the Terminal how many charge cycles my battery has done?