<div dir="ltr"><div><div><div><div><div>Apologies, I took a short cut in the hope to get to the question directly but ended up with producing a surprise.<br><br></div>Not sure how useful the default implementation behaviour for texture coordinates of IndexedFaceSets is. Although I can see that there are use cases with overall planar geometries and exactly matching map textures.<br><br>Could this implementation behaviour be a candidate for deprecation ? In contrast, default texture coordinates for the various convenience geometries (box, plane, sphere, elevationgrid ..) are very useful.<br><br></div>I was coming across this when I looked at three.js and its constructors for geometry on which in turn aframe's geometric primitives are based. Three.js does not have IndexedFaceSet but it has IndexedTriangleSet without default texture coordinates (UV).<br><br></div>It might be good to harmonize where possible.<br><br></div>Since aframe is designed to be very extensible and has concepts similar to x3d, it may be actually possible to implement a (limited) x3d browser using aframe as the underlying framework, with x3d nodes and fields corresponding to aframe components. A thought for another time.<br><br></div>Andreas<br><div><div><br><div><br><div><br><br><br><div><div><br><br></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 11, 2016 at 10:21 AM, Roy Walmsley <span dir="ltr"><<a href="mailto:roy.walmsley@ntlworld.com" target="_blank">roy.walmsley@ntlworld.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-GB"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Andreas,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Initially I was surprised by your comment below. As you say, the default value of the <i>texCoord</i> field is NULL for the IndexedTriangleSet node. But when I looked at the IndexedFaceSet node, I found that it too has a default value of NULL for the <i>texCoord</i> field (see <a href="http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/geometry3D.html#IndexedFaceSet" target="_blank">http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/geometry3D.html#IndexedFaceSet</a>). So both are in agreement there.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">However, I assume you are referring to the text in the penultimate paragraph for the IndexedFaceSet, which commences “If the <i>texCoord</i> field is NULL, ….”. Here an implementation behaviour is detailed for when the default value is NULL. In comparison, the IndexedTriangleSet node has no such behaviour defined.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I don’t know why the two instances are different. It is an interesting observation., which is also worthy of a specification comment.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Regards,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Roy<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> x3d-public [mailto:<a href="mailto:x3d-public-bounces@web3d.org" target="_blank">x3d-public-bounces@web3d.org</a>] <b>On Behalf Of </b>Andreas Plesch<br><b>Sent:</b> 11 April 2016 14:34<br><b>To:</b> X3D Graphics public mailing list<br><b>Subject:</b> [x3d-public] IndexedTriangleSet defaults<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p><p>For IndexedTriangleSet the default value for texCoord is NULL.<u></u><u></u></p><p><a href="http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/rendering.html#IndexedTriangleSet" target="_blank">http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/rendering.html#IndexedTriangleSet</a><u></u><u></u></p><p>On the other hand the texCoord default value for IndexedFaceSet is a reasonable map which tries to fit a texture on the mesh.<u></u><u></u></p><p>Is there a reason for this divergence ?<u></u><u></u></p><p>Andreas<u></u><u></u></p></div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Andreas Plesch<br>39 Barbara Rd.<br>Waltham, MA 02453</div>
</div>