460 likes | 672 Views
FBX ® - A Platform-Independent 3D Data Interchange Technology. Cyrille Fauvel ADN Sparks. About the Presenter. Cyrille Fauvel Autodesk Developer Network
E N D
FBX® - A Platform-Independent 3D Data Interchange Technology Cyrille Fauvel ADN Sparks
About the Presenter Cyrille Fauvel Autodesk Developer Network Cyrille is a member of the M&E workgroup of the Autodesk Developer Network (ADN) team, providing developer support, training, and conference presentations on AutoCAD, RealDWG, Inventor, MapGuide, Maya, and FBX API. He joined Autodesk in 1994 as an AutoCAD developer based in Switzerland and California, USA. Later moved to the Developer Support group, and Consulting division. Cyrille graduated in Mechanics and Electronics in France, worked as a teacher and C++ developer for a 3rd party developer on AutoCAD. He is fluent in six programming languages, tries to learn Japanese, has two kids, plays the guitar and trying piano, likes reading, love sailing on oceans, sports, and hand-ball in particular.
Autodesk Developer Network • Access to almost all Autodesk software and SDK’s • Includes early access to beta software • Members-only website with thousands of technical articles • Unlimited technical support • Product direction through conferences • Marketing benefits • Exposure on autodesk.com • Promotional opportunities • One to three free API training classes • Based on user level www.autodesk.com/joinadn
Class Summary This class will focus on learning how to integrate FBX ®, Autodesk's primary file format to communicate between M&E solutions using C++ and Python. In this class you explore how FBXcan facilitate high-fidelity 3D data exchange between applications in your pipeline including several Autodesk® content creation packages, and how to some extents be used in other contexts. We will review the limitations and possible issues in using FBX as well.
Learning Objectives At the end of this class, you will be able to: • Explain what FBX is about and its integration in Autodesk products • Be able to decide whether FBX is a solution to your workflow issue • Explain the advantages / inconvenient of using FBX versus a private file format • Create FBX plug-in extension to support your private data in existing pipelines • Connect your application (or pipeline) to FBX • Publish / Import FBX file into your application / (or pipeline)
#1 - 3D modeling DWG CAD • AutoCAD / Inventor • ASM ( manifold, non-manifold 3d geometry ) • Boundary representation topological model • Accuracy / Precision versus Realistic • 3ds Max, Maya • Mesh, Nurbs • Speed / Rendering versus Precision
Tessellation Lose of model history Not fully round-trip
Consistent Materials Realistic & consistent visual materials Common materials definition and catalog Custom visual materials Materials interop Materials preview Materials UI
Autodesk workflow DWG CAD FBX M&E Data Preparation Engine DirectConnectorTranslators
FBX versus RealDWG • Accuracy / Precision versus Realistic • Speed / Rendering versus Precision • Layered Animation evaluation engine • Solvers • PhysX • RealDWG • AutoCAD native file format • ASM ( manifold, non-manifold 3d geometry ) • Windows only • Not Free • FBX • Mesh, Nurbs • Tesselation • Multi-platform • Not Round-trip with ASM • Free
Open & Free FBX 7.2.0 project file ; Copyright (C) 1997-2010 Autodesk Inc. and/or its licensors. ; All rights reserved. ; ---------------------------------------------------- FBXHeaderExtension: { FBXHeaderVersion: 1003 FBXVersion: 7200 CreationTimeStamp: { Version: 1000 Year: 2011 Month: 11 Day: 19 Hour: 12 Minute: 33 Second: 2 Millisecond: 96 } Creator: "FBX SDK/FBX Plugins version 2012.1" SceneInfo: "SceneInfo::GlobalInfo", "UserData" { Type: "UserData“ … • Free • Free download from autodesk.com • Open • SDK - Developer Center • http://www.autodesk.com/developfbx • Binary and ASCII format • Open, but not open source • Because of the Solvers • Comes with utilities (UI or command line) • File converter (3ds, Collada, DXF, OBJ) • Viewer • Explorer • Take Manager
Autodesk MotionBuilder native file format • Native MotionBuilder FileFormat • Support at least all MoBu features • M&E platform's interchange information platform
Feature • Geometry • Polygon Mesh, NURBS, Spline, Instances, References, • Lights • Cameras • Textures & Materials • Deformations, Bake information • Constraints • Animation, Rigs, Skeletons, • Units, Layers • Embedded media (both binary and ASCII) • and more…
Web ready • Quicktime FBX plug-in • Internet Explorer 8+, Firefox 3+, Safari 3+, Chrome <script type="text/javascript“ src="AC_QuickTime.js"></script> <script type="text/javascript"> QT_WriteOBJECT_XHTML(‘cyrille.fbx’, '800', '600', '', 'autoplay', 'true', 'emb#bgcolor', 'black', 'align', 'middle'); </script> • Limited to the FBX binary file format for performance reason
API • C++ • Multi-platform, multi-version (see next Slide for details) • Release and Debug • Python • Python version (2.6 or 3.1)
C++ Compiler support • Release and Debug
C++ Sample See demo
Python Sample See demo
FBX Extensions SDK • Our answer to your most requested feature: • Want to have the spec of the FBX file format • Want to customize what FBX export/import from DCCs • You will find in the Extensions SDK: • The source code of the FBX and Collada readers/writers • Entry points to intervene during the FBX export/import process
Traditional approach Proprietary Plug-in Proprietary File Format • You wrote your own File I/O plug-in and file format • Advantages: • You have full control over what is exported / imported from the DCC • Disadvantages: • You have to do all the work yourself • Import may be challenging
“off the shelf” approach FBX Plug-in FBX File Format • You use an “off the shelf” solution like FBX • Advantages: • It’s free, it’s supported • Disadvantages: • You had no control over what was being exported / imported • You rely on the FBX plug-in to do all the work
FBX Extensions SDK – Best of both worlds By using the FBX Extensions SDK, your plug-in is invoked during the Import/Export process. Your plug-in is free to take action before, during, or after FBX have processed the scene.
FBX Extensions SDK – Best of both worlds Proprietary Plug-in FBX Plug-in FBX File Format • Advantages: • We provide the backbone • Highly customizable • Documentation (DCCs and FBX SDK) and source code available (FBX importer/exporter) • Supported by Autodesk
FBX Extensions SDK – Best of both worlds Proprietary Plug-in FBX Plug-in FBX File Format In most cases, your extension will also link with the DCC, so you can operate on both the DCC scene and the FBX scene. Your extension must be registered to the FBX Plug-in in order to be invoked during the Import/Export process.
Extension sample See demo
Sample • Preview an AutoCAD scene in a FBX Viewer inside AutoCAD • with animation • with material • ready to be used in 3ds Max Design or Maya
Significant 3rd Parties using FBX • EIDOS • Illuminate Labs • Quest3D • Microsoft XNA • Unity • JDA • DigitalExtremes • EuroCom • SideEffects • Maxon • Luxology • Epic (Unreal) • PixelActive (CityScape) • Goalem • And more…
FBX SDK Updated regularly Multi-platform
FBX Extension SDK Multi-platform
FBX Tools Updated regularly Release cycle independent of product releases Archive of older versions also accessible
Web Resources for FBX • Autodesk AREA http://area.autodesk.com/ • http://area.autodesk.com/forum/autodesk-fbx/ • http://area.autodesk.com/blogs/chris • Support • fbxplugins@autodesk.com • fbxsdk@autodesk.com • Online documentation • http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=16707768
Additional Resources for FBX • www.autodesk.com/developfbx • Autodesk Developer Network – Sparks program • Annual subscription • Get access to almost all the software for development purposes • Technical and Marketing support • Direct technical support via DevHelp online • Trainings and Mentoring • www.autodesk.com/joinadn
Comment from the WEB If you have not used FBX in a few versions, give it a second chance as there are lots of updates and more features making it a great option for helping your art team work in the software of there choice.
Autodesk University Session Feedback Complete the AU Conference Survey at a survey station and receive an AU 2011 T-Shirt. • Your feedback is very important to Autodesk! • You can complete the session survey on your mobile device, PC, or at a survey station. • Each completed session survey enters you in that day’s drawing for a free AU 2012 pass. • You can help make AU 2012 better!
Autodesk, AutoCAD* [*if/when mentioned in the pertinent material, followed by an alphabetical list of all other trademarks mentioned in the material] are registered trademarks or trademarks of Autodesk, Inc., and/or its subsidiaries and/or affiliates in the USA and/or other countries. All other brand names, product names, or trademarks belong to their respective holders. Autodesk reserves the right to alter product and services offerings, and specifications and pricing at any time without notice, and is not responsible for typographical or graphical errors that may appear in this document. © 2011 Autodesk, Inc. All rights reserved.