<div dir="ltr">My apologies. .gltf is JSON which is UTF-8.  AFAIK, .glb is not UTF-8, but I may be wrong.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 10, 2022 at 11:27 AM Joseph D Williams <<a href="mailto:joedwil@earthlink.net">joedwil@earthlink.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-6882971695557214218"><div lang="EN-US" style="overflow-wrap: break-word;"><div class="m_-6882971695557214218WordSection1"><ul style="margin-top:0in" type="disc"><li class="m_-6882971695557214218MsoListParagraph" style="margin-left:0in">Joe, .gltf is the ASCII equivalent of .glb<u></u><u></u></li></ul><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Certain fields can be text or binary. Yes, it is likely that similar fields are in both, Regardless, the dats covered by x3d syntax is either same, as gltf while glb may be more or less standard depending upon latest and greatest and authoring techniques, where playing in the binaries is most fun, especially in that target data is derived from several inputs. <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">For this glb, there is data that should precisely replace latest x3d material user code. The harder part may be finding the vertex data locations and other details. All we know for sure is that because we can see a 3d rendering in 3d builder as 3d builder has some authoring knobs, it is practically sure that x3d user code could produce what is called the object. <u></u><u></u></p><p class="MsoNormal"> Thanks, <u></u><u></u></p><p class="MsoNormal">Joe<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in"><p class="MsoNormal" style="border:none;padding:0in"><b>From: </b><a href="mailto:yottzumm@gmail.com" target="_blank">John Carlson</a><br><b>Sent: </b>Monday, October 10, 2022 6:24 AM<br><b>To: </b><a href="mailto:joedwil@earthlink.net" target="_blank">Joseph D Williams</a><br><b>Cc: </b><a href="mailto:vmarchetti@kshell.com" target="_blank">Vincent Marchetti</a>; <a href="mailto:x3d-public@web3d.org" target="_blank">X3D-Public</a><br><b>Subject: </b>Re: [x3d-public] An annotations example and project</p></div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">Joe, .gltf is the ASCII equivalent of .glb, so if conversion from .glb to X3D doesn’t work, try conversion to .gltf, and please, send out results.   Otherwise try glTF in Inline nodes.</p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">John</p></div><div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">On Sun, Oct 9, 2022 at 7:33 PM Joseph D Williams <<a href="mailto:joedwil@earthlink.net" target="_blank">joedwil@earthlink.net</a>> wrote:</p></div><blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in"><div><div><p class="MsoNormal"> </p><ul type="disc"><li class="m_-6882971695557214218m2431492172081527120msolistparagraph">Stepping backwards to binary is like giving up the progress we’ve made since Assembly was created.</li></ul><p class="MsoNormal"> </p><p class="MsoNormal">True, I was thinking it may be relatively easy to reuse the Astronaut.glb in x3d but now looking at it deeper I see that it is not that easy not only because the blob is some binary form but that the data I want is mostly trapped in the blob. There aren’t that many triangles and there is careful use of color but, I don’t yet see how to extract the x3d code needed for one or more child shapes to compose the figure. </p><p class="MsoNormal"> </p><p class="MsoNormal">Still, I think there are examples like this in gltf where the asset is some data that has been all or partially processed using inputs from standard x3d fields, and that any gltf asset has a counterport as an x3d field or the result of computing using x3d fields. </p><p class="MsoNormal"> </p><p class="MsoNormal">So, the alternative for this is </p><p class="MsoNormal">1. Just figure how to load the .glb into x3d player and then show how to build an annotation system in that space or a child space.</p><p class="MsoNormal">2. Extract the mesh and materials to x3d user code and get control of the thing. (I know bufferviews must mean soething, but how to understand “>õ÷²=Ô”)</p><p class="MsoNormal"> </p><p class="MsoNormal">I can’t see, for now, how to extract the triangles (I can see them in 3D Builder, but can’t modify or save in a readable format.</p><p class="MsoNormal"> </p><p class="MsoNormal">Thanks, </p><p class="MsoNormal">Joe</p></div></div><div><div><p class="MsoNormal"> </p><div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in"><p class="MsoNormal"><b>From: </b><a href="mailto:yottzumm@gmail.com" target="_blank">John Carlson</a><br><b>Sent: </b>Saturday, October 8, 2022 2:35 PM<br><b>To: </b><a href="mailto:joedwil@earthlink.net" target="_blank">Joseph D Williams</a><br><b>Cc: </b><a href="mailto:vmarchetti@kshell.com" target="_blank">Vincent Marchetti</a>; <a href="mailto:x3d-public@web3d.org" target="_blank">X3D-Public</a><br><b>Subject: </b>Re: [x3d-public] An annotations example and project</p></div><p class="MsoNormal"> </p><div><p class="MsoNormal">I am not interested in binary formats, but i have used EXI (ASCII)  converters to and from JSON.   See X3DJSONLD.</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">JSON schemas might be converted with MapForce.  UAYOR.</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">Perhaps there’s some interest in STL and PLY formats?</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">AFAIK, .glTF appears to be different than .x3d, and is likely closer to .dae.  I am unsure about .glb, i have not approached it.</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">Stepping backwards to binary is like giving up the progress we’ve made since Assembly was created.</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">Perhaps we should consider AssemblyScript?  OBJ is preferable to binary.</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">John</p></div><div><p class="MsoNormal"> </p><div><div><p class="MsoNormal">On Sat, Oct 8, 2022 at 3:42 PM Joseph D Williams <<a href="mailto:joedwil@earthlink.net" target="_blank">joedwil@earthlink.net</a>> wrote:</p></div><blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt"><div><div><p class="MsoNormal" style="text-align:justify"><span style="font-size:10pt;font-family:"Courier New"">Vincent and John and All, since John and others have been working on ways to get x3d transcoded back and forth with json and now typical .glb (GL Transmission Format Binary file as Standard json) with prescribed names and data form that either are the same or a bit different than standard x3d Node names and Field names and X3DField and X3DArrayField data types. Except of course, those gl asset blobs that represent binary data that would be computed and almost ready to be executed by an x3d player. </span></p><p class="MsoNormal" style="text-align:justify"><span style="font-size:10pt;font-family:"Courier New""> </span></p><p class="MsoNormal" style="text-align:justify"><span style="font-size:10pt;font-family:"Courier New"">*Is that too simple? </span></p><p class="MsoNormal" style="text-align:justify"><span style="font-size:10pt;font-family:"Courier New"">First, does the .glb carry data that would be appropriate to import directly with maybe name changes or slightly rearranging or completing data for use in a field of a standard x3d field? </span></p><p class="MsoNormal" style="text-align:justify"><span style="font-size:10pt;font-family:"Courier New"">Second, are there forms of .glb data, especially for animations, blobs that could be expected to be the same as machine-ready input created by x3d browser? </span></p><p class="MsoNormal" style="text-align:justify"><span style="font-size:10pt;font-family:"Courier New"">Third, I think not likely but please let me know, are there Standard .glb data fields that are not used by x3d? Like before the great material features added in v4? </span></p><p class="MsoNormal" style="text-align:justify"><span style="font-size:10pt;font-family:"Courier New"">Fourth, any other categories? </span></p><p class="MsoNormal" style="text-align:justify"><span style="font-size:10pt;font-family:"Courier New""> </span></p><p class="MsoNormal" style="text-align:justify"><span style="font-size:10pt;font-family:"Courier New"">That is why the Astronaut.glb file could be very interesting to test. This is an opportunity to start with a successful yet static model with overlaid authoring interactivity, including some binaries of big data, to be moved into x3d space, into a more complete authoring environment, provide some animations and improved, maybe even integral rather than overlaid, interactive features.</span></p><p class="MsoNormal" style="text-align:justify"><span style="font-size:10pt;font-family:"Courier New""> </span></p><p class="MsoNormal" style="text-align:justify"><span style="font-size:10pt;font-family:"Courier New"">So, all we need is that graph that shows matching (direct usability) between .glb fields and x3d fields. A good AI might construct this table from schemas. In particular, what basic scenegraph of x3d nodes can receive this particular Astronaut.glb data directly? </span></p><p class="MsoNormal" style="text-align:justify"><span style="font-size:10pt;font-family:"Courier New"">Well, also for some glb fields, how to complete or otherwise synthesize x3d syntax from glb data. </span></p><p class="MsoNormal" style="text-align:justify"><span style="font-size:10pt;font-family:"Courier New"">Finally, to be complete, how an x3d player could use some glb essentially precomputed data to allow the x3d player to provide some functionality, like animations for an object without performing some internal computing steps. If we can add some x3d features and deliver it as .glb …</span></p><p class="MsoNormal" style="text-align:justify"><span style="font-size:10pt;font-family:"Courier New""> </span></p><p class="MsoNormal" style="text-align:justify"><span style="font-size:10pt;font-family:"Courier New"">So yes, this is reasonable example and thanks for finding it.</span></p><p class="MsoNormal" style="text-align:justify"><span style="font-size:10pt;font-family:"Courier New""> </span></p><p class="MsoNormal" style="text-align:justify"><span style="font-size:10pt;font-family:"Courier New"">Thanks, </span></p><p class="MsoNormal" style="text-align:justify"><span style="font-size:10pt;font-family:"Courier New"">Joe</span></p><p class="MsoNormal" style="text-align:justify"><span style="font-size:10pt;font-family:"Courier New""> </span></p><p class="MsoNormal" style="text-align:justify"><b>From: </b><a href="mailto:vmarchetti@kshell.com" target="_blank">Vincent Marchetti</a><br><b>Sent: </b>Wednesday, October 5, 2022 9:47 AM<br><b>To: </b><a href="mailto:joedwil@earthlink.net" target="_blank">Joseph D Williams</a>; <a href="mailto:x3d-public@web3d.org" target="_blank">X3D-Public</a><br><b>Subject: </b>Re: [x3d-public] An annotations example and project</p><p class="MsoNormal"> </p><p class="MsoNormal">I am not seeing the error message in viewing the astronaut.glb file, with Microsoft 3D Viewer at version 7.2107.7012.0, but I do see the error with 3D Builder</p></div></div><div><div><p class="MsoNormal"> </p><p class="MsoNormal">I haven't examined the internal structure of the astronaut.glb data, but it doesn't surprise me that it is  single mesh item.</p><p class="MsoNormal"> </p><p class="MsoNormal">The spirit of this annotation project would be to display the annotations from an externally loaded json structure without regard to the detailed structure of the 3D asset itself.</p><p class="MsoNormal"> </p><p class="MsoNormal">Vince</p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal">> On Oct 5, 2022, at 12:02 PM, Joseph D Williams <<a href="mailto:joedwil@earthlink.net" target="_blank">joedwil@earthlink.net</a>> wrote:</p><p class="MsoNormal">> </p><p class="MsoNormal">>            • the underlying asset is a glTF asset</p><p class="MsoNormal">> </p><p class="MsoNormal">> Astronaut.glb when downloaded, runs windows 3D Builder with a click and allows simple editing. Shows error ‘one or more items invalidly defined. Click to repair’ The entire thing is a single ‘item’ </p><p class="MsoNormal">> </p><p class="MsoNormal">> </p><p class="MsoNormal">> </p><p class="MsoNormal">> </p><p class="MsoNormal">> </p><p class="MsoNormal">> _______________________________________________</p><p class="MsoNormal">> x3d-public mailing list</p><p class="MsoNormal">> <a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a></p><p class="MsoNormal">> <a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a></p><p class="MsoNormal"> </p><p class="MsoNormal"> </p></div></div></blockquote></div></div><p class="MsoNormal" style="margin-left:4.8pt">_______________________________________________<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" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a></p></div></div></blockquote></div></div><p class="MsoNormal" style="margin-left:4.8pt"> </p><p class="MsoNormal"><u></u> <u></u></p></div></div></div></blockquote></div>