[x3d-public] Updated X3D4 JSON schema to include EnvironmentLight/IBL
John Carlson
yottzumm at gmail.com
Fri Feb 5 04:46:39 PST 2021
Updated. Added EnvironmentLight.
Still at:
https://raw.githubusercontent.com/coderextreme/X3DJSONLD/master/src/main/schema/x3d-4.0-JSONSchema.json
Use, abuse, contribute, distribute!
I don't have any examples, if someone wants to share?
John
On 2/4/21 11: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"
> },
>
More information about the x3d-public
mailing list