scene 0.2.0
scene: ^0.2.0 copied to clipboard
The engine-agnostic scene document core, the .fscene document model, stable ids, serialization, prefab composition, and diffing.
Changelog #
0.2.0 #
package:scene/schema.dart, the portable component schema model (ComponentSchema,ComponentPropertyDef, the tagged constraint taxonomy,formerNames/formerTypes).- Component schemas carry declarative editor gizmos (
ComponentSchema.gizmo, theGizmoSpecprimitive model with property-bound scalars, colors, and axes). .fsceneversion 3, component properties delta-serialize and audio attenuation settings nest; version 2 documents migrate as-is.- Sun lights carry
contactShadows,contactShadowDistance, andangularRadius. - Environment effects carry
colorGradingLut(a.cubeasset reference) andcolorGradingLutBlend. - Ambient-occlusion effects carry
indirectLight,method,sliceCount,stepsPerSlice,visibilityBitmask,thickness,thicknessHeuristic,bentNormals, andmultiBounce. - Retuned effect defaults, ambient-occlusion intensity
1.0, bloom intensity0.15, chromatic aberration0.2, auto-exposure clamps-4/4EV. .fsceneversion 2 fixes every document to the native coordinate system and migrates left-handed version 1 documents.- Removed
Handedness,UpAxis,StageMetadata.unitsPerMeter,NodeSpec.excludeFromWindingParity, andSkyEnvironmentSpec.castShadows. - Documents must declare their
.fsceneversion. SunLightSpecstores sky-driven analytic sun and cascaded-shadow settings.payloadSourcelinks a text manifest to a binary payload sidecar.TorusGeometrySpecandIcosphereGeometrySpecprocedural geometry, a torus around the Y axis and a geodesic sphere from a subdivided icosahedron.- Prefab instances add components to individual member nodes (
MemberComponent,PrefabInstanceSpec.memberComponents), andPrefabOverrideAspectaddresses one aspect of an override without re-parsing paths. ConstantEnvironment, a reflection-free environment with uniform diffuse ambient radiance.EnvironmentResourcecarriesagxWhite,agxContrast,environmentRotationY, andoverridesEffects.encodeComponentSchemas/decodeComponentSchemasmove a schema list through a manifest or cache payload, andpropertyValuesEqualcompares property values structurally.copyWithonMaterialResourceandPrefabInstanceSpec.
0.1.1 #
PhysicsSimulation.snapshot/restore(opt-in viasupportsSnapshot), world serialization for rollback prediction and lag-compensation rewind.PhysicsSimulation.setBodyPose, immediate body teleport for rollback correction (default throws on backends without it).TextureResourcecarries acontentrole (color,data,normal) describing what its pixels represent.
0.1.0 #
- Initial release, extracted from
flutter_scene. The.fscenedocument model (SceneDocument, node/resource/payload specs), stable ids (DocumentId,LocalId,IdAllocator), JSON and binary serialization (.fscene/.fsceneb), prefab composition, and structural diffing, as a pure Dart package.