Thanks for the great efforts, I will download the stylesheets soon. Yay! John On Thu, Feb 19, 2026 at 11:59 PM Don Brutzman brutzman@users.sourceforge.net wrote: The problem is that X3dToJson.xslt was not handling these as SFNode types. Now fixed. Excerpt: <xsl:variable name="SFNodeType" select=" ($fieldName = 'acousticProperties') or ($fieldName = 'baseTexture') or ($fieldName = 'emissiveTexture') or ($fieldName = 'normalTexture') or ($fieldName = 'occlusionTexture') or ($fieldName = 'metallicRoughnessTexture')...
Sure, -acousticProperties is an SFNode (JSON object), but X3dToJson.xslt treats it as an MFNode (JSON array). If you look at the online JSON object (I saved a snippet before for you to look at--pardon the bolding), you will see that it;'s an MFNode. Please remove the [] around the property value for the property name "-acousticProperties", such that the property value becomes an object, and not an array. What it should look like: { "Shape": { "-geometry": { "Box": { } }, "-appearance": { "Appearance":...
Just got your email. Thanks. Please close when ready. John On Thu, Feb 19, 2026 at 11:11 AM Don Brutzman brutzman@users.sourceforge.net wrote: I located and added the missing type assignment of SFNode for AcousticPropertis in X3dToJson.xslt stylesheet. Now converting correctly. Thanks for noting this issue. - https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/AllAudioGraphNodesTest.json https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/AllAudioGraphNodesTest.json...
Can we do the same thing for this that we did for #51, -acousticProperties? Change X3dToJson.xslt. See online example that is wrong. This: "-baseTexture":[ { "ImageTexture": { [snip] } } ], [ should become ] "-baseTexture": { "ImageTexture": { [snip] } } ======================
Can we do the same thing for this that we did for #51, -acousticProperties? Change X3dToJson.xslt. See online example that is wrong. This: "-baseTexture":[ { "ImageTexture": { [snip] } } ], ================================= Should become this: ~~~ "-baseTexture": { "ImageTexture": { [snip] } } ~~~ ======================
PhysicalMaterial.baseTexture should be an object in JSON, not an JSON array
Can we do the same thing for this that we did for #51, -acousticProperties? Change X3dToJson.xslt. See online example that is wrong. This: "-baseTexture": { "ImageTexture": { [snip } } ], ================================= Should become this: "-baseTexture": { "ImageTexture": { [snip] } } ======================
-acousticProperties should be a JSON object, not a JSON array in X3D JSON