FlutterSceneVrmBinding class final
Renderer binding from flvtterm's core runtime to Flutter Scene.
The binding keeps Flutter Scene types in this optional package. Node transforms, mesh-component visibility, and supported morph target weights are applied directly. Materials produced by FlutterSceneVrmAsset also accept independent expression-driven texture transforms through the adapter's exact-version material seam.
Constructors
- FlutterSceneVrmBinding.fromRootNode(Node root, {required VrmModel model, FlutterSceneVrmBindingOptions? options, FlutterSceneSkinReduction? skinReduction})
- Creates a binding for a Flutter Scene GLB root.
Properties
-
capabilityWarnings
→ List<
VrmDiagnostic> -
Warnings for renderer features this adapter cannot currently mutate.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- model → VrmModel
-
Parsed VRM model for the same GLB bytes.
final
- modelRootMotionTransform ↔ VrmMatrix4
-
Runtime-owned root motion transform, composed below app/world placement.
getter/setter pair
- modelWorldTransform → VrmMatrix4
-
Current transform from source glTF model space to renderer world space.
no setter
- root → Node
-
Flutter Scene root for the loaded avatar.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sceneTint ↔ Vector3
-
A linear colour multiplied into every material's base colour factor,
composed with VRM expression colour binds, so a character whose
materials draw unlit can still take the scene's light: warm at sunset,
dim and cool at night. White (the default) leaves the materials as
imported.
getter/setter pair
- supportsVisibleMorphTargets → bool
-
Whether every morph-bearing mesh in this binding has visible, reusable
Flutter Scene morph geometry.
no setter
Methods
-
beginFrame(
) → void - Called before a runtime frame is applied.
-
commitFrame(
) → void - Called after a runtime frame is applied.
-
materialByGltfIndex(
int materialIndex) → VrmMaterialBinding - Returns a material binding for the glTF material index.
-
meshByNodeIndex(
int nodeIndex) → VrmMeshBinding? - Returns a mesh binding for the glTF node index, if one exists.
-
nodeByGltfIndex(
int nodeIndex) → VrmNodeBinding - Returns a node binding for the glTF node index.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
worldPointFromScene(
Vector3 point) → VrmVector3 - Converts a point in Flutter Scene world coordinates, such as a camera position, into the core world space of modelWorldTransform and node world transforms, which leave out the importer's handedness conversion.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited