<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Hi Joe, but this is not what spec say, reading it strictly. Your approach has some caveats. The text coords should be calculated once. But what happens when the number of coords changes, or the num triangles or quads, or polygons. It is no more easy to determine when the tex coords should be regenerated.<div><br></div><div>Holger<br><div><br><blockquote type="cite"><div>Am 04.01.2023 um 16:06 schrieb Joseph D Williams <joedwil@earthlink.net>:</div><br class="Apple-interchange-newline"><div><meta charset="UTF-8"><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 12pt; font-family: Verdana, sans-serif; background-color: white;">>> "The longest dimension of the bounding box defines the S coordinates, and the next longest defines the T coordinates."</span><o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Hi Holger, I certainly agree with this, but not during animation. We would use the default mapping once, for the default pose, then the same after animation begins. Again, the way it is showing is a neat effect, but not realistic, since the texture should stay mapped to the default pose, not recomputed at each frame.<span class="Apple-converted-space"> </span><o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Thanks,<span class="Apple-converted-space"> </span><o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Joe<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(225, 225, 225); padding: 3pt 0in 0in;"><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif; border: none; padding: 0in;"><b>From:<span class="Apple-converted-space"> </span></b><a href="mailto:holger.seelig@yahoo.de" style="color: blue; text-decoration: underline;">Holger Seelig</a><br><b>Sent:<span class="Apple-converted-space"> </span></b>Tuesday, January 3, 2023 3:15 AM<br><b>To:<span class="Apple-converted-space"> </span></b><a href="mailto:x3d-public@web3d.org" style="color: blue; text-decoration: underline;">X3D</a><br><b>Subject:<span class="Apple-converted-space"> </span></b>Re: [x3d-public] X3DCanvas vs x3d-canvas,X_ITE - conversion stylesheet results</div></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">X_ITE does exactly what is documented here <a href="https://www.web3d.org/documents/specifications/19775-1/V4.0/Part01/components/geometry3D.html#f-IndexedFaceSettextureDefaultMapping" style="color: blue; text-decoration: underline;">https://www.web3d.org/documents/specifications/19775-1/V4.0/Part01/components/geometry3D.html#f-IndexedFaceSettextureDefaultMapping</a> to automatically calculate tex coords.<o:p></o:p></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 12pt; font-family: Verdana, sans-serif; background-color: white;">>> "The longest dimension of the bounding box defines the S coordinates, and the next longest defines the T coordinates."</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div></div><div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">In your example the longest dimension is as we can see the Y-axis, but the next longest dimension will change when the IFS is animated, sometimes it is the X-axis and sometimes it is the Z-axis. (You can see a flip)<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Second, because the IFS is animated the tex coords will always change. (You see the texture moving)<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Here are the lines how X_ITE does the calc: <a href="https://github.com/create3000/x_ite/blob/ad74f5212dae83c436bf0fc25eb4ac471301ae50/src/x_ite/Components/Rendering/X3DGeometryNode.js#L357" style="color: blue; text-decoration: underline;">https://github.com/create3000/x_ite/blob/ad74f5212dae83c436bf0fc25eb4ac471301ae50/src/x_ite/Components/Rendering/X3DGeometryNode.js#L357</a><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Please have a look at it. I cannot find a bug.<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Best regards,<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Holger<o:p></o:p></div></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><br><br><o:p></o:p></div><blockquote style="margin-top: 5pt; margin-bottom: 5pt;"><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Am 02.01.2023 um 18:58 schrieb Joseph D Williams <<a href="mailto:joedwil@earthlink.net" style="color: blue; text-decoration: underline;">joedwil@earthlink.net</a>>:<o:p></o:p></div></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><a href="https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Skin/JoeSkeletonSkinSiteSaluteWalkIndex.html" style="color: blue; text-decoration: underline;">Humanoid Animation X3D Examples Archive, Skin, Joe Skeleton Skin Site Salute Walk (web3d.org)</a><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Notice how skin moves around with animations.<span class="apple-converted-space"> </span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">I still think this is because browser does not honor textCoords, Do I need to make a change to get thisto work right when it works correctly in others. As I recall from past, xite doesn’t autogenerate texcoords and needs repeat for every point?<span class="apple-converted-space"> </span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Thanks,<span class="apple-converted-space"> </span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Joe<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(225, 225, 225); padding: 3pt 0in 0in;"><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><b>From:<span class="apple-converted-space"> </span></b><a href="mailto:brutzman@nps.edu" style="color: blue; text-decoration: underline;">Brutzman, Donald (Don) (CIV)</a><br><b>Sent:<span class="apple-converted-space"> </span></b>Saturday, December 31, 2022 2:42 PM<br><b>To:<span class="apple-converted-space"> </span></b><a href="mailto:holger.seelig@yahoo.de" style="color: blue; text-decoration: underline;">Holger Seelig</a><br><b>Cc:<span class="apple-converted-space"> </span></b><a href="mailto:x3d-public@web3d.org" style="color: blue; text-decoration: underline;">X3D</a><br><b>Subject:<span class="apple-converted-space"> </span></b>Re: [x3d-public] X3DCanvas vs x3d-canvas,X_ITE - conversion stylesheet results<o:p></o:p></div></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">[related topic: upgrading "X3D to X_ITE" stylesheet, to match your announcement]<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Holger, thanks for all of the amazing work that you continue to accomplish.<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">After finishing much other work, I’ve finally been able to update the (newly renamed) X3dToX3domX_ITE.xslt stylesheet to support your use of <x3d-canvas> element.<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Apologies for delays reaching this point. The new version of X_ITE looks good!<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Hoping that you can confirm I’m using your publishing patterns correctly. Might you please check HTML/CSS source for the following developmental example. If there are better ways of doing things please advise.<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><ul type="disc" style="margin-bottom: 0in; margin-top: 0in;"><li class="MsoPlainText" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><i><span style="font-family: "Times New Roman", serif;">X3D Example Archives: </span></i><span style="font-family: "Times New Roman", serif;">Humanoid Animation, Skin, Joe Skeleton Skin Site Salute Walk</span><o:p></o:p></li><li class="MsoPlainText" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><a href="https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Skin/JoeSkeletonSkinSiteSaluteWalkIndex.html" style="color: blue; text-decoration: underline;">https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Skin/JoeSkeletonSkinSiteSaluteWalkIndex.html</a><o:p></o:p></li><li class="MsoPlainText" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><a href="https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Skin/JoeSkeletonSkinSiteSaluteWalkX_ITE.html" style="color: blue; text-decoration: underline;">https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Skin/JoeSkeletonSkinSiteSaluteWalkX_ITE.html</a><o:p></o:p></li><li class="MsoPlainText" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><a href="https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Skin/JoeSkeletonSkinSiteSaluteWalk_X_ITE.png" style="color: blue; text-decoration: underline;">https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Skin/JoeSkeletonSkinSiteSaluteWalk_X_ITE.png</a><o:p></o:p></li></ul><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">One thing I was not able to figure out… if you unzoom the JoeSkeletonSkinSiteSaluteWalkX_ITE.html page (using 4-arrow button in upper left) there is space for X_ITE Console, to appear as before in prior version. However this feature is no longer working. Am happy to correct it, or omit it, as appropriate.<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <div><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <h3>X_ITE Console</h3><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <p class="x_ite-console"/><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> </div><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Hmm, reviewing: another thing is that the stylesheet link is still there but without apparent harm. Will try removing that later.<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Having fun with X_ITE, X3D and HTML5! 8)<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">all the best, Don<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">--<span class="apple-converted-space"> </span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Don Brutzman Naval Postgraduate School, Code USW/Br <span class="apple-converted-space"> </span><a href="mailto:brutzman@nps.edu" style="color: blue; text-decoration: underline;">brutzman@nps.edu</a><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA +1.831.656.2149<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">X3D graphics, virtual worlds, Navy robotics https://<span class="apple-converted-space"> </span><a href="http://faculty.nps.edu/brutzman" style="color: blue; text-decoration: underline;">faculty.nps.edu/brutzman</a><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">-----Original Message-----<br>From: x3d-public <<a href="mailto:x3d-public-bounces@web3d.org" style="color: blue; text-decoration: underline;">x3d-public-bounces@web3d.org</a>> On Behalf Of Holger Seelig<br>Sent: Tuesday, November 1, 2022 8:04 AM<br>To: X3D <<a href="mailto:x3d-public@web3d.org" style="color: blue; text-decoration: underline;">x3d-public@web3d.org</a>><br>Subject: [x3d-public] X3DCanvas vs x3d-canvas, X_ITE<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">With version 6.0.0, X_ITE uses the new element name <x3d-canvas>, lowercase and with dash. Because X_ITE uses the Custom Element API from JavaScript now. This has the advantages that the element can be created with document.createElement, and is then immediately ready to use :). Other advantage is that the CSS file must not be included anymore.<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">For compatibility the old name can still be used, but we encourage all users to update to the new tag name.<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Best regards,<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Holger<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">_______________________________________________<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">x3d-public mailing list<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><a href="mailto:x3d-public@web3d.org" style="color: blue; text-decoration: underline;">x3d-public@web3d.org</a><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" style="color: blue; text-decoration: underline;">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a></div></div></div></blockquote></div></div></div></blockquote></div><br></div></body></html>