[x3d-public] [x3dom-users] Ran across an interesting example.

Andreas Plesch andreasplesch at gmail.com
Fri May 19 04:28:03 PDT 2017


Hi John,

although the specs normalIndex field's signature says 'or -1', the text
says 'The colorIndex field shall not contain any negative entries.' and
that normalIndex follows colorIndex.

The signatures probably needs to be fixed.

Andreas

On May 19, 2017 5:57 AM, "John Carlson" <yottzumm at gmail.com> wrote:

> 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!).
>
>
>
> X3DOM’s console looks like:
>
> x3dom-full.js:4743 Uncaught TypeError: Cannot read property 'x' of
> undefined
>
>     at x3dom.registerNodeType.defineClass.nodeChanged.nodeChanged
> (x3dom-full.js:4743)
>
>     at x3dom.NodeNameSpace.setupTree (x3dom-full.js:2869)
>
>     at x3dom-full.js:2869
>
>     at Function.Array.forEach (x3dom-full.js:2)
>
>     at x3dom.NodeNameSpace.setupTree (x3dom-full.js:2869)
>
>     at x3dom-full.js:2869
>
>     at Function.Array.forEach (x3dom-full.js:2)
>
>     at x3dom.NodeNameSpace.setupTree (x3dom-full.js:2869)
>
>     at x3dom-full.js:2869
>
>     at Function.Array.forEach (x3dom-full.js:2)
>
>
>
> What does quality assurance report?  I don’t get any significant warnings
> from X3D-Edit or X3DJSAIL, that I can tell!
>
>
>
> 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.
>
>
>
> Thanks,
>
>
>
> John
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "http://www.web3d.org/
> specifications/x3d-3.3.dtd">
>
> <X3D profile='Interchange' version='3.3' xmlns:xsd='http://www.w3.org/
> 2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='
> http://www.web3d.org/specifications/x3d-3.3.xsd'>
>
>     <head>
>
>         <meta name='title' content='template.json'/>
>
>         <meta name='identifier' content='http://coderextreme.
> net/X3DJSONLD/template.json'/>
>
>         <meta name='description' content='Template for an Indexed Face
> Set'/>
>
>         <meta name='creator' content='John Carlson'/>
>
>         <meta name='created' content='4 April 2017'/>
>
>     </head>
>
>     <Scene>
>
>         <Group>
>
>             <Shape>
>
>                 <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'>
>
>                     <Color color='0 1 0'/>
>
>                     <Coordinate point='0 0 1 0 1 1 1 1 1 1 0 1'/>
>
>                     <Normal vector='1 0 0 -1 0 0 0 1 0 0 0 -1 0 -1 0 0 0
> 1'/>
>
>                 </IndexedFaceSet>
>
>             </Shape>
>
>         </Group>
>
>     </Scene>
>
> </X3D>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> X3dom-users mailing list
> X3dom-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x3dom-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170519/71070f6d/attachment.html>


More information about the x3d-public mailing list