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

Don Brutzman brutzman at nps.edu
Thu Feb 4 23:55:56 PST 2021


John, am still working to finish X3D4.  Real close now...

If you start with X3DUOM, things should be straightforward.  Several more changes got checked in tonight, further review tomorrow.

Am looking forward to checking JSON schema, and validating JSON versions of X3D Examples archives, when things settle down.  Next 1-2 weeks I hope.

On 2/4/2021 9:12 PM, John Carlson wrote:
> 
> 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"
>               },
> 

all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman



More information about the x3d-public mailing list