<div dir="auto">Hi John,<div dir="auto"><br></div><div dir="auto">although the specs normalIndex field's signature says 'or -1', the text says '<span style="font-family:sans-serif">The </span>colorIndex<span style="font-family:sans-serif"> field shall not contain any negative entries.' and that normalIndex follows colorIndex.</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif">The signatures probably needs to be fixed.</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif">Andreas</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On May 19, 2017 5:57 AM, "John Carlson" <<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US"><div class="m_-8145880023230142258WordSection1"><p class="MsoNormal">Below X3D XML NOT viewable  in X3DOM, (Octaga??), Instant Player (console goes into infinite loop),  H3D complains about: (Unnamed Normal.vector.  Field has size 6).  I think it may be because normalIndex has -1’s when normalPerVertex=false???  If I take out the -1’s, it’s viewable in X3DOM, Octaga, InstantPlayer, and H3D.  The content still needs work, of course (It’s supposed to be a cube!).</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">X3DOM’s console looks like:</p><p class="MsoNormal">x3dom-full.js:4743 Uncaught TypeError: Cannot read property 'x' of undefined</p><p class="MsoNormal">    at x3dom.registerNodeType.<wbr>defineClass.nodeChanged.<wbr>nodeChanged (x3dom-full.js:4743)</p><p class="MsoNormal">    at x3dom.NodeNameSpace.setupTree (x3dom-full.js:2869)</p><p class="MsoNormal">    at x3dom-full.js:2869</p><p class="MsoNormal">    at Function.Array.forEach (x3dom-full.js:2)</p><p class="MsoNormal">    at x3dom.NodeNameSpace.setupTree (x3dom-full.js:2869)</p><p class="MsoNormal">    at x3dom-full.js:2869</p><p class="MsoNormal">    at Function.Array.forEach (x3dom-full.js:2)</p><p class="MsoNormal">    at x3dom.NodeNameSpace.setupTree (x3dom-full.js:2869)</p><p class="MsoNormal">    at x3dom-full.js:2869</p><p class="MsoNormal">    at Function.Array.forEach (x3dom-full.js:2)</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">What does quality assurance report?  I don’t get any significant warnings from X3D-Edit or X3DJSAIL, that I can tell!</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Not sure about the standard, but leaving out the -1’s makes sense if normalPerVertex = false, I think.  I’ll let others weigh in about the standard.</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks,</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">John</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><?xml version="1.0" encoding="UTF-8"?></p><p class="MsoNormal"><!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "<a href="http://www.web3d.org/specifications/x3d-3.3.dtd" target="_blank">http://www.web3d.org/<wbr>specifications/x3d-3.3.dtd</a>"></p><p class="MsoNormal"><X3D profile='Interchange' version='3.3' xmlns:xsd='<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/<wbr>2001/XMLSchema-instance</a>' xsd:noNamespaceSchemaLocation=<wbr>'<a href="http://www.web3d.org/specifications/x3d-3.3.xsd" target="_blank">http://www.web3d.org/<wbr>specifications/x3d-3.3.xsd</a>'></p><p class="MsoNormal">    <head></p><p class="MsoNormal">        <meta name='title' content='template.json'/></p><p class="MsoNormal">        <meta name='identifier' content='<a href="http://coderextreme.net/X3DJSONLD/template.json'/" target="_blank">http://coderextreme.<wbr>net/X3DJSONLD/template.json'/</a>></p><p class="MsoNormal">        <meta name='description' content='Template for an Indexed Face Set'/></p><p class="MsoNormal">        <meta name='creator' content='John Carlson'/></p><p class="MsoNormal">        <meta name='created' content='4 April 2017'/></p><p class="MsoNormal">    </head></p><p class="MsoNormal">    <Scene></p><p class="MsoNormal">        <Group></p><p class="MsoNormal">            <Shape></p><p class="MsoNormal">                <IndexedFaceSet DEF='IndexedFaceSet' colorIndex='0 0 0 -1 0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1' coordIndex='0 0 1 -1 0 1 1 -1 2 2 3 3 -1 0 3 3 0 -1 0 3 2 1 -1 1 2 2 1 -1 1 2 3 0 -1' creaseAngle='1.57' normalIndex='0 -1 0 -1 1 -1 2 -1 3 -1 4 -1 5 -1' normalPerVertex='false'></p><p class="MsoNormal">                    <Color color='0 1 0'/></p><p class="MsoNormal">                    <Coordinate point='0 0 1 0 1 1 1 1 1 1 0 1'/></p><p class="MsoNormal">                    <Normal vector='1 0 0 -1 0 0 0 1 0 0 0 -1 0 -1 0 0 0 1'/></p><p class="MsoNormal">                </IndexedFaceSet></p><p class="MsoNormal">            </Shape></p><p class="MsoNormal">        </Group></p><p class="MsoNormal">    </Scene></p><p class="MsoNormal"></X3D><u></u><u></u></p></div></div><br>------------------------------<wbr>------------------------------<wbr>------------------<br>
Check out the vibrant tech community on one of the world's most<br>
engaging tech sites, Slashdot.org! <a href="http://sdm.link/slashdot" rel="noreferrer" target="_blank">http://sdm.link/slashdot</a><br>______________________________<wbr>_________________<br>
X3dom-users mailing list<br>
<a href="mailto:X3dom-users@lists.sourceforge.net">X3dom-users@lists.sourceforge.<wbr>net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/x3dom-users" rel="noreferrer" target="_blank">https://lists.sourceforge.net/<wbr>lists/listinfo/x3dom-users</a><br>
<br></blockquote></div></div>