Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/wiki
diff options
context:
space:
mode:
authorTiago Conceição <Tiago_caza@hotmail.com>2021-07-16 21:53:20 +0300
committerTiago Conceição <Tiago_caza@hotmail.com>2021-07-16 21:53:20 +0300
commit49d059fdc7248323d64eed7ed7517bcd18e64685 (patch)
tree9b4a0f3b99af5bade08eb35732cdece260f1877f /wiki
parent04ea32f196f2a09b9513eeed6713856962265be8 (diff)
Update ODLP.md
Diffstat (limited to 'wiki')
-rw-r--r--wiki/ODLP.md39
1 files changed, 23 insertions, 16 deletions
diff --git a/wiki/ODLP.md b/wiki/ODLP.md
index 05ed726..2748c8c 100644
--- a/wiki/ODLP.md
+++ b/wiki/ODLP.md
@@ -40,9 +40,9 @@ While this is optional and either way it must be valid to print, is highly recom
# Draft 1
-```
-#[HEADER]
-Marker=ODLPTiCo (char[8]) Extra validation beside file extension, constant
+```ini
+[HEADER]
+Marker=ODLPTiCo # (char[8]) Extra validation beside file extension, constant
Version=1 (ushort) File format revision
MachineZ=130.00 (float)
DisplayWidth=68.04 (float)
@@ -51,53 +51,60 @@ ResolutionX=1080 (uint)
ResolutionY=1080 (uint)
MirrorX=1 (byte) 0 = false | 1 = true
MirrorY=0 (byte) 0 = false | 1 = true
-ImageDataType=PNG\0\0\0\0\0 (char[8]) compressed image data type, eg: RLE or PNG or JPG or BITMAP
+PreviewDataType=RGB16\0\0\0 (char[8]) compressed image data type, eg: RLE-XXX or RGB16 or PNG or JPG or BITMAP OR other?
+LayerDataType=PNG\0\0\0\0\0 (char[8]) compressed image data type, eg: RLE-XXX or PNG or JPG or BITMAP OR other?
CustomTableSize=4 (uint) Number reserved of bytes for a custom table, this can be used for custom use of each brand, but not important for general file format
NumberOfPreviews=2 (byte) Number of previews/thumbnails on this file
LayerCount=1000 (uint) Total number of layers
LayerDefinitionsAddress=00000 (uint) Address for layer definition
-GCodeAddress=000000 (uint) gcode text address
+GCodeAddress=000000 (uint) gcode text address, size = Total file size - GCodeAddress
GCodeSize=sizeof(gcode) (uint) gcode text length
FileUpdateTime=1626451007 (uint) UNIX Timestamp
ModifiedBySize=sizeof(ModifiedBy) (uint)
-ModifiedBy=UVtools v2.15.0 (text) program/slicer who last modified the file
MachineNameSize=sizeof(MachineName) (ushort)
+ReservedBytes=000000000 (byte[512]) Reserved for future revisions of the file format
+# Down to this point everything is static size
+
+# Dynamic text fields
+ModifiedBy=UVtools v2.15.0 (text) program/slicer who last modified the file
MachineName=Phrozen Sonic Mini (string)
-#[CustomTable]
+[CustomTable]
# This can be used to store slicer specific settings or additional information
# Still both printer and software must not depend on this
ExampleOfCustomField=4 (uint)
-#[Preview 1]
+[Preview 1]
ResolutionX=400 (ushort)
ResolutionY=400 (ushort)
PreviewDataSize=sizeof(DATA) (uint)
-RLE/PNG/JPG/BITMAP
+ReservedBytes=00000000 (byte[32]) Reserved 32 bytes / 4 uints for future use
+RLE/RGB16/PNG/JPG/BITMAP
-#[Preview 2]
+[Preview 2]
ResolutionX=400 (ushort)
ResolutionY=400 (ushort)
PreviewDataSize=sizeof(DATA) (uint)
-RLE/PNG/JPG/BITMAP
+ReservedBytes=00000000 (byte[32]) Reserved 32 bytes / 4 uints for future use
+RLE/RGB16/PNG/JPG/BITMAP
-#[LayerDefinitions]
-#[Layer 1]
+[LayerDefinitions]
+[Layer 1]
DataSize=sizeof(LAYER_DATA) (uint)
DataAddress=0000
-#[Layer 2]
+[Layer 2]
DataSize=sizeof(LAYER_DATA) (uint)
DataAddress=1111
-#[Layer 3]
+[Layer 3]
DataSize=sizeof(LAYER_DATA) (uint)
DataAddress=1111 (Identical layers can point to the same data if they share the same image, sparing space on file)
RLE/PNG/JPG/BITMAP of layer 1
RLE/PNG/JPG/BITMAP of layer 2
-[GCode] (text - dynamic size)
+[GCode] (raw text - dynamic size)
;START_GCODE_BEGIN
G21;Set units to be mm
G90;Absolute positioning