<div dir="ltr"><div>Don, can you convert from setLeft to setLeftTexture, or otherwise fix this in X3dToJava.xslt?<br></div><div><br>.\net\x3djsonld\data\mirror.java:91: error: cannot find symbol<br> .setLeft(new ImageTexture("leftBackTexture").setUrl(new String[] {"../resources/images/all_probes/beach_cross/beach_left.png","<a href="https://coderextreme.net/src/main/resources/images/all_probes/beach_cross/beach_left.png">https://coderextreme.net/src/main/resources/images/all_probes/beach_cross/beach_left.png</a>"}))<br> ^<br> symbol: method setLeft(ImageTexture)<br> location: class TextureBackground<br>1 error</div><div>=======================================================================</div><div>We may have to adddress some of these, but these are test files, not really sure they are valid.</div><div><br></div><div>.\net\x3djsonld\data\rubikcoord.java:106: error: incompatible types: IS cannot be converted to X3DNode<br> .addConnect(new connect().setNodeField("diffuseColor").setProtoField("diffuseColor")))))<br> ^<br>.\net\x3djsonld\data\rubikcoord.java:111: error: incompatible types: IS cannot be converted to X3DNode<br> .addConnect(new connect().setNodeField("diffuseColor").setProtoField("diffuseColor"))))))))<br> ^<br>.\net\x3djsonld\data\rubikcoord.java:125: error: incompatible types: IS cannot be converted to X3DNode<br> .addConnect(new connect().setNodeField("diffuseColor").setProtoField("x1diffuseColor")))))<br> ^<br>.\net\x3djsonld\data\rubikcoord.java:130: error: incompatible types: IS cannot be converted to X3DNode<br> .addConnect(new connect().setNodeField("diffuseColor").setProtoField("x2diffuseColor"))))))))<br> ^<br>Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output<br>4 errors<br>.\net\x3djsonld\data\rubik2x2x2.java:104: error: incompatible types: IS cannot be converted to X3DNode<br> .addConnect(new connect().setNodeField("diffuseColor").setProtoField("diffuseColor")))))<br> ^<br>.\net\x3djsonld\data\rubik2x2x2.java:109: error: incompatible types: IS cannot be converted to X3DNode<br> .addConnect(new connect().setNodeField("diffuseColor").setProtoField("diffuseColor"))))))))<br> ^<br>.\net\x3djsonld\data\rubik2x2x2.java:123: error: incompatible types: IS cannot be converted to X3DNode<br> .addConnect(new connect().setNodeField("diffuseColor").setProtoField("x1diffuseColor")))))<br> ^<br>.\net\x3djsonld\data\rubik2x2x2.java:128: error: incompatible types: IS cannot be converted to X3DNode<br> .addConnect(new connect().setNodeField("diffuseColor").setProtoField("x2diffuseColor"))))))))<br> ^<br>Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output<br>4 errors</div><div>=======================================================================</div><div>This requires more research. Perhaps X3dToJava.xslt puts out these addMaterial's?</div><div>=======================================================================<br>.\net\x3djsonld\data\Quotes.java:285: error: cannot find symbol<br> .addMaterial(new fieldValue().setName("description").setValue("ArtDeco01Material can substitute for a Material node"))))<br> ^<br> symbol: method addMaterial(fieldValue)<br> location: class ProtoInstance<br>.\net\x3djsonld\data\Quotes.java:292: error: cannot find symbol<br> .addMaterial(new fieldValue().setName("description").setValue("ArtDeco02Material can substitute for another Material node"))))<br> ^<br> symbol: method addMaterial(fieldValue)<br> location: class ProtoInstance<br>2 errors<br></div><div>======================================================================</div><div>Here's what I have for these fieldValues above:</div><div> ;<br></div><div>ProtoInstance0<br> .addFieldValue(new fieldValue().setName("description").setValue("ArtDeco01Material can substitute for a Material node"));<br>ProtoInstance1<br> .addFieldValue(new fieldValue().setName("description").setValue("ArtDeco02Material can substitute for another Material node"));<br></div><div><br></div><div>So is mine acceptable until we get the missing symbol fixed (is the addMaterial incorrect)? It looks like HelloWorldProgram.java from X3DJSAIL example is similar. Looking at the original Quotes.x3d file, it looks like there's a material containerField. Hmm. Is this example realistic? No, it's not. See attached validator below. It looks like some kind of Gordian knot?</div><div><br></div><div>Attaching Quotes.java and Quotes.x3d</div><div><b style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium;white-space:pre-line;background-color:rgb(238,238,238)">3. Performing <a href="http://www.web3d.org/specifications" title="test description or source">X3D DTD validation</a> check (<a href="http://www.web3d.org/specifications/X3dDoctypeDocumentation3.3.html" title="test reference">X3D DTD documentation</a>) ...</b><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium;white-space:pre-line;background-color:rgb(238,238,238)">
Error type: Error
SAXParseException:
Attribute "containerField" must be declared for element type "fieldValue".
Error type: Error
SAXParseException:
Attribute "containerField" must be declared for element type "fieldValue".
</span><font color="red" style="font-family:"Times New Roman";font-size:medium;white-space:pre-line;background-color:rgb(238,238,238)">Error(s) detected during this validation test.
X3D DTD validation check: <b>fail</b></font><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium;white-space:pre-line;background-color:rgb(238,238,238)">.
</span><b style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium;white-space:pre-line;background-color:rgb(238,238,238)">4. Performing <a href="http://www.web3d.org/specifications" title="test description or source">X3D schema validation</a> check (<a href="http://www.web3d.org/specifications/X3dSchemaDocumentation3.3/x3d-3.3.html" title="test reference">X3D schema documentation</a>) ...</b><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium;white-space:pre-line;background-color:rgb(238,238,238)">
Error type: Error
SAXParseException:
cvc-complex-type.3.2.2: Attribute 'containerField' is not allowed to appear in element 'fieldValue'.
Error type: Error
SAXParseException:
cvc-complex-type.3.2.2: Attribute 'containerField' is not allowed to appear in element 'fieldValue'.
</span><font color="red" style="font-family:"Times New Roman";font-size:medium;white-space:pre-line;background-color:rgb(238,238,238)">Error(s) detected during this validation test.
X3D schema validation check: <b>fail</b></font><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium;white-space:pre-line;background-color:rgb(238,238,238)">.</span><br></div><div><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium;white-space:pre-line;background-color:rgb(238,238,238)"><br></span></div><div><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium;white-space:pre-line;background-color:rgb(238,238,238)">This may help too:</span></div><div><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium;white-space:pre-line;background-color:rgb(238,238,238)"><br></span></div><div><b style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium;white-space:pre-line;background-color:rgb(238,238,238)">7. Performing <a href="http://www.web3d.org/x3d/tools/schematron/X3dSchematron.html" title="test description or source">X3D Schematron</a> check...</b><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium;white-space:pre-line;background-color:rgb(238,238,238)">
<X3D profile='Immersive'> is defined satisfactorily for this scene, but ensure that child Inline scenes do not exceed this profile/component combination since a parent scene must have an equal or higher profile/component combination [/X3D, info]
Based on file name, Quotes.x3d is considered a test model supporting X3D Quality Assurance (QA).
<a href="https://www.web3d.org/x3d/content/examples/X3dResources.html#QualityAssurance[/X3D/head">https://www.web3d.org/x3d/content/examples/X3dResources.html#QualityAssurance[/X3D/head</a>, diagnostic]
X3D/head/meta title (i.e. filename 'Quotes.x3d') is expected at end of identifier (url) value [/X3D/head, warning]
<meta name='info' content='tested sat: name value cannot contain embedded space character'/>[/X3D/head/meta[20], diagnostic]
<MetadataString DEF='' name='quotesTestC'/> array value='"MFString example C, backslash-escaped quotes: He said, \"Immel did it!\""' has 4 quote marks with at least one escaped quote mark \" so double-check to ensure paired "quote marks" for each line are matched [/X3D/Scene/Transform[2]/Shape/Text/MetadataSet/MetadataString[1], warning]
<Text DEF='' string='"One, Two, Text" "" "He said, \"Immel did it!\" \"\""'/> has 10 quote marks with at least one escaped quote mark \" so double-check to ensure paired "quote marks" for each line are matched [/X3D/Scene/Transform[2]/Collision/Shape/Text, warning]
<ProtoInstance name='ArtDeco01Material' DEF=''> <fieldValue name='description' value='ArtDeco01Material can substitute for a Material node'/> has matching ProtoDeclare but no corresponding field match for this fieldValue [/X3D/Scene/Shape[2]/Appearance/ProtoInstance/fieldValue, hint]
<Inline DEF='inlineSceneDef'/> url array address(es) missing online http/https references (url='"someOtherScene.x3d"') [/X3D/Scene/Inline, info]
<Script DEF='MaterialModulatorScript'> <field name='diffuseColor' accessType='inputOutput'/> must define function set_diffuseColor (newValue) [/X3D/Scene/ProtoDeclare[2]/ProtoBody/Script/field[2], error]
<Script DEF='MaterialModulatorScript'> <field name='diffuseColor' accessType='inputOutput'/> does not send output event via assignment statement diffuseColor=___; [/X3D/Scene/ProtoDeclare[2]/ProtoBody/Script/field[2], warning]
</span><font color="red" style="font-family:"Times New Roman";font-size:medium;white-space:pre-line;background-color:rgb(238,238,238)">Error(s) detected during this validation test.
X3D Schematron check: <b>fail</b></font><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium;white-space:pre-line;background-color:rgb(238,238,238)">.</span><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium;white-space:pre-line;background-color:rgb(238,238,238)"><br></span></div><div><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium;white-space:pre-line;background-color:rgb(238,238,238)"><br></span></div><div><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium;white-space:pre-line;background-color:rgb(238,238,238)">I'll post again on a later, more up-to-date X3D file. The rest of the files that refused to compile are "code too large" issues.</span></div></div>