[x3d-public] The following changes have been made to the draft X3D4 JSON schema (check it out!)

John Carlson yottzumm at gmail.com
Thu Feb 4 21:12:41 PST 2021


X3D JSON Schema

Changes to global, skinBindingCoord(s), alphaCutoff and alphaMode.

Complete source is here:

https://raw.githubusercontent.com/coderextreme/X3DJSONLD/master/src/main/schema/x3d-4.0-JSONSchema.json

I'll check for a new version of meta-schema soon!

Don, would you want me to start on schema generation with XSLT before 
you jump on board?

John


diff --git a/src/main/schema/x3d-4.0-JSONSchema.json 
b/src/main/schema/x3d-4.0-JSONSchema.json
index 95e054b48..f10f28081 100644
--- a/src/main/schema/x3d-4.0-JSONSchema.json
+++ b/src/main/schema/x3d-4.0-JSONSchema.json
@@ -11121,6 +11121,11 @@
                "pattern": "^(\\s|\\S)*$",
                "type": "string"
              },
+            "@global": {
+              "pattern": "^\\s*(true|false)\\s*$",
+              "default": false,
+              "type": "boolean"
+            },
              "@load": {
                "pattern": "^\\s*(true|false)\\s*$",
                "default": true,
@@ -13717,10 +13722,10 @@
              "-skin": {
                "$ref": 
"#/definitions/-Group-Transform-Shape-IndexedFaceSetMFNode"
              },
-            "-skinBindingCoords": {
+            "-skinBindingCoord": {
                "$ref": "#/definitions/-X3DCoordinateNodeSFNode"
              },
-            "-skinBindingNormals": {
+            "-skinBindingNormal": {
                "$ref": "#/definitions/-X3DNormalNodeSFNode"
              },
              "-skinCoord": {
@@ -20897,6 +20902,24 @@
              "-acousticProperties": {
                "$ref": "#/definitions/-AcousticPropertiesSFNode"
              },
+            "@alphaCutoff": {
+              "pattern": 
"^(\\s)*([+-]?((0|[1-9][0-9]*)(\\.[0-9]*)?|\\.[0-9]+)([Ee][+-]?[0-9]+)?)(\\s)*$",
+              "maximum": 1,
+              "minimum": 0,
+              "default": 0.5,
+              "type": "number"
+            },
+            "@alphaMode": {
+              "pattern": "^(\\s|\\S)*$",
+              "enum": [
+                "AUTO",
+                "OPAQUE",
+                "MASK",
+                "BLEND"
+              ],
+              "default": "AUTO",
+              "type": "string"
+            },
              "-fillProperties": {
                "$ref": "#/definitions/-FillPropertiesSFNode"
              },




More information about the x3d-public mailing list