Page 1 of 10 123 ... LastLast
Results 1 to 20 of 183

Thread: FBX importer, included in blender, ready for testing

  1. #1
    Member ideasman42's Avatar
    Join Date
    Mar 2004
    Location
    Australia
    Posts
    5,338

    FBX importer, included in blender, ready for testing

    Recently I worked on a new FBX importer for a client who prefers to remain anonymous,
    This importer is bundled with any recent build, available in the import menu and will be included with blender 2.69.
    Its functional without any SDK or 3rd party tools.


    At this point I it would be helpful if I could start testing the importer with files from various applications to check its able to load the files correctly.

    - Note that the client only needed certain features so the importer is not yet supporting all features.

    But it can load meshes with UV's images, parenting, lamps, cameras - supporting both cycles and blender internal materials.


    More details on exactly whats supported see...

    http://wiki.blender.org/index.php/Ex...y_.28Import.29


    If you'd like to help out, you could try import BINARY-FBX files into Blender, if they don't load 100% perfectly...

    Please make FBX files available, including...

    * Application they were created with.
    * What the model should look like (screenshot, or OBJ export).


    We can't support all the features that the exporter supports for 2.69 but I'll at least go over all FBX samples I can get my hands on and see if they can be supported.

    This way it means Blender-2.69-release will include and importer that has had some testing and is less likely to be tripped up because of simple bugs/incompatibilities (and I wont get a flood of bug reports in my inbox ).

    PS - it can't import files exported from blender, this is stupid, the exporter will be eventually updated to write FBX7.1+ files too.
    Podcast * dotfiles * My Wiki * Blender/Stackexchange
    ideasman42<at>gmail.com



  2. #2
    Member
    Join Date
    Aug 2010
    Location
    Adelaide, South Australia
    Posts
    2,725
    First up, Thanks HEAPS for working on this importer... will help integration into other applications significantly

    I have tried importing FBX files from revit (both straight from revit, and converted using FBX converter)... seems like they are not working correctly... I will try and find a test file i can upload sometime over the day or so. something like a box or window or something.

    I also tried importing one from navisworks (this one is HUGE... like 4gb, still trying to find an application that can open it without maxing out the ram)... and that failed aswell.

    Thanks again!

    Carlo



  3. #3
    Member
    Join Date
    Aug 2010
    Location
    Adelaide, South Australia
    Posts
    2,725
    Couldnt get any production files, but i managed to export one out of revit just then of a test scene... imports into rhino fine... i have attached screenshots of it inside rhino & revit.

    I also tried running it through the fbx converter, but that didnt seem to do anythign either.

    Hope this helps!

    Carlo

    testFBXExport.zip



  4. #4
    Member Daccy's Avatar
    Join Date
    Nov 2008
    Location
    Sweden
    Posts
    484
    Could you please provide a link to a recent build? I could not find one on Graphicall.
    My compositing tutorials:
    Compositing shadow/reflection



  5. #5
    Member LiquidApe's Avatar
    Join Date
    Jul 2008
    Location
    Atlanta, GA
    Posts
    1,058
    Originally Posted by Daccy View Post
    Could you please provide a link to a recent build? I could not find one on Graphicall.
    Try the official buildbot - http://builder.blender.org/



  6. #6
    Member ideasman42's Avatar
    Join Date
    Mar 2004
    Location
    Australia
    Posts
    5,338
    @doublebishop, thanks for the test file, I've managed to get it loading and it matches the attached images, committed changes to svn.

    - had a previously unknown field-type, had to investigate to add support into the binary parser.

    - file is FBX-version 7.0, had to run: fbxconverter test.fbx test_new.fbx /f201300

    - some other minor issue, committed to svn r4681 (bf-extensions)
    Podcast * dotfiles * My Wiki * Blender/Stackexchange
    ideasman42<at>gmail.com



  7. #7
    Member SaintHaven's Avatar
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    2,239
    Highly helpful, thanks to you and your client for improving on this.



  8. #8
    Member Daccy's Avatar
    Join Date
    Nov 2008
    Location
    Sweden
    Posts
    484
    The following file generated this error:
    Fat__error.jpg

    Screenshot of the object:
    Fat__.jpg

    The FBX-file, which was exported from AutoCAD 2014, can be downloaded here:
    https://www.dropbox.com/s/862cznn7at...at__Botten.fbx

    @ LiquidApe: Thank you for the link!
    My compositing tutorials:
    Compositing shadow/reflection



  9. #9
    Member ideasman42's Avatar
    Join Date
    Mar 2004
    Location
    Australia
    Posts
    5,338
    @Daccy. Thanks for the file, was helpful (it exposed 2 bugs, fixed r4683), it loads for me now,
    though I did have to update it to a newer FBX version (was 7.0 version of the spec).

    By the looks of it your running the script with and old Blender, thats not going to work.
    Podcast * dotfiles * My Wiki * Blender/Stackexchange
    ideasman42<at>gmail.com



  10. #10
    TODO: Smooth/Flat Faces, Soft/Sharp Edges
    was this about the smoothing groups?, I ask because I wasn't sure if you couldn't figure that out and gave up.

    congrats on what you have done so far
    Computer Specs WIN7 / I7 3930 / 32gb Ram / Gtx 560 TI 2GB



  11. #11
    thanks so much for the plugin, it's been missing for long time!



  12. #12
    Member Daccy's Avatar
    Join Date
    Nov 2008
    Location
    Sweden
    Posts
    484
    You're right! Obviously the package I downloaded (blender-2.68-r59254-win64-vc11.zip) contained an older version, though it was labeled as the latest. I tried importing the model again using the latest build available. Aside from the version number, no other errors were generated. So I suppose it works as expected.

    Also, I read that the imported doesn't currently support armatures. When do you think you'll be able to implement that?

    In any case, well done! =)
    My compositing tutorials:
    Compositing shadow/reflection



  13. #13
    Member
    Join Date
    Dec 2004
    Location
    cph
    Posts
    836
    Tested quickly with files saved from Maya 2011 and Nuke 7.0 - very simple test, primarily to check the camera. Love that sensor size works!

    Camera and lamp rotation is wrong though, turned around 180 deg. I fixed it by changing 'import_fbx.py' from this:

    Code:
        # rotation
        if obj.type == 'CAMERA':
            rot_alt_mat = Matrix.Rotation(pi / -2.0, 4, 'Y')
        elif obj.type == 'LAMP':
            rot_alt_mat = Matrix.Rotation(pi / -2.0, 4, 'X')
        else:
            rot_alt_mat = Matrix()
    to this:

    Code:
        # rotation
        if obj.type == 'CAMERA':
            rot_alt_mat = Matrix.Rotation(pi / 2.0, 4, 'Y')
        elif obj.type == 'LAMP':
            rot_alt_mat = Matrix.Rotation(pi / 2.0, 4, 'X')
        else:
            rot_alt_mat = Matrix()
    Test files:
    fbx_tst.zip



  14. #14
    Member
    Join Date
    Aug 2012
    Location
    Arizona
    Posts
    299
    Created in Unreal Development Kit (UDK) - it's a simple wall element 1.92m x 3.84m x 16cm

    SinglePanelWall_UDK.zip

    Forgot to say, I cannot import this into Blender.



  15. #15
    Member
    Join Date
    Dec 2004
    Location
    cph
    Posts
    836
    Originally Posted by JWise View Post
    Forgot to say, I cannot import this into Blender.
    I can import the object, but it is rotated 90 deg around X and the scale is way off. Here are the values I see (in meters):

    X: 96m
    Y: 8m
    Z: 192m

    Edit: Scale is 1, the values above are dimensions...
    Last edited by san; 19-Aug-13 at 15:14.



  16. #16
    Member
    Join Date
    Aug 2012
    Location
    Arizona
    Posts
    299
    san: this is the error I get when I try

    Capture.JPG



  17. #17
    Member
    Join Date
    Dec 2004
    Location
    cph
    Posts
    836
    Hmm.. are you using a new enough build to test this? I compile my own (Linux 64bit), and get no errors when loading your file, other than the rotation and it being 50x larger.



  18. #18
    Member
    Join Date
    Aug 2012
    Location
    Arizona
    Posts
    299
    Maybe not, I'm on last night's buildbot of 2.68a r59254. I'll try again in 5 hours when the new one is released or something newer than r59260 shows up on Graphicall.



  19. #19
    Member
    Join Date
    Aug 2010
    Location
    Adelaide, South Australia
    Posts
    2,725
    The latest update works now with the two revit files i have tested.. i will do some more tests later

    Thanks for the fast development and your work on this!!

    EDIT: It seems to have fixed Navisworks exports aswell! Cheers!

    EDIT2: Importing in large fbx files seems to bring blender to a halt (currently sitting on 5gb ram used, one core active)... is there a way of getting a progress bar / window for this? or having the console print out a current status (every 10 seconds writing out importing x object out of y objects or something like this? just to know blender is actually doing something, not just hating life) any way of getting it multithreaded aswell? i know i am asking for a lot here :P
    Last edited by doublebishop; 19-Aug-13 at 20:19.



  20. #20
    Member ideasman42's Avatar
    Join Date
    Mar 2004
    Location
    Australia
    Posts
    5,338
    @JWise, You're using an old experimental FBX importer (notice its in addons_contrib),
    If you use a recent blender build, this importer has been removed, so either you have an old build or whoever made the build is adding back old scripts. SinglePanelWall_UDK.zip loads fine here.

    @ng-material, all smoothing info is currently ignored, support will likely be added eventually.

    @san, I tested camera and lamp orientation quite well to make sure they load correctly with some of my own test files, perhaps there are extra settings that need to be taken into account, but think flipping the rotation probably isn't the solution. But thanks for the test file, it should help. (Cameras have `Up` and `LookAt` fields, Ill check if these need to be used)

    @san, At this point I wouldnt worry about scale and orientation,
    there are options for orientation and scale on import,
    currently the global scale in the FBX file is ignored, but we could support fairly simply.

    @doublebishop, for now Id suggest not to attempt to load files that run into memory limits, the importer has hardly been tested yet (with files other then client who commissioned it) so its hard to know if the error is with file compatibility or running out of memory.
    _but_, data is stored in arrays (not lists/tuples), so it should be fairly memory efficient compared to most other python importers.
    Last edited by ideasman42; 19-Aug-13 at 21:38.
    Podcast * dotfiles * My Wiki * Blender/Stackexchange
    ideasman42<at>gmail.com



Page 1 of 10 123 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •