flutter3d_level_scene 1.0.0-rc.1
flutter3d_level_scene: ^1.0.0-rc.1 copied to clipboard
A flutter3d level document turned into a scene: brushes into meshes, level materials into engine ones, lights, probes, decals, mirrors and camera screens into nodes.
1.0.0-rc.1 #
-
Breaking:
LevelBatchis a class with the samenode,mesh,boundsandbrush, so a batch can later say more of what it draws. -
A substance named by id is read from the catalogue.
LevelScene(materials:)takes aMaterialCatalog, and a level material naming what it is made of (physicalMaterial) takes from the substance's optical group what the document leaves unsaid: a metal is drawn metallic in its own reflectance, and the roughness is the middle of the range the catalogue gives. An author'smetallic,baseColororroughnesswins.LevelScene.substanceOffinds the substance, andmaterialFromtakes it assubstance:. -
A level material's parameter values reach its material.
materialFromwritesLevelMaterial.parametersintoRenderMaterial.parametersas the document gives them. -
A level light's strength reaches its node as it is. A level's lights are candela and lux since level format 5, so
LevelScene.lightOfno longer multiplies by the pre-1.0 unit, and a kind of level light it has no node for is refused with anArgumentError. -
The first release: a level turned into a scene, in a package of its own.
LevelScene,LevelSceneParts,LevelBatch,LevelBatchingandmeshDataOfcome fromflutter3d_editor_core. The application's level loader used to depend on the editor's document layer to reach them; now the application and the editor both stand on this, and a game resolves no editor to load a level.dart fixmoves the imports.