QML is more interesting as a video effects technology when it is extended with QtQuick3D.
Textured 3D scenes can be modeled in a tool like Blender. This can be exported as a Wavefront *.obj file which the QtQuick3D asset importer can load. Then frames of video can be applied as textures to named pieces of the model, while the camera view is animated for the duration of the effect.
If your QML imports the org.webvfx.WebVfx
namespace, this will make available some additional useful QML elements.
BlenderItem
- this is an
Item3D that applies a coordinate system transformation to convert from Blenders coordinate system to QtQuick3D. If the mesh was exported from Blender, you should load it inside a BlenderItem
instead of an ordinary Item3D
. AnimatedCamera
- this is a
Camera that supports an additional animationData
property. This property should be set to the JSON camera path data exported by the Blender addon in tools/blender/webvfx-camera.py
TextTexture
- this is a
Text element that renders itself to an image which can then be used as a 3D texture. The texture image is accessed using the textureImage
property.See demo/examples/transition-demo3d.qml for an example.