<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>I believe there is a difference between the JSON and the XML documents and/or URL loading which is preventing the JSON file from displaying the shader in X_ITE 4.2.1</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><a href="http://coderextreme.net/X3DJSONLD/src/main/html/x_itesimpleshader.xhtml">http://coderextreme.net/X3DJSONLD/src/main/html/x_itesimpleshader.xhtml</a></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>why are we loading URLs with data in CDATA sections (as it appears).</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Help would be appreciated.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Likely this applies to all JSON files with data urls in CDATA sections.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>XML works fine, in many cases.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>If you monitor the network developer tools tab, you will see the difference in URL loading (do each browser found in the XHTML file separately), which seems to be the difference between JSON and XML.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>John</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986">Mail</a> for Windows 10</p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='border:none;padding:0in'><b>From: </b><a href="mailto:yottzumm@gmail.com">John Carlson</a><br><b>Sent: </b>Tuesday, May 22, 2018 4:20 PM<br><b>To: </b><a href="mailto:holger.seelig@yahoo.de">holger.seelig@yahoo.de</a>; <a href="mailto:andreasplesch@gmail.com">Andreas Plesch</a><br><b>Subject: </b>RE: [x3dom/x3dom] Full patch from coderextreme/x3dom.IncludesJSONloading, protoexpander, inline changes, and field changes (#844)</p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Okay, it looks like there’s an issue with the JSONParser and X_ITE and X3DJSONLD, possibly.  See attached x_itesimpleshader.xhtml for differences between JSON and XML versions.  I haven’t done any debugging yet, there’s probably something on the console, like parsing a data URL (the shader).<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Here is the original X3D and converted JSON.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>John<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986">Mail</a> for Windows 10<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b>From: </b><a href="mailto:yottzumm@gmail.com">John Carlson</a><br><b>Sent: </b>Tuesday, May 22, 2018 3:59 PM<br><b>To: </b><a href="mailto:andreasplesch@gmail.com">Andreas Plesch</a><br><b>Subject: </b>Re: [x3dom/x3dom] Full patch from coderextreme/x3dom. IncludesJSONloading, protoexpander, inline changes, and field changes (#844)<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal style='margin-bottom:12.0pt'>Oh, okay.   I guess x_ite was falling back to material in some cases with X3DJSONLD.  Before I started mucking with the Proto from the original.<o:p></o:p></p><div><div><p class=MsoNormal>On Tue, May 22, 2018, 3:53 PM Andreas Plesch <<a href="mailto:andreasplesch@gmail.com" target="_blank">andreasplesch@gmail.com</a>> wrote:<o:p></o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><div><p class=MsoNormal style='margin-left:4.8pt'>Thanks, the screenshot came through.<o:p></o:p></p><div><p class=MsoNormal style='margin-left:4.8pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-left:4.8pt'>But it looks like BSContact does not understand or use the ComposedShader at all. It just falls back to the Material. I think it has a console ?<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:4.8pt'><o:p> </o:p></p></div></div><div><p class=MsoNormal style='margin-left:4.8pt'><o:p> </o:p></p><div><p class=MsoNormal style='margin-left:4.8pt'>On Tue, May 22, 2018 at 3:25 PM, John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><div><p class=MsoNormal style='margin-left:9.6pt'>Hopefully this BS contact example makes it.<o:p></o:p></p></div><p class=MsoNormal style='margin-left:9.6pt'><o:p> </o:p></p><div><div><p class=MsoNormal style='margin-left:9.6pt'>---------- Forwarded message ---------<br>From: John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>><br>Date: Tue, May 22, 2018, 10:13 AM<br>Subject: RE: [x3dom/x3dom] Full patch from coderextreme/x3dom. Includes JSONloading, protoexpander, inline changes, and field changes (#844)<br>To: x3dom/x3dom <<a href="mailto:reply%2B000ac4f78369c959aaa1022cea58689148651aac125ae7a492cf00000001171b6f7792a169ce1351f190@reply.github.com" target="_blank">reply+000ac4f78369c959aaa1022cea58689148651aac125ae7a492cf00000001171b6f7792a169ce1351f190@reply.github.com</a>>, x3dom/x3dom <<a href="mailto:x3dom@noreply.github.com" target="_blank">x3dom@noreply.github.com</a>><br>Cc: Author <<a href="mailto:author@noreply.github.com" target="_blank">author@noreply.github.com</a>><o:p></o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:9.6pt'><o:p> </o:p></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt'>Here it is in BS Contact:  <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt'>Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986" target="_blank">Mail</a> for Windows 10<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt'> <o:p></o:p></p><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt'><b>From: </b><a href="mailto:notifications@github.com" target="_blank">Andreas Plesch</a><br><b>Sent: </b>Tuesday, May 22, 2018 1:41 AM<br><b>To: </b><a href="mailto:x3dom@noreply.github.com" target="_blank">x3dom/x3dom</a><br><b>Cc: </b><a href="mailto:yottzumm@gmail.com" target="_blank">John Carlson</a>; <a href="mailto:author@noreply.github.com" target="_blank">Author</a><br><b>Subject: </b>Re: [x3dom/x3dom] Full patch from coderextreme/x3dom. Includes JSONloading, protoexpander, inline changes, and field changes (#844)<o:p></o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt'> <o:p></o:p></p><p><a href="https://rawgit.com/andreasplesch/x3dom/inlineShader/doc/x3doc/base/tutorials/lighting/customShader/example.html" target="_blank">https://rawgit.com/andreasplesch/x3dom/inlineShader/doc/x3doc/base/tutorials/lighting/customShader/example.html</a><br>is the tutorial example.</p><p>Here is the simpleShader.x3d for x3dom:<br><a href="https://rawgit.com/andreasplesch/x3dom/inlineShader/test/regression-suite/test/cases/composedShader/inlineShader.xhtml" target="_blank">https://rawgit.com/andreasplesch/x3dom/inlineShader/test/regression-suite/test/cases/composedShader/inlineShader.xhtml</a><br>Do you know how it is supposed to look like ? light0 is probably the headlight.</p><p><span style='font-size:12.0pt;color:#666666'>—<br>You are receiving this because you authored the thread.<br>Reply to this email directly, <a href="https://github.com/x3dom/x3dom/pull/844#issuecomment-390869376" target="_blank">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AArE9_8Wd-sJSolp23LMBxXHsigHw-Weks5t06T3gaJpZM4UDkKu" target="_blank">mute the thread</a>.</span><span style='font-size:12.0pt;color:#666666'><img border=0 width=1 height=1 style='width:.0104in;height:.0104in' id="_x0000_i1025" src="https://ci4.googleusercontent.com/proxy/KktpRTcHHAIH5QXL5qHKSgPwK4oTQlUjm8ONUZWIeGiGEyNQgohbrhd76yyVPzgbO7KhHQ3gL4R4ocL5mqz9F8kz4PM978991YwadxOf_SiLDhEhUa_rY4q0JDMhXDMSi2ZdsZ9xHVg9hkxGYnTHS-bsfWky0A=s0-d-e1-ft#https://github.com/notifications/beacon/AArE9" alt="https://github.com/notifications/beacon/AArE9183osU_x9UEKTouaAfUXwpLR2Mlks5t06T3gaJpZM4UDkKu.gif"></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt'> <o:p></o:p></p></div></div></div></blockquote></div><p class=MsoNormal style='margin-left:4.8pt'><br><br clear=all><o:p></o:p></p><div><p class=MsoNormal style='margin-left:4.8pt'><o:p> </o:p></p></div><p class=MsoNormal style='margin-left:4.8pt'>-- <o:p></o:p></p></div></blockquote></div></div></div><p class=MsoNormal style='margin-left:4.8pt'>Andreas Plesch<br>Waltham, MA 02453<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>