QVertexBlendAnimation

A class implementing vertex-blend morphing animation. More

Inheritance diagram of PySide6.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation

Synopsis

Functions

Detailed Description

A QVertexBlendAnimation class implements vertex-blend morphing animation to a target QGeometryRenderer . The QVertexBlendAnimation sets the correct QAttributes from the morph targets to the target geometry and calculates interpolator for the current position. Unlike with QMorphingAnimation , where the blending is controller with blend weights, the blending occurs between sequential morph targets. The actual blending between the attributes must be implemented in the material. Qt3DAnimation::QMorphPhongMaterial implements material with morphing support for phong lighting model. The blending happens between 2 attributes - ‘base’ and ‘target’. The names for the base and target attributes are taken from the morph target names, where the base attribute retains the name it already has and the target attribute name gets ‘Target’ appended to the name. The interpolator can be set as a QParameter to the used material. All morph targets in the animation should contain the attributes with same names as those in the base geometry.

class PySide6.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation([parent=None])
Parameters

parentPySide6.QtCore.QObject

Construct a new QVertexBlendAnimation with parent.

PySide6.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.addMorphTarget(target)
Parameters

targetPySide6.Qt3DAnimation.Qt3DAnimation.QMorphTarget

Add new morph target at the end of the animation.

PySide6.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.interpolator()
Return type

float

PySide6.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.interpolatorChanged(interpolator)
Parameters

interpolator – float

PySide6.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.morphTargetList()
Return type

Return morph target list.

PySide6.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.removeMorphTarget(target)
Parameters

targetPySide6.Qt3DAnimation.Qt3DAnimation.QMorphTarget

Remove morph target from the animation.

PySide6.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.setMorphTargets(targets)
Parameters

targets

Set morph targets to animation. Old targets are cleared.

PySide6.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.setTarget(target)
Parameters

targetPySide6.Qt3DRender.Qt3DRender.QGeometryRenderer

See also

target()

PySide6.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.setTargetName(name)
Parameters

name – str

See also

targetName()

PySide6.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.setTargetPositions(targetPositions)
Parameters

targetPositions

PySide6.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.target()
Return type

PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer

See also

setTarget()

PySide6.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.targetChanged(target)
Parameters

targetPySide6.Qt3DRender.Qt3DRender.QGeometryRenderer

PySide6.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.targetName()
Return type

str

See also

setTargetName()

PySide6.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.targetNameChanged(name)
Parameters

name – str

PySide6.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.targetPositions()
Return type

PySide6.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.targetPositionsChanged(targetPositions)
Parameters

targetPositions