<div dir="auto">Okay, i see where warnings are reported now in view3dscene,  I guess I didn’t spot that because invalid is splatted everywhere.</div><div dir="auto"><br></div><div dir="auto">Is there a separate display for errors?</div><div dir="auto"><br></div><div dir="auto">Note:  To browser vendors:  if you have enough memory, can you add a parallel parse hierarchy of lines, such that lines can be reported, I might be able to help if i can remember when i was creating line numbers for EDI/X12.  Two ASTs (abstract syntax trees), one of line# in document plus cross-linking to move from one AST to the other and back.  That’s the general idea.</div><div dir="auto"><br></div><div dir="auto">Are there any JSON Parsers that produce line numbers?  I use jsonlint.</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 18, 2023 at 11:00 AM Joseph D Williams <<a href="mailto:joedwil@earthlink.net">joedwil@earthlink.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div lang="EN-US" link="blue" vlink="#954F72" style="overflow-wrap: break-word;"><div class="m_917759165039935444WordSection1"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Hi John, </p><p class="MsoNormal">This error set is telling you there is some user code somewhere(s) that does not have the right number of something(s) and the pattern(s) used repeatedly from the same DEF-USE or other maybe some simple copy and paste syntax. </p><p class="MsoNormal">Is this from JohnJoint5.x3d? </p><p class="MsoNormal">If Yes, these warnings show in view3dscene and don’t render some markers but are ok and seem to work in another. </p><p class="MsoNormal">Some user code you might suspect. </p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">    <IndexedFaceSet DEF='DiamondIFS' creaseAngle='0.5' solid='false' </p><p class="MsoNormal">     coordIndex='0 1 2 -1, 0 2 3 -1, 0 3 4 -1, 0 4 1 -1, 5 2 1 -1, 5 3 2 -1, 5 4 3 -1, 5 1 4 -1'></p><p class="MsoNormal">     <ColorRGBA DEF='HAnimSiteColorRGBA' </p><p class="MsoNormal">      color='1 1 0 1, 1 1 0 0.1'/></p><p class="MsoNormal">     <Coordinate point='0 0.01 0, -0.01 0 0, 0 0 0.01, 0.01 0 0, 0 0 -0.01, 0 -0.01 0'/></p><p class="MsoNormal">    </IndexedFaceSet></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Note IFS default colorPerVertex TRUE. So, tool might expect since 6 vertex, then 6 colors. </p><p class="MsoNormal">Field colorPerVertex is TRUE by default. So if you have some number of points then you should have the same numbers of colors. RGBA uses special field <span class="m_917759165039935444schemasubdata">SFColorRGBA 4-tuples, where each color value is an RGBA 4-tuple of floating point numbers in range [0,1]. Alpha (opacity) values = (1 - transparency). <u></u><u></u></span></p><p class="MsoNormal"><span class="m_917759165039935444schemasubdata">So, try:<u></u><u></u></span></p><p class="MsoNormal"><span class="m_917759165039935444schemasubdata"><u></u> <u></u></span></p><p class="MsoNormal">      color='1 1 0 1, 1 1 0 0.1, 1 1 0 1, 1 1 0 0.1, 1 1 0 1, 1 1 0 0.1'/></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Forgiving browsers may give a clue and then go ahead and just keep using the last color for the remaining points. That is a feature you can use to search meshes to find points. Others may not work because they don’t do a kind of courtesy autofill that I especially like to see for some MF types. The downside is that forgiving browsers will give you something to at least look at so to see what happened.</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">So that gets rid of some hundred or so of these and the little boxes show as expected. Fixed what I might call spurious warnings with result of the bad things fail to render.</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Now to see if that is what you really wanted to do; fix if necessary. </p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Now onward to look for some 244 faulty warnings for some field of LineSet.  However, I can see from the rendering that some nice lines are rendered in spite of some 244 warnings about bad vertex count. At least I might be seeing  what the tool thinks is wrong. I hope this ends up to be a simple search and replace. More later. </p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Side usability topic: Consistent use of Warnings. Where some may cause to not render node because child is bad and some may cause to render with Warning for bad field? </p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks, <u></u><u></u></p><p class="MsoNormal">Joe<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><div style="border-style:solid none none;border-top-width:1pt;padding:3pt 0in 0in;border-top-color:rgb(225,225,225)"><p class="MsoNormal" style="border:none;padding:0in"><b>From: </b><a href="mailto:yottzumm@gmail.com" target="_blank">John Carlson</a><br><b>Sent: </b>Wednesday, January 18, 2023 3:54 AM<br><b>To: </b><a href="mailto:x3d-public@web3d.org" target="_blank">X3D Graphics public mailing list</a><br><b>Subject: </b>Re: [x3d-public] IFS example to fix.</p></div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">Here is a small example that shows the potential issue, attached.</p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">view3dscene reports errors, Schematron does not.  I will attempt JSON next.</p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">John</p></div></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">On Wed, Jan 18, 2023 at 5:41 AM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> wrote:</p></div><blockquote style="border-style:none none none solid;border-left-width:1pt;padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in;border-left-color:rgb(204,204,204)"><div><p class="MsoNormal">This may interest people working with IFS in *some* HAnim examples, particularly mine!</p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">JOhn</p><div><div><p class="MsoNormal">---------- Forwarded message ---------<br>From: <strong><span style="font-family:Calibri,sans-serif">John Carlson</span></strong> <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>><br>Date: Wed, Jan 18, 2023 at 5:22 AM<br>Subject: IFS example to fix.<br>To: Joe D Williams <<a href="mailto:joedwil@earthlink.net" target="_blank">joedwil@earthlink.net</a>></p></div><p class="MsoNormal" style="margin-bottom:12pt"><u></u> <u></u></p><div><div><div><p class="MsoNormal">    <IndexedFaceSet DEF='DiamondIFS' creaseAngle='0.5' solid='false' coordIndex='0 1 2 -1 0 2 3 -1 0 3 4 -1 0 4 1 -1 5 2 1 -1 5 3 2 -1 5 4 3 -1 5 1 4 -1'></p></div><div><p class="MsoNormal">     <ColorRGBA DEF='HAnimSiteColorRGBA' color='1 1 0 1 1 1 0 0.1'/></p></div><div><p class="MsoNormal">     <Coordinate point='0 0.01 0 -0.01 0 0 0 0 0.01 0.01 0 0 0 0 -0.01 0 -0.01 0'/></p></div><div><p class="MsoNormal">    </IndexedFaceSet></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">The way I'm reading above, the IFS has 6 coordinates and 2 colors.  There should be more colors, correct?  view3dscene detected this.  I'll look up the IFS spec.</p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Thanks!</p></div><div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div></div></blockquote></div><p class="MsoNormal" style="margin-left:4.8pt">John</p><p class="MsoNormal"><u></u> <u></u></p></div></div></blockquote></div></div>