<div dir="auto">I haven’t seen any validation problems when I changed the version of the JSON file to 4.0, JSON parser errors started when I changed the XML to 4.0.</div><div dir="auto"><br></div><div dir="auto">Hopefully that is clear. My thinking is kind of muggy right now.</div><div dir="auto"><br></div><div dir="auto">John</div><div dir="auto"><br></div><div dir="auto"><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 28, 2021 at 10:56 AM Don Brutzman <<a href="mailto:brutzman@nps.edu">brutzman@nps.edu</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)">Thanks John. Yes there are a few differences in field names from X3D3 to X3D4, for improved object-model consistency. Summarized at<br>
<br>
* X3D Scene Authoring Hints: Field name changes planned for improved consistency<br>
<a href="https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#fieldNameChanges" rel="noreferrer" target="_blank">https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#fieldNameChanges</a><br>
<br>
We should be able to confirm correctness of X3DUOM 3.3 next week, am thinking that prior-version names/synonyms should be something to include in X3DUOM 4.0 as well.<br>
<br>
<br>
On 5/27/2021 11:12 PM, John Carlson wrote:<br>
> Report (still on old version of X3DJSAIL):<br>
> <br>
> These files are the one's I'm trying to get translations working for:<br>
> <br>
> /X3DJSONLD/src/main/data$ grep -l ComposedCubeMapTexture *.x3d| grep -v new<br>
> <br>
> ball.x3d<br>
> bubbles.x3d<br>
> bub.x3d<br>
> flowerproto.x3d<br>
> flowers4.x3d<br>
> flowers7.x3d<br>
> flowers.x3d<br>
> geo.x3d<br>
> mirror2.x3d<br>
> mirror.x3d<br>
> <br>
> Here are the JSON files that don't parse:<br>
> <br>
> ~/X3DJSONLD/src/main/data$ for i in *.json; do jsonlint $i 2> /dev/null 1> /dev/null|| echo $i; done<br>
> ball.new.json<br>
> bubbles.new.json<br>
> bub.new.json<br>
> flowerproto.new.json<br>
> flowers4.new.json<br>
> flowers7.new.json<br>
> flowers.new.json<br>
> geo.new.json<br>
> mirror2.new.json<br>
> mirror.new.json<br>
> SpatialAudioCameraAnimation.json<br>
> SplitChannels.json<br>
> text.new.json<br>
> <br>
> <br>
> The new.json files are created from my generated Java code. So either my code is wrong, or there's something wrong with X3DJSAIL.<br>
> <br>
> <br>
> My code looks like this:<br>
> <br>
> <br>
> .setTexture(new ComposedCubeMapTexture().setDEF("texture")<br>
> .setBackTexture(new ImageTexture().setUrl(new MFString6().getArray()))<br>
> .setBottomTexture(new ImageTexture().setUrl(new MFString7().getArray()))<br>
> .setFrontTexture(new ImageTexture().setUrl(new MFString8().getArray()))<br>
> .setLeftTexture(new ImageTexture().setUrl(new MFString9().getArray()))<br>
> .setRightTexture(new ImageTexture().setUrl(new MFString10().getArray()))<br>
> .setTopTexture(new ImageTexture().setUrl(new MFString11().getArray())))<br>
> <br>
> <br>
> with setUSE below.<br>
> <br>
> <br>
> John<br>
> <br>
> On 5/27/21 10:52 PM, John Carlson wrote:<br>
>> A somewhat significant change to X3DUOM 3.3 causes generated X3D JSON schema 3.3 to reject files.<br>
>><br>
>> That is, there is no longer a bottomTexture, topTexture, frontTexture, etc. for ComposedCubeMapTexture. Instead, "Texture" is left off of these fields.<br>
>><br>
>><br>
>> 4.0 has the Texture added.<br>
>><br>
>><br>
>> 2 suggestions:<br>
>><br>
>> Update your files to X3D4.<br>
>><br>
>> OR:<br>
>><br>
>> Add these fields to X3DUOM 3.3 or find some way to get the old fields into X3D JSON schema 3.3 during schema generation (help!).<br>
>><br>
>> I am not sure what the standard or the browsers do at this point.<br>
>><br>
>> I'm upgrading my files to X3D4 and see if they work in various browsers.<br>
>><br>
>> Help!<br>
>><br>
>> John<br>
>><br>
> <br>
> _______________________________________________<br>
> x3d-public mailing list<br>
> <a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br>
> <a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
<br>
all the best, Don<br>
-- <br>
Don Brutzman Naval Postgraduate School, Code USW/Br <a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a><br>
Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA +1.831.656.2149<br>
X3D graphics, virtual worlds, navy robotics <a href="http://faculty.nps.edu/brutzman" rel="noreferrer" target="_blank">http://faculty.nps.edu/brutzman</a><br>
</blockquote></div></div>