- **CTB:**
   - (Improvement) Split `uint PerLayerSettings` into `byte AntiAliasFlag`, `ushort Padding` and `byte PerLayerSettings`
   - (Improvement) Change the way and value set to `PerLayerSettings`, this may fix some recent problems where printer doesn't respect per layer settings?
This commit is contained in:
Tiago Conceição
2022-12-29 21:00:19 +00:00
parent c425075400
commit 0c28eec946
9 changed files with 135 additions and 110 deletions
+4 -1
View File
@@ -85,7 +85,10 @@ struct SLICER_INFO {
uint MachineNameAddress <fgcolor=cBlack, bgcolor=cRed>;
uint MachineNameSize <fgcolor=cBlack, bgcolor=cRed>;
uint PerLayerSettings <fgcolor=cBlack, bgcolor=cRed, format=hex>; // 0/8 for cbddlp files, 0xF (15) for ctb files, 0x2000000F (536870927) for v3 ctb and 1073741839 for v4 ctb files to allow per layer parameters
//uint PerLayerSettings <fgcolor=cBlack, bgcolor=cRed, format=hex>; // 0 to not support, 0x20 (32) for v3 ctb and 1073741839 for v4 ctb files to allow per layer parameters
ubyte AntiAliasFlag <fgcolor=cBlack, bgcolor=cRed>; // 0 [No AA] / 8 [AA] for cbddlp files, 7(0x7) [No AA] / 15(0x0F) [AA] for ctb files
ushort Padding <fgcolor=cBlack, bgcolor=cRed>;
ubyte PerLayerSettings <fgcolor=cBlack, bgcolor=cRed, format=hex>; // 0 to not support, 0x20 for v3 ctb and 0x40 to 0x50 for v4 ctb files to allow per layer parameters, 16 * version?
uint TimestampMinutes <fgcolor=cBlack, bgcolor=cRed>;
uint AntiAliasLevel <fgcolor=cBlack, bgcolor=cRed>;
uint SoftwareVersion <fgcolor=cBlack, bgcolor=cRed, format=hex>; // ctb v3 = 17171200 | ctb v4 pro = 16777216
+6 -4
View File
@@ -68,9 +68,11 @@ struct DECRYPTED_HEADER {
float RestTimeAfterLift;
uint PrinterNameOffset;
uint PrinterNameSize;
uint Unknown4;
ubyte AntiAliasFlag <fgcolor=cBlack, bgcolor=cRed>; // 7(0x7) [No AA] / 15(0x0F) [AA]
ushort Padding <fgcolor=cBlack, bgcolor=cRed>;
ubyte PerLayerSettings <fgcolor=cBlack, bgcolor=cRed, format=hex>; // 0 to not support, 0x40 or 0x50, 16 * version?
uint unknown4;
uint unknown5;
uint unknown6;
float RestTimeAfterRetract;
float RestTimeAfterLift;
uint TransitionLayerCount;
@@ -84,9 +86,9 @@ struct DECRYPTED_HEADER {
float RestTimeAfterLift;
float RestTimeBeforeLift;
float BottomRetractHeight;
float unknown7;
float unknown6;
uint unknown7;
uint unknown8;
uint unknown9;
uint LastLayerIndex;
uint Padding3;
uint Padding4;