We're making great progress on this issue - here's a status dump of the different threads of work as per 9th May:
Must have for shippable
(technically) optional for shipping a release but we commited for having it in 0.24
(technically) optional for shipping a release
Future work
Original ticket
Consider the Color component as applied to a Mesh3D archetype. Does the Color specify the color of faces, edges, or vertices?
To support this, we could introduced tagged components, allowing each entity to have multiple instances of the same component, if they have different tags.
Each (Tag, ComponentName) tuple would be its own column of data.
Workarounds
For now we can introduce multiple components instead: SolidColor, EdgeColor, VertexColor, etc
References
https://www.flecs.dev/flecs/md_docs_2Relationships.html
We're making great progress on this issue - here's a status dump of the different threads of work as per 9th May:
Must have for shippable
Boxes3D/Ellipsoids3D/Capsules3D#9889ViewCoordinatescomponent can be tagged withPinholeorViewCoordinatesarchetype, causing confusion #9917re_query/src/latest_at.rsSee #10005.Component::descriptor(Remove untaggedComponent::descriptor()#10038)ComponentDescriptor::newtoComponentDescriptorUntagged::newwhich can can be converted to a regular descriptor by supplying an archetype name & fieldComponentBatch::descriptoror make it less error prone somehowInstancePoses3Dwith transform properties ofBoxes3D/Ellipsoids3D/Capsules3D#10010 has the potential to regress things)AnyValuesshould use argument names to setarchetype_field_namemetadata #9906VisualizerOverridesstill works fine (some doubt was previously voiced Make remainders ofLatestAtResultstag-aware #10005 (comment))(technically) optional for shipping a release but we commited for having it in 0.24
indicated_visualizersmechanic(technically) optional for shipping a release
re_dataframe(Tagged components milestone 3: descriptor-driven and partial queries #8293)component_typesand simplify data model #10632ComponentDescriptorInternComponentDescriptorlike we intern strings #9903Future work
component_ui_registryusing tags all the wayOriginal ticket
Consider the
Colorcomponent as applied to aMesh3Darchetype. Does theColorspecify the color of faces, edges, or vertices?To support this, we could introduced tagged components, allowing each entity to have multiple instances of the same component, if they have different tags.
Each
(Tag, ComponentName)tuple would be its own column of data.Workarounds
For now we can introduce multiple components instead:
SolidColor,EdgeColor,VertexColor, etcReferences
https://www.flecs.dev/flecs/md_docs_2Relationships.html