<html 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)"><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>Well I got half (or all of it, not sure) of the model to load into Octaga. No luck with BS Contact still. Trying web-based systems next (cobweb).</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Again, you are welcome to try this. The file was originally an OBJ from Kinect. It’s been converted into a couple of types of JSON.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><a href="http://coderextreme.net/X3DJSONLD/john2.x3d">http://coderextreme.net/X3DJSONLD/john2.x3d</a><o:p></o:p></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">yottzumm@gmail.com</a><br><b>Sent: </b>Tuesday, April 18, 2017 2:03 PM<br><b>To: </b><a href="mailto:brutzman@nps.edu">Don Brutzman</a>; <a href="mailto:x3d-public@web3d.org">X3D Graphics public mailing list</a><br><b>Cc: </b><a href="mailto:roy.walmsley@ntlworld.com">Roy Walmsley</a>; <a href="mailto:ak@alexkern.de">Alexander Kern</a><br><b>Subject: </b>RE: second release: X3DJSAILJavatranslations,javadocinX3DExamplesArchives</p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Okay there were more exceptions about components in X3D-Edit. So I tried to fix them with this, but it didn’t fix them. I also tried one or the other component. I am opening this to a wider audience. See zip john2.zip on my website for an X3D file that I’m trying to validated with X3D-Edit.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Here’s the file: <a href="http://coderextreme.net/X3DJSONLD/john2.x3d">http://coderextreme.net/X3DJSONLD/john2.x3d</a><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>And here’s the report from BSContact ???<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>--------------------------------------------------------------------------------------------<o:p></o:p></p><p class=MsoNormal>Loading scene C:\Users\coderextreme\Downloads\john2 (1).x3d<o:p></o:p></p><p class=MsoNormal>X3D syntax error: in C:\Users\coderextreme\Downloads\john2.x3d:<o:p></o:p></p><p class=MsoNormal>Error during X3D SAX parsing: SAXParseException: Unbound prefix in line 3 column 0 <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>X3D syntax error: in C:\Users\coderextreme\Downloads\john2.x3d:<o:p></o:p></p><p class=MsoNormal>Error during X3D SAX parsing: SAXParseException: Unbound prefix in line 3 column 0 <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The file loads in Octaga, but I’m looking for my model somewhere. I guess it’s transparent or something, or very small. Hmm. No, it’s my vertex shader is wrong I think. I’m not using gl_ variables. I WANT PORTABLE SHADERS! FOR THE SECOND TIME TODAY! Can I provide different URLs for different vendors?<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><o:p> </o:p></p><p class=MsoNormal><?xml version="1.0" encoding="UTF-8"?><o:p></o:p></p><p class=MsoNormal><!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "http://www.web3d.org/specifications/x3d-3.3.dtd"><o:p></o:p></p><p class=MsoNormal><X3D profile="Immersive" version="3.3" xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-3.3.xsd'><o:p></o:p></p><p class=MsoNormal> <head><o:p></o:p></p><p class=MsoNormal> <component name='EnvironmentalEffects' level='1'/><o:p></o:p></p><p class=MsoNormal> <component name='EnvironmentalEffects' level='3'/><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">yottzumm@gmail.com</a><br><b>Sent: </b>Tuesday, April 18, 2017 1:29 PM<br><b>To: </b><a href="mailto:brutzman@nps.edu">Don Brutzman</a><br><b>Cc: </b><a href="mailto:roy.walmsley@ntlworld.com">Roy Walmsley</a>; <a href="mailto:ak@alexkern.de">Alexander Kern</a><br><b>Subject: </b>RE: second release: X3DJSAIL Javatranslations,javadocinX3DExamplesArchives<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>New <a href="http://coderextreme.net/john2.zip">http://coderextreme.net/john2.zip</a> is available which no longer contains profile=”Full”, but rather profile=”Immersive” I will look for more exceptions, but the results so far are the same.<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">yottzumm@gmail.com</a><br><b>Sent: </b>Tuesday, April 18, 2017 9:41 AM<br><b>To: </b><a href="mailto:brutzman@nps.edu">Don Brutzman</a><br><b>Cc: </b><a href="mailto:roy.walmsley@ntlworld.com">Roy Walmsley</a>; <a href="mailto:ak@alexkern.de">Alexander Kern</a><br><b>Subject: </b>RE: second release: X3DJSAIL Java translations,javadocinX3DExamplesArchives<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>More and more interesting. I went ahead and set my netbeans options to -J-Xmx2g with trepidation. Then I reopened netbeans/X3D-Edit, clicked through the open file warning message (that still said 22Mb), opened the file (see link in previous message/below), and clicked the validation check button. I have gotten this much output so far. An Unexpected Exception showed up (possibly unrelated to validation) that said "Could not find the definition file for the profile Full”. I will try changing the profile on the file, etc. I got the same error on a much smaller file and it finished validating. Will there be an update to X3D-Edit for profile “Full” or am I doing something wrong?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>From the X3D Resources Examples:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>./Basic/development/TestDiagnosticOverloadedChildNodes.x3d:<X3D profile='Full' version='3.3' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-3.3.xsd'><o:p></o:p></p><p class=MsoNormal>./Basic/X3dSpecifications/ExtrusionEdgeCases.x3d:<X3D profile='Full' version='3.3' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-3.3.xsd'><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>From:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>X3dForWebAuthors/Chapter01TechnicalOverview/HeaderProfileComponentMetaExample.x3d:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Simple scene demonstrating X3D header, profile, component and meta-tag definitions. The component tags raise the support level from Immersive profile to include other components included in the X3D 3.0 Full profile.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>So obviously, I am fool, and should use components. I suspect there will be more on this later.<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>--------- Commence validation checks for john2.x3d ---------<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Performing well-formed XML check...<o:p></o:p></p><p class=MsoNormal>Checking file:/C:/Users/coderextreme/Documents/NetBeansProjects/JavaSceneAuthoringInterfaceLibrary/src/main/resources/john2.x3d...<o:p></o:p></p><p class=MsoNormal>Well-formed XML check: pass<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Performing DOCTYPE check...<o:p></o:p></p><p class=MsoNormal>[X3dDoctypeChecker] success: valid XML declaration found; success: final X3D 3.3 DOCTYPE found.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Performing DTD validation...<o:p></o:p></p><p class=MsoNormal>Checking file:/C:/Users/coderextreme/Documents/NetBeansProjects/JavaSceneAuthoringInterfaceLibrary/src/main/resources/john2.x3d...<o:p></o:p></p><p class=MsoNormal>XML DTD validation: pass<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Performing X3D schema validation...<o:p></o:p></p><p class=MsoNormal>Checking file:/C:/Users/coderextreme/Documents/NetBeansProjects/JavaSceneAuthoringInterfaceLibrary/src/main/resources/john2.x3d...<o:p></o:p></p><p class=MsoNormal>Referenced entity at "nbres:/org/web3d/x3d/externals/schemas/x3d-3.3-Web3dExtensionsPublic.xsd".<o:p></o:p></p><p class=MsoNormal><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">yottzumm@gmail.com</a><br><b>Sent: </b>Tuesday, April 18, 2017 7:43 AM<br><b>To: </b><a href="mailto:brutzman@nps.edu">Don Brutzman</a><br><b>Cc: </b><a href="mailto:roy.walmsley@ntlworld.com">Roy Walmsley</a>; <a href="mailto:ak@alexkern.de">Alexander Kern</a><br><b>Subject: </b>RE: second release: X3DJSAIL Java translations, javadocinX3DExamplesArchives<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I feel your pain. My json2all.js program finally ran out of heap space. Time to revisit my conversions. Apparently, I am trying to convert to too many things at the same time (or there’s a leak somewhere, hmm). I will look into using some tail recursion as well.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>How do you plan to get around the “too many constants” report from javac? Can we append() strings of floats (or ints) to MFs, so there aren’t so many float (or int) constants in my program? I know it’s not typesafe. I am not really sure what’s causing the problem yet—It’s just dying on my larger models. Possibly I will break out to a separate class if necessary. So I will have java files like abox.MFVec3f11.java instead of keeping the methods in the same class. What a mess! I wonder if it’s possible to use inner classes, and escape the “too many constants” issue. Hmm.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I don’t think Java was designed for this. LOL! We are pushing the limits of reasonability.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Here is a link to a zip with the X3D file I am dealing with. Please don’t share. Running the generated JavaScript file generates a route issue in X3DJSAIL, as far as I can tell. I am not sure if I’ve tested this file with any other validator, but I’ll test it with X3D-Edit soon. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><a href="http://coderextreme.net/john2.zip">http://coderextreme.net/john2.zip</a><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">yottzumm@gmail.com</a><br><b>Sent: </b>Tuesday, April 18, 2017 6:21 AM<br><b>To: </b><a href="mailto:brutzman@nps.edu">Don Brutzman</a><br><b>Cc: </b><a href="mailto:x3d-public@web3d.org">X3D Graphics public mailing list</a>; <a href="mailto:roy.walmsley@ntlworld.com">Roy Walmsley</a>; <a href="mailto:ak@alexkern.de">Alexander Kern</a><br><b>Subject: </b>RE: second release: X3DJSAIL Java translations, javadoc inX3DExamplesArchives<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Write one java program which loads a scenegraph java program, calls the scenegraph create function on the loaded program which returns the scenegraph, then loading program calls the scenegraph output function. That way, you don’t have to put the output code each individual Java program (which is undesirable). I hope you think this idea is better than putting output code in each java file (I just though of it).<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I found XMLUnit too, but I didn’t use it. I’m still doing the JavaScript thing.<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:brutzman@nps.edu">Don Brutzman</a><br><b>Sent: </b>Tuesday, April 18, 2017 3:45 AM<br><b>To: </b><a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a><br><b>Cc: </b><a href="mailto:x3d-public@web3d.org">X3D Graphics public mailing list</a>; <a href="mailto:roy.walmsley@ntlworld.com">Roy Walmsley</a>; <a href="mailto:ak@alexkern.de">Alexander Kern</a><br><b>Subject: </b>Re: second release: X3DJSAIL Java translations, javadoc inX3DExamples Archives<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>On 4/17/2017 10:47 PM, yottzumm@gmail.com wrote:<o:p></o:p></p><p class=MsoNormal>> Great effort Don, I hope I helped in some small way (heh, heh, waiting for a replacement computer now).<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks John you have helped tons. Identifying bugs and experimenting with design patterns is totally important and has greatly accelerated our progress, on multiple topics simultaneously.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>> I am anxious to look at your output Java code/X3dToJava.xslt to see how I can fix the runtime bugs I encountered.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Each java file is individually inspectable now in the online archives, just like .json versions.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Are you differencing the output of Java against original XML yet? That would certainly be good test to add.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Agreed that would be good to add to the build scripts, .x3d via .xslt to .java, compiled, and then runtime serialization back out to .x3d. Every round trip adds multiple QA checks... also a great way to find holes in code.<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Have looked for Ant-based XML-diff (or plain-diff) tools, haven't found a native task or seen anything custom that stands out yet. Suggestions welcome... hey wait a minute, this should work well:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> XMLUnit - Unit Testing XML for Java and .NET<o:p></o:p></p><p class=MsoNormal> http://www.xmlunit.org<o:p></o:p></p><p class=MsoNormal> "XMLUnit for Java 2.3.0 has been released on 2016-11-12, XMLUnit.NET 2.3.1 has been released on 2017-03-23."<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Also, just noticed that Ant received an upgrade to v10.1 for Java8 about 10 weeks ago, will look at upgrading to that. That community is extremely careful and thorough with Ant upgrades so it is likely very well tested.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>btw have a hunch about how to handle the java-compilation "code too big" error in example scenes (that generate a method > 64K) when using XSLT. The tail-recursion pattern can only returns a single string from each node and its children. The stylesheet console logs reveal that the XSLT is already diagnosing large string values OK already. Am thinking that I will surround long data structures with delimiters as it proceeds, keeping them inline, then upon completed generation will use the embedded delimiters to split that big comprehensive call into data structures plus call. Of course, similar to your approach, will also have to come up with a good naming mechanism for those data structures too. Stay tuned, i should be able to tackle that in another weekend or two.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>all the best, Don<o:p></o:p></p><p class=MsoNormal>-- <o:p></o:p></p><p class=MsoNormal>Don Brutzman Naval Postgraduate School, Code USW/Br brutzman@nps.edu<o:p></o:p></p><p class=MsoNormal>Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA +1.831.656.2149<o:p></o:p></p><p class=MsoNormal>X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>