flvtterm 0.2.7
flvtterm: ^0.2.7 copied to clipboard
Pure Dart VRM and VRMA parsing/runtime core.
0.2.7 #
-
0.2.2 to 0.2.6 were not published to pub.dev; this release includes their entries below as well as these. It is also the first pub.dev release of the Flutter Scene adapter,
flvtterm_flutter_scene. -
Flutter Scene adapter: the exact pin moves from Flutter Scene 0.23.0 to 0.24.3. The adapter's sources are unchanged; its tests pass against the hosted 0.24.3 package. The viewer example pins the same version.
-
Flutter Scene adapter:
FlutterSceneVrmBinding.sceneTintmultiplies a linear colour into every material's base colour factor, composed with VRM expression colour binds, so a character whose materials draw unlit can take the scene's light (warm at sunset, dim and cool at night). White, the default, leaves the materials as imported. -
Flutter Scene adapter:
FlutterSceneVrmBinding.worldPointFromSceneconverts a Flutter Scene world point, such as a camera position, into the core world space ofmodelWorldTransformand node world transforms, which leave out the importer's Z flip. World-space targets such aslookAtWorldneed it: an unconverted camera position lands behind a character that faces it on screen, saturating bone LookAt to one side. -
Flutter Scene adapter: the straight-alpha textures the material corrections re-decode build their mip chains on a background isolate (
generateMipChainAsync+uploadMipLevels) instead of throughTexture2D.fromPixelson the caller. For a VRM's large color textures that generation was most of the character load's UI-isolate work; only the GPU upload stays there. -
Flutter Scene adapter: the corrected unlit material adds glTF emission (emissive texture, factor,
KHR_materials_emissive_strength, texture transform and UV set), so MToon materials that fall back to it keep their emissive detail such as VRoid hair highlight bands. VRMemissionColormaterial binds now reach unlit materials instead of warning. The unlitMaterialInfoblock grows from 48 to 64 bytes; existing member offsets are unchanged. -
Flutter Scene adapter:
FlutterSceneVrmAsset.fromGlbBytes/fromGlbAssetandFlutterSceneResolvedImport.fromGltftakejointPaletteCapacity, the largest skin the renderer animates. A skin listing more joints is replaced per mesh node by the joints that mesh weights, withJOINTS_0and the inverse-bind matrices rewritten for the renderer only; the parsed model is unchanged and the binding packs its morph geometry through the same subset (FlutterSceneSkinReduction, reported asflutterScene.skinReduced). A mesh weighting more joints than the capacity keeps its authored skin. The default, null, leaves every skin as authored. -
Make every file under
lib/srcits own library instead of apartof one library. The exported API is unchanged. The package now depends onmeta: the constructors the parsers call and six members that only flvtterm uses are public under@internal, so the analyzer warns when another package uses them.
0.2.6 #
- Keep one copy of a GLB's BIN chunk.
GltfAsset.binaryChunkis that copy; the first buffer and every bufferView image are now views of it instead of further copies, which removes one BIN-sized and one image-sized allocation per loaded model. The bytes stay unmodifiable and independent of the bytes passed to the parser. A bufferView image'sdata.offsetInBytesmay now be non-zero. Data-URI bytes are no longer copied a second time. - Add
adoptBytestoGltfAsset.parse/tryParse,VrmModel.parseGlb/tryParseGlb,VrmAnimationAsset.parse/tryParseand the adapter'sFlutterSceneVrmAsset.fromGlbBytes. A caller that hands its GLB bytes over and no longer changes them gets views of those bytes instead of a copy of the BIN chunk. The default still copies.fromGlbAssetadopts the bytes it loads from the bundle. - Freeze the parsed JSON tree once. Reading a field of an already frozen
object no longer deep-copies its subtree, so
extensionsandextrasvalues are the tree's own unmodifiable maps. Parsing a 26.8 MB VRM is about 10% faster.
0.2.5 #
- Promote the well-known VRM 0.x custom expression name "Surprised"
(case-insensitive,
presetName: unknown) to thesurprisedpreset during legacy normalization, with avrm0.wellKnownCustomExpressionPromoteddiagnostic. Presets declared throughpresetNamekeep precedence.
0.2.4 #
- Cache immutable first-person mesh classification and decoded animation accessors instead of rebuilding them during every runtime update.
- Find animation keyframes with a binary search rather than a linear scan.
- Reuse Flutter Scene node-transform conversions until the scene replaces the backing matrix, removing recurring SpringBone allocation churn.
- Skip unchanged rest-pose and model-root writes during runtime frames.
0.2.3 #
- Preserve glTF and VRM material semantics in the Flutter Scene import path, including straight-alpha textures, alpha modes, double-sided rendering, sampler settings, and independent texture UV transforms.
- Preserve per-texture UV transform bases when applying expression binds and expose an optional renderer-neutral per-texture material binding.
- Correct MToon texture semantics and classify VRM 0.x transparent Z-write materials as unlit, with adapter capability diagnostics for remaining Flutter Scene limitations.
0.2.2 #
- Add visible POSITION/NORMAL morph-target composition to the pinned Flutter Scene 0.17.0 adapter, using one reusable vertex buffer per supported primitive and one upload per dirty frame.
- Rotate VRMA hips translation from its source-parent rest frame into model space before publishing model-root motion.
- Add regression coverage for blended/reset morph geometry and rotated-parent VRMA hips translation.
0.2.1 #
- Reorganize core sources by subsystem and reduce parser/runtime duplication without changing the public API.
- Preserve strict data-URI diagnostics and exception-frame material resets with regression coverage.
- Remove library lockfile noise and streamline examples and tests.
0.2.0 #
- Add VRM 0.x parsing, validation, typed legacy metadata, normalized runtime expressions/LookAt/first-person/SpringBone support, coordinate compatibility, and legacy MToon fallback metadata.
0.1.0 #
- Initial version.