cueglow / glowdtf

Tech Demo for Controlling GDTF Lights over Art-Net
MIT License
8 stars 0 forks source link

Calculate GDTF Channel Layout #33

Closed Firionus closed 3 years ago

Firionus commented 3 years ago

The channel layout of a DmxMode in a GDTF file is not trivial to calculate, because each DmxChannel can reference a top-level Geometry which could be inherited from by other GeometryReference elements. The DmxChannel then needs to be repeated for every GeometryReference. Each GeometryReference has its own DMX Break and Offset that dictate the DMX Address of the channels that reference its parent.

The calculation needs to be compared to the GDTF Builder (gdtf-share.com). Our implementation should result in the same layout as the GDTF Builder.

Also, the channel count can then be calculated.

All of this should be added to the GdtfWrapper

TODO:

Firionus commented 3 years ago

development started on branch gdtf-channel-layout