Details
-
Task
-
Resolution: Fixed
-
P2: Important
-
None
-
None
-
5
-
b8f90232b38413a13718644aa3ef45f2ee225e29
-
Qt Quick 3D - 2021 Week 15/16, Qt Quick 3D - 2021 Week 17/18, Qt Quick 3D - 2021 Week 31/32
Description
Consider supporting ParticleShape3D class with positions defined in data file. So something like:
... shape: ModelShape3D { source: "my_torus.cbor" random: false } ...
Some thoughts:
- Format could be CBOR similar to timeline binary keyframes. Just a set of QVector3D positions or something more (sizes, colors etc.)?
- Have "bool random" property which defines if positions are used randomly or in order of appearance. Supporting in-order gives possibility to sort the data so that emitting happens e.g. from top to bottom, from outside-in etc.
- What kind of helper app could we provide for generating the data? It could allow generating n amount of points from current shapes or a model mesh. Then as a second step it could allow ordering the data based on some direction & smoothing.
- Emitting from this kind of shape would be very fast compared to live calculation of positions from more complicated shape/model.