This guide will walk through how to export a 3D model with animation to the FBX format so it can be imported into Lens Studio. For the purpose of this guide, we’re using Daz Studio 4.10.
Before exporting to FBX format we have to make sure that the animation is baked into the model so we can successfully import the animation with the model into Lens Studio.
To bake the animation, first select the Scene panel.
Then select the root object for the model and right-click on it. Then choose Select -> Select All.
This will select all the joints of our object. Now we can go ahead and bake the animation. To bake the animation select the animation and right-click the empty space of the timeline. Then, select Bake To Studio Keyframes.
This will open a pop-up window. Click Yes. Your animation is now baked and ready to be exported as a FBX file format.
To export a FBX from Daz3D, select the File -> Export… from Daz3D’s menu bar.
Select where you want to save your FBX file and then click Save. This will open the FBX Export Options window. In the Export Options, make sure the Figures, Props, Animation and Morphs are selected. Then in the Output Options, set the FBX version to FBX 2014 -- Binary and also make sure Embed Textures, Merge Diffuse and Opacity Textures, Merge Clothing Into Figure Skeleton, Allow Degraded Skinning, Allow Degraded Scaling and Collapse UV Tiles are already checked. Refer to the image below:
Keep in mind that some textures coming from Daz3D have a resolution bigger than 2048x2048. You will need to reduce the resolution of the texture to 2048x2048 or less. To learn more about optimizing please review Performance And Optimization guide.
Finally in the FBX Export Settings window, click the Accept button.
You now have an exported FBX file that’s ready to be imported into Lens Studio. For information on importing 3D models into Lens Studio, please review the 3D Object Import guide.
Once the model is imported into Lens Studio, make sure to enable Autoplay on the Animation Mixer component to see your animation playback.