From 8799ca15b792cb1e03f98cae8bf3c6dddb07a5a9 Mon Sep 17 00:00:00 2001 From: Richard Vargas Date: Tue, 25 Aug 2020 18:01:24 -0700 Subject: [PATCH] =?UTF-8?q?Added=20metadata=20json=20table=20back=20to=20t?= =?UTF-8?q?he=20format=20spec.=20unsure=20of=20reason=20f=E2=80=A6=20(#95)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Added metadata json table back to the format spec. * Update Indexed 3d Scene Layer Format Specification.md Changed the folderPattern default to basic. Co-authored-by: Richard Vargas Co-authored-by: Tamrat Belayneh --- ...xed 3d Scene Layer Format Specification.md | 36 ++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/format/Indexed 3d Scene Layer Format Specification.md b/format/Indexed 3d Scene Layer Format Specification.md index 91861bde..3f5bcedc 100644 --- a/format/Indexed 3d Scene Layer Format Specification.md +++ b/format/Indexed 3d Scene Layer Format Specification.md @@ -33,6 +33,7 @@ The Indexed 3D Scene Layer (I3S) format is an open 3D content delivery format us  [Scene Layer Packages](#SLPK)
  [1.7 SLPK Structure](#1.7-SLPK-Structure)
  [1.6 SLPK Structure](#1.6-SLPK-Structure)
+  [Metadata](#metadata)
# Introduction to Scene Layers @@ -257,7 +258,6 @@ Here are a few examples of SLPK file extensions: In I3S verison 1.7, an [MD5](https://en.wikipedia.org/wiki/MD5) [hash](../docs/1.7/slpk_hashtable.cmn.md) is used to improve loading time. The hash must be the last item at the end of the central directory and named `@specialIndexFileHASH128@`. - #### Example 1.7 SLPK Structure Summary for 3D Objects ``` @@ -347,7 +347,41 @@ Paths are the same as in the API, but without the `layers/0` prefix. Exceptions +--metadata.json ``` +**Metadata** + +Scene layer packages (SLPK) contain metadata information regarding its content in the metadata.json file. The following entries are required and must be of the specified type. +|Property|Details| +|--------|-------| +|folderPattern | One of {BASIC, EXTENDED},
Default is {BASIC} | +|archiveCompressionType | One of {STORE, DEFLATE64, [DEFLATE]},
Default is {STORE} | +|resourceCompressionType | One of {GZIP, NONE}, Default is {GZIP} | +|I3SVersion | One of {1.2, 1.3, 1.4, 1.6, 1.7, 2.0},
Default is {1.7} (Point cloud is {2.0}) | +|nodeCount | Total number of nodes in the SLPK | + +
+**Example of 1.7 Metadata json** +``` +.\metadata.json +{ + "folderPattern":"BASIC", + "archiveCompressionType":"STORE", + "resourceCompressionType":"GZIP", + "I3SVersion":"1.7", + "nodeCount":62 +} +``` +**Example of 2.0 Metadata json** +``` +.\metadata.json +{ + "folderPattern":"BASIC", + "archiveCompressionType":"STORE", + "resourceCompressionType":"GZIP", + "I3SVersion":"2.0", + "nodeCount":1156 +} +```