Enrich your Vircadia experience by having 3D models in your domain with animations. For example, you can import the 3D model of a flag that appears to flutter with the wind using this feature.
You need to be familiar with creating animations in 3D modeling tools such as Blender and Maya before importing an animation into Vircadia.
Before you import an animation into Vircadia, adjust some settings in the 3D modeling tool of your choice to ensure that it plays smoothly.
We recommend setting the framerate to 30 fps as a good compromise between smoothness and file size.
Bake your animation channels, key frames, and in-betweens to ensure that Vircadia reads everything. This is to ensure that your animation doesn't stop and start, but appears smooth and flows through each movement.
Prepare to export the skeleton and frames that are being used in the animation.
Disable any kind of keyframe reduction. For example, in Blender, set the "simplify" setting to 0.00 when exporting an FBX file otherwise the animation may not play correctly.
Export your animation as an FBX file. (Reading animations from other formats like glTF is currently not supported.)
Upload this FBX file to a cloud server and copy the URL.
Once you complete uploading your animation's FBX file, you can import the 3D model and it's animation into Vircadia.
Click on the 'MODEL' icon and enter your 3D model's URL. If you have saved your 3D model's FBX file with the animation, the model's URL and the animation's URL will be the same. Otherwise, your animation is saved as a separate FBX file.
In the 'Properties' tab, scroll down to 'Animation' and paste the animation's URL.
You can edit the following animation properties:
Enable this to play your animation automatically when a user loads a domain.
Select this property to play your animation in a continuous loop.
Enable this to let the animation move through space. This means that the joints will not only rotate, but translate through three dimensions.
Select to pause your animation at a particular frame.
Enter the frame at which you want to pause or hold your animation.
This is the first frame from when your want your animation to start.
This is the last frame where you want your animation to stop. It will not play beyond this specified frame.
This is the animation's framerate.
You can also control an animation's properties and when it starts playing with an entity script.