flutter3d_level_scene 1.0.0-rc.1 copy "flutter3d_level_scene: ^1.0.0-rc.1" to clipboard
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: LevelBatch is a class with the same node, mesh, bounds and brush, so a batch can later say more of what it draws.

  • A substance named by id is read from the catalogue. LevelScene(materials:) takes a MaterialCatalog, 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's metallic, baseColor or roughness wins. LevelScene.substanceOf finds the substance, and materialFrom takes it as substance:.

  • A level material's parameter values reach its material. materialFrom writes LevelMaterial.parameters into RenderMaterial.parameters as 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.lightOf no longer multiplies by the pre-1.0 unit, and a kind of level light it has no node for is refused with an ArgumentError.

  • The first release: a level turned into a scene, in a package of its own. LevelScene, LevelSceneParts, LevelBatch, LevelBatching and meshDataOf come from flutter3d_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 fix moves the imports.

0
likes
140
points
55
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Topics

#game-development #game-engine #level-editor #graphics

License

MIT (license)

Dependencies

flutter3d_core, flutter3d_foundation, flutter3d_hardware, flutter3d_matter, flutter3d_sim, vector_math

More

Packages that depend on flutter3d_level_scene